Class CfnLifecycleAutomation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssmquicksetup.CfnLifecycleAutomation
- All Implemented Interfaces:
IInspectable,ITaggableV2,ILifecycleAutomationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.723Z")
@Stability(Stable)
public class CfnLifecycleAutomation
extends CfnResource
implements IInspectable, ILifecycleAutomationRef, ITaggableV2
Creates a lifecycle automation resource that executes SSM Automation documents during AWS CloudFormation stack operations.
This resource replaces inline AWS Lambda custom resources and provides a managed way to handle lifecycle events in Quick Setup configurations.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssmquicksetup.*;
CfnLifecycleAutomation cfnLifecycleAutomation = CfnLifecycleAutomation.Builder.create(this, "MyCfnLifecycleAutomation")
.automationDocument("automationDocument")
.automationParameters(Map.of(
"automationParametersKey", List.of("automationParameters")))
.resourceKey("resourceKey")
// the properties below are optional
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssmquicksetup.ILifecycleAutomationRef
ILifecycleAutomationRef.Jsii$Default, ILifecycleAutomationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLifecycleAutomation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLifecycleAutomation(software.amazon.jsii.JsiiObjectRef objRef) CfnLifecycleAutomation(software.constructs.Construct scope, String id, CfnLifecycleAutomationProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the SSM Association created to manage the automation document execution lifecycle.The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE).A map of key-value parameters passed to the Automation document during execution.Tag Manager which manages the tags for this resource.A reference to a LifecycleAutomation resource.A unique identifier used for generating the SSM Association name.getTags()Tags applied to the underlying SSM Association created by this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAutomationDocument(String value) The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE).voidsetAutomationParameters(Map<String, List<String>> value) A map of key-value parameters passed to the Automation document during execution.voidA map of key-value parameters passed to the Automation document during execution.voidsetResourceKey(String value) A unique identifier used for generating the SSM Association name.voidTags applied to the underlying SSM Association created by this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLifecycleAutomation
protected CfnLifecycleAutomation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLifecycleAutomation
protected CfnLifecycleAutomation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLifecycleAutomation
@Stability(Stable) public CfnLifecycleAutomation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLifecycleAutomationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAssociationId
Returns the ID of the SSM Association created to manage the automation document execution lifecycle. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getLifecycleAutomationRef
A reference to a LifecycleAutomation resource.- Specified by:
getLifecycleAutomationRefin interfaceILifecycleAutomationRef
-
getAutomationDocument
The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE). -
setAutomationDocument
The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE). -
getAutomationParameters
A map of key-value parameters passed to the Automation document during execution.Returns union: either
IResolvableor Mapinvalid input: '<'String, Listinvalid input: '<'String>> -
setAutomationParameters
A map of key-value parameters passed to the Automation document during execution. -
setAutomationParameters
A map of key-value parameters passed to the Automation document during execution. -
getResourceKey
A unique identifier used for generating the SSM Association name. -
setResourceKey
A unique identifier used for generating the SSM Association name. -
getTags
Tags applied to the underlying SSM Association created by this resource. -
setTags
Tags applied to the underlying SSM Association created by this resource.
-