CfnLifecycleAutomationPropsMixin

class aws_cdk.mixins_preview.aws_ssmquicksetup.mixins.CfnLifecycleAutomationPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-lifecycleautomation.html

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:

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 = ['automationDocument', 'automationParameters', 'resourceKey', '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