CfnHubV2PropsMixin

class aws_cdk.cfn_property_mixins.aws_securityhub.CfnHubV2PropsMixin(props, *, strategy=None)

Bases: Mixin

Returns details about the service resource in your account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-hubv2.html

CloudformationResource:

AWS::SecurityHub::HubV2

Mixin:

true

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.cfn_property_mixins import aws_securityhub as securityhub
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_hub_v2_props_mixin = securityhub.CfnHubV2PropsMixin(securityhub.CfnHubV2MixinProps(
    network_scanning=securityhub.CfnHubV2PropsMixin.NetworkScanningProperty(
        status="status"
    ),
    tags={
        "tags_key": "tags"
    }
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::SecurityHub::HubV2.

Parameters:
  • props (Union[CfnHubV2MixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['networkScanning', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

NetworkScanningProperty

class CfnHubV2PropsMixin.NetworkScanningProperty(*, status=None)

Bases: object

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.

Parameters:

status (Optional[str]) – Whether the Network Scanning feature is enabled for this account and Region.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-hubv2-networkscanning.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.cfn_property_mixins import aws_securityhub as securityhub

network_scanning_property = securityhub.CfnHubV2PropsMixin.NetworkScanningProperty(
    status="status"
)

Attributes

status

Whether the Network Scanning feature is enabled for this account and Region.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-hubv2-networkscanning.html#cfn-securityhub-hubv2-networkscanning-status