CfnSessionPropsMixin
- class aws_cdk.mixins_preview.aws_macie.mixins.CfnSessionPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Macie::Sessionresource represents the Amazon Macie service and certain configuration settings for an Amazon Macie account in a specific AWS Region .It enables Macie to become operational for a specific account in a specific Region. An account can have only one session in each Region.
You must create an
AWS::Macie::Sessionresource for an account before you can create other types of resources for the account. Use a DependsOn attribute to ensure that anAWS::Macie::Sessionresource is created before other Macie resources are created for an account. For example,"DependsOn": "Session".- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-session.html
- CloudformationResource:
AWS::Macie::Session
- 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_macie import mixins as macie_mixins cfn_session_props_mixin = macie_mixins.CfnSessionPropsMixin(macie_mixins.CfnSessionMixinProps( finding_publishing_frequency="findingPublishingFrequency", status="status" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Macie::Session.- Parameters:
props (
Union[CfnSessionMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['findingPublishingFrequency', 'status']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental