CfnHubV2Props
- class aws_cdk.aws_securityhub.CfnHubV2Props(*, network_scanning=None, tags=None)
Bases:
objectProperties for defining a
CfnHubV2.- Parameters:
network_scanning (
Union[IResolvable,NetworkScanningProperty,Dict[str,Any],None]) – Configuration for the Network Scanning opt-in feature of Security Hub V2. Network Scanning is available in the AWS commercial partition only; specifying this property in another partition, such as AWS GovCloud (US) or China, fails. This property is desired state: if you remove it from a stack that previously set it, the feature is disabled. If a stack has never set it, the feature is left as-is, so a stack that does not manage Network Scanning will not disable it. Network Scanning requires Security Hub V2 to be enabled in the same account and Region.tags (
Optional[Mapping[str,str]]) – The tags to add to the hub V2 resource when you enable Security Hub CSPM.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-hubv2.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_securityhub as securityhub cfn_hub_v2_props = securityhub.CfnHubV2Props( network_scanning=securityhub.CfnHubV2.NetworkScanningProperty( status="status" ), tags={ "tags_key": "tags" } )
Attributes
- network_scanning
Configuration for the Network Scanning opt-in feature of Security Hub V2.
Network Scanning is available in the AWS commercial partition only; specifying this property in another partition, such as AWS GovCloud (US) or China, fails. This property is desired state: if you remove it from a stack that previously set it, the feature is disabled. If a stack has never set it, the feature is left as-is, so a stack that does not manage Network Scanning will not disable it. Network Scanning requires Security Hub V2 to be enabled in the same account and Region.
- tags
The tags to add to the hub V2 resource when you enable Security Hub CSPM.