CfnHubPropsMixin

class aws_cdk.mixins_preview.aws_securityhub.mixins.CfnHubPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::SecurityHub::Hub resource specifies the enablement of the Security Hub service in your AWS account .

The service is enabled in the current AWS Region or the specified Region. You create a separate Hub resource in each Region in which you want to enable Security Hub .

When you use this resource to enable Security Hub , default security standards are enabled. To disable default standards, set the EnableDefaultStandards property to false . You can use the `AWS::SecurityHub::Standard <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-standard.html>`_ resource to enable additional standards.

When you use this resource to enable Security Hub , new controls are automatically enabled for your enabled standards. To disable automatic enablement of new controls, set the AutoEnableControls property to false .

You must create an AWS::SecurityHub::Hub resource for an account before you can create other types of Security Hub resources for the account through CloudFormation . Use a DependsOn attribute , such as "DependsOn": "Hub" , to ensure that you’ve created an AWS::SecurityHub::Hub resource before creating other Security Hub resources for an account.

See:

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

CloudformationResource:

AWS::SecurityHub::Hub

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_securityhub import mixins as securityhub_mixins

# tags: Any

cfn_hub_props_mixin = securityhub_mixins.CfnHubPropsMixin(securityhub_mixins.CfnHubMixinProps(
    auto_enable_controls=False,
    control_finding_generator="controlFindingGenerator",
    enable_default_standards=False,
    tags=tags
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

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

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

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

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['autoEnableControls', 'controlFindingGenerator', 'enableDefaultStandards', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental