Package software.amazon.awscdk
Class CfnChangeSetProps.Builder
java.lang.Object
software.amazon.awscdk.CfnChangeSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChangeSetProps>
- Enclosing interface:
CfnChangeSetProps
@Stability(Stable)
public static final class CfnChangeSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChangeSetProps>
A builder for
CfnChangeSetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capabilities(List<String> capabilities) Sets the value ofCfnChangeSetProps.getCapabilities()changeSetName(String changeSetName) Sets the value ofCfnChangeSetProps.getChangeSetName()changeSetType(String changeSetType) Sets the value ofCfnChangeSetProps.getChangeSetType()deploymentMode(String deploymentMode) Sets the value ofCfnChangeSetProps.getDeploymentMode()description(String description) Sets the value ofCfnChangeSetProps.getDescription()importExistingResources(Boolean importExistingResources) Sets the value ofCfnChangeSetProps.getImportExistingResources()importExistingResources(IResolvable importExistingResources) Sets the value ofCfnChangeSetProps.getImportExistingResources()includeNestedStacks(Boolean includeNestedStacks) Sets the value ofCfnChangeSetProps.getIncludeNestedStacks()includeNestedStacks(IResolvable includeNestedStacks) Sets the value ofCfnChangeSetProps.getIncludeNestedStacks()notificationArns(List<String> notificationArns) Sets the value ofCfnChangeSetProps.getNotificationArns()onStackFailure(String onStackFailure) Sets the value ofCfnChangeSetProps.getOnStackFailure()Sets the value ofCfnChangeSetProps.getRoleArn()Sets the value ofCfnChangeSetProps.getStackName()tags(List<? extends CfnChangeSet.TagsItemsProperty> tags) Sets the value ofCfnChangeSetProps.getTags()templateBody(String templateBody) Sets the value ofCfnChangeSetProps.getTemplateBody()templateUrl(String templateUrl) Sets the value ofCfnChangeSetProps.getTemplateUrl()usePreviousTemplate(Boolean usePreviousTemplate) Sets the value ofCfnChangeSetProps.getUsePreviousTemplate()usePreviousTemplate(IResolvable usePreviousTemplate) Sets the value ofCfnChangeSetProps.getUsePreviousTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
changeSetName
Sets the value ofCfnChangeSetProps.getChangeSetName()- Parameters:
changeSetName- The name of the change set. This parameter is required. Must be unique among all change sets associated with the specified stack.- Returns:
this
-
stackName
Sets the value ofCfnChangeSetProps.getStackName()- Parameters:
stackName- The name or unique ID of the stack for which you are creating a change set. This parameter is required.- Returns:
this
-
capabilities
Sets the value ofCfnChangeSetProps.getCapabilities()- Parameters:
capabilities- The capabilities that are allowed in the stack.- Returns:
this
-
changeSetType
Sets the value ofCfnChangeSetProps.getChangeSetType()- Parameters:
changeSetType- The type of change set operation.- Returns:
this
-
deploymentMode
Sets the value ofCfnChangeSetProps.getDeploymentMode()- Parameters:
deploymentMode- Determines how CloudFormation handles configuration drift during deployment.- Returns:
this
-
description
Sets the value ofCfnChangeSetProps.getDescription()- Parameters:
description- A description to help you identify this change set.- Returns:
this
-
importExistingResources
@Stability(Stable) public CfnChangeSetProps.Builder importExistingResources(Boolean importExistingResources) Sets the value ofCfnChangeSetProps.getImportExistingResources()- Parameters:
importExistingResources- Indicates if the change set imports resources that already exist.- Returns:
this
-
importExistingResources
@Stability(Stable) public CfnChangeSetProps.Builder importExistingResources(IResolvable importExistingResources) Sets the value ofCfnChangeSetProps.getImportExistingResources()- Parameters:
importExistingResources- Indicates if the change set imports resources that already exist.- Returns:
this
-
includeNestedStacks
@Stability(Stable) public CfnChangeSetProps.Builder includeNestedStacks(Boolean includeNestedStacks) Sets the value ofCfnChangeSetProps.getIncludeNestedStacks()- Parameters:
includeNestedStacks- Creates a change set for all nested stacks specified in the template.- Returns:
this
-
includeNestedStacks
@Stability(Stable) public CfnChangeSetProps.Builder includeNestedStacks(IResolvable includeNestedStacks) Sets the value ofCfnChangeSetProps.getIncludeNestedStacks()- Parameters:
includeNestedStacks- Creates a change set for all nested stacks specified in the template.- Returns:
this
-
notificationArns
Sets the value ofCfnChangeSetProps.getNotificationArns()- Parameters:
notificationArns- The ARNs of Amazon SNS topics that CloudFormation associates with the stack.- Returns:
this
-
onStackFailure
Sets the value ofCfnChangeSetProps.getOnStackFailure()- Parameters:
onStackFailure- Determines what action will be taken if stack creation fails.- Returns:
this
-
roleArn
Sets the value ofCfnChangeSetProps.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that CloudFormation assumes when executing the change set.- Returns:
this
-
tags
@Stability(Stable) public CfnChangeSetProps.Builder tags(List<? extends CfnChangeSet.TagsItemsProperty> tags) Sets the value ofCfnChangeSetProps.getTags()- Parameters:
tags- Key-value pairs to associate with the change set.- Returns:
this
-
templateBody
Sets the value ofCfnChangeSetProps.getTemplateBody()- Parameters:
templateBody- A structure that contains the body of the revised template.- Returns:
this
-
templateUrl
Sets the value ofCfnChangeSetProps.getTemplateUrl()- Parameters:
templateUrl- The URL of the file that contains the revised template.- Returns:
this
-
usePreviousTemplate
@Stability(Stable) public CfnChangeSetProps.Builder usePreviousTemplate(Boolean usePreviousTemplate) Sets the value ofCfnChangeSetProps.getUsePreviousTemplate()- Parameters:
usePreviousTemplate- Whether to reuse the template associated with the stack to create the change set.- Returns:
this
-
usePreviousTemplate
@Stability(Stable) public CfnChangeSetProps.Builder usePreviousTemplate(IResolvable usePreviousTemplate) Sets the value ofCfnChangeSetProps.getUsePreviousTemplate()- Parameters:
usePreviousTemplate- Whether to reuse the template associated with the stack to create the change set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChangeSetProps>- Returns:
- a new instance of
CfnChangeSetProps - Throws:
NullPointerException- if any required attribute was not provided
-