AWS::SSMQuickSetup::LifecycleAutomationCreates 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.
import { CfnLifecycleAutomation } from 'aws-cdk-lib/aws-ssmquicksetup';Or use the module namespace:
import * as ssmquicksetup from 'aws-cdk-lib/aws-ssmquicksetup';
// ssmquicksetup.CfnLifecycleAutomationConfiguration passed to the constructor as CfnLifecycleAutomationProps.
automationDocumentRequiredstringThe name of the SSM Automation document to execute in response to CloudFormation lifecycle events (CREATE, UPDATE, DELETE).
automationParametersRequiredIResolvable | { [key: string]: string[] }A map of key-value parameters passed to the Automation document during execution. Each parameter name maps to a list of values, even for single values. Parameters can include configuration-specific values for your automation workflow.
resourceKeyRequiredstringA unique identifier used for generating the SSM Association name. This ensures uniqueness when multiple lifecycle automation resources exist in the same stack.
tagsOptional{ [key: string]: string }Tags applied to the underlying SSM Association created by this resource. Tags help identify and organize automation executions.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-ssmquicksetupAWS::SSMQuickSetup::LifecycleAutomation