Class CfnLifecycleAutomation.Builder
java.lang.Object
software.amazon.awscdk.services.ssmquicksetup.CfnLifecycleAutomation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecycleAutomation>
- Enclosing class:
CfnLifecycleAutomation
@Stability(Stable)
public static final class CfnLifecycleAutomation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecycleAutomation>
A fluent builder for
CfnLifecycleAutomation.-
Method Summary
Modifier and TypeMethodDescriptionautomationDocument(String automationDocument) The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE).automationParameters(Map<String, ? extends List<String>> automationParameters) A map of key-value parameters passed to the Automation document during execution.automationParameters(IResolvable automationParameters) A map of key-value parameters passed to the Automation document during execution.build()resourceKey(String resourceKey) A unique identifier used for generating the SSM Association name.Tags applied to the underlying SSM Association created by this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnLifecycleAutomation.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnLifecycleAutomation.Builder.
-
automationDocument
@Stability(Stable) public CfnLifecycleAutomation.Builder automationDocument(String automationDocument) The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE).- Parameters:
automationDocument- The name of the SSM Automation document to execute in response to AWS CloudFormation lifecycle events (CREATE, UPDATE, DELETE). This parameter is required.- Returns:
this- See Also:
-
automationParameters
@Stability(Stable) public CfnLifecycleAutomation.Builder automationParameters(IResolvable automationParameters) 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.
- Parameters:
automationParameters- A map of key-value parameters passed to the Automation document during execution. This parameter is required.- Returns:
this- See Also:
-
automationParameters
@Stability(Stable) public CfnLifecycleAutomation.Builder automationParameters(Map<String, ? extends List<String>> automationParameters) 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.
- Parameters:
automationParameters- A map of key-value parameters passed to the Automation document during execution. This parameter is required.- Returns:
this- See Also:
-
resourceKey
A unique identifier used for generating the SSM Association name.This ensures uniqueness when multiple lifecycle automation resources exist in the same stack.
- Parameters:
resourceKey- A unique identifier used for generating the SSM Association name. This parameter is required.- Returns:
this- See Also:
-
tags
Tags applied to the underlying SSM Association created by this resource.Tags help identify and organize automation executions.
- Parameters:
tags- Tags applied to the underlying SSM Association created by this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecycleAutomation>- Returns:
- a newly built instance of
CfnLifecycleAutomation.
-