Class CfnLifecycleAutomationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssmquicksetup.CfnLifecycleAutomationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecycleAutomationProps>
- Enclosing interface:
CfnLifecycleAutomationProps
@Stability(Stable)
public static final class CfnLifecycleAutomationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecycleAutomationProps>
A builder for
CfnLifecycleAutomationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomationDocument(String automationDocument) Sets the value ofCfnLifecycleAutomationProps.getAutomationDocument()automationParameters(Map<String, ? extends List<String>> automationParameters) Sets the value ofCfnLifecycleAutomationProps.getAutomationParameters()automationParameters(IResolvable automationParameters) Sets the value ofCfnLifecycleAutomationProps.getAutomationParameters()build()Builds the configured instance.resourceKey(String resourceKey) Sets the value ofCfnLifecycleAutomationProps.getResourceKey()Sets the value ofCfnLifecycleAutomationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automationDocument
@Stability(Stable) public CfnLifecycleAutomationProps.Builder automationDocument(String automationDocument) Sets the value ofCfnLifecycleAutomationProps.getAutomationDocument()- 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
-
automationParameters
@Stability(Stable) public CfnLifecycleAutomationProps.Builder automationParameters(IResolvable automationParameters) Sets the value ofCfnLifecycleAutomationProps.getAutomationParameters()- Parameters:
automationParameters- A map of key-value parameters passed to the Automation document during execution. This parameter is required. Each parameter name maps to a list of values, even for single values. Parameters can include configuration-specific values for your automation workflow.- Returns:
this
-
automationParameters
@Stability(Stable) public CfnLifecycleAutomationProps.Builder automationParameters(Map<String, ? extends List<String>> automationParameters) Sets the value ofCfnLifecycleAutomationProps.getAutomationParameters()- Parameters:
automationParameters- A map of key-value parameters passed to the Automation document during execution. This parameter is required. Each parameter name maps to a list of values, even for single values. Parameters can include configuration-specific values for your automation workflow.- Returns:
this
-
resourceKey
Sets the value ofCfnLifecycleAutomationProps.getResourceKey()- Parameters:
resourceKey- A unique identifier used for generating the SSM Association name. This parameter is required. This ensures uniqueness when multiple lifecycle automation resources exist in the same stack.- Returns:
this
-
tags
Sets the value ofCfnLifecycleAutomationProps.getTags()- Parameters:
tags- Tags applied to the underlying SSM Association created by this resource. Tags help identify and organize automation executions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecycleAutomationProps>- Returns:
- a new instance of
CfnLifecycleAutomationProps - Throws:
NullPointerException- if any required attribute was not provided
-