CfnLifecycleAutomationPropsMixin
- class aws_cdk.mixins_preview.aws_ssmquicksetup.mixins.CfnLifecycleAutomationPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a lifecycle automation resource that executes SSM Automation documents during CloudFormation stack operations.
This resource replaces inline AWS Lambda custom resources and provides a managed way to handle lifecycle events in Quick Setup configurations.
- See:
- CloudformationResource:
AWS::SSMQuickSetup::LifecycleAutomation
- 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_ssmquicksetup import mixins as ssmquicksetup_mixins cfn_lifecycle_automation_props_mixin = ssmquicksetup_mixins.CfnLifecycleAutomationPropsMixin(ssmquicksetup_mixins.CfnLifecycleAutomationMixinProps( automation_document="automationDocument", automation_parameters={ "automation_parameters_key": ["automationParameters"] }, resource_key="resourceKey", tags={ "tags_key": "tags" } ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SSMQuickSetup::LifecycleAutomation.- Parameters:
props (
Union[CfnLifecycleAutomationMixinProps,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 = ['automationDocument', 'automationParameters', 'resourceKey', 'tags']
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