Class CloudFormationExecuteChangeSetActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.CloudFormationExecuteChangeSetActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFormationExecuteChangeSetActionProps>
- Enclosing interface:
CloudFormationExecuteChangeSetActionProps
@Stability(Stable)
public static final class CloudFormationExecuteChangeSetActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFormationExecuteChangeSetActionProps>
A builder for
CloudFormationExecuteChangeSetActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCloudFormationExecuteChangeSetActionProps.getAccount()
actionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
build()
Builds the configured instance.changeSetName
(String changeSetName) Sets the value ofCloudFormationExecuteChangeSetActionProps.getChangeSetName()
Sets the value ofCloudFormationExecuteChangeSetActionProps.getOutput()
outputFileName
(String outputFileName) Sets the value ofCloudFormationExecuteChangeSetActionProps.getOutputFileName()
Sets the value ofCloudFormationExecuteChangeSetActionProps.getRegion()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
Sets the value ofCloudFormationExecuteChangeSetActionProps.getStackName()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
changeSetName
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder changeSetName(String changeSetName) Sets the value ofCloudFormationExecuteChangeSetActionProps.getChangeSetName()
- Parameters:
changeSetName
- Name of the change set to execute. This parameter is required.- Returns:
this
-
stackName
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder stackName(String stackName) Sets the value ofCloudFormationExecuteChangeSetActionProps.getStackName()
- Parameters:
stackName
- The name of the stack to apply this action to. This parameter is required.- Returns:
this
-
account
Sets the value ofCloudFormationExecuteChangeSetActionProps.getAccount()
- Parameters:
account
- The AWS account this Action is supposed to operate in. Note: if you specify therole
property, this is ignored - the action will operate in the same region the passed role does.- Returns:
this
-
output
Sets the value ofCloudFormationExecuteChangeSetActionProps.getOutput()
- Parameters:
output
- The name of the output artifact to generate. Only applied ifoutputFileName
is set as well.- Returns:
this
-
outputFileName
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder outputFileName(String outputFileName) Sets the value ofCloudFormationExecuteChangeSetActionProps.getOutputFileName()
- Parameters:
outputFileName
- A name for the filename in the output artifact to store the AWS CloudFormation call's result. The file will contain the result of the call to AWS CloudFormation (for example the call to UpdateStack or CreateChangeSet).AWS CodePipeline adds the file to the output artifact after performing the specified action.
- Returns:
this
-
region
Sets the value ofCloudFormationExecuteChangeSetActionProps.getRegion()
- Parameters:
region
- The AWS region the given Action resides in. Note that a cross-region Pipeline requires replication buckets to function correctly. You can provide their names with thePipelineProps#crossRegionReplicationBuckets
property. If you don't, the CodePipeline Construct will create new Stacks in your CDK app containing those buckets, that you will need tocdk deploy
before deploying the main, Pipeline-containing Stack.- Returns:
this
-
role
Sets the value ofCommonAwsActionProps.getRole()
- Parameters:
role
- The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into yourIAction.bind
method in theActionBindOptions.role
property.- Returns:
this
-
actionName
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder actionName(String actionName) Sets the value ofCommonActionProps.getActionName()
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required. Note that Action names must be unique within a single Stage.- Returns:
this
-
runOrder
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder runOrder(Number runOrder) Sets the value ofCommonActionProps.getRunOrder()
- Parameters:
runOrder
- The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.- Returns:
this
-
variablesNamespace
@Stability(Stable) public CloudFormationExecuteChangeSetActionProps.Builder variablesNamespace(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudFormationExecuteChangeSetActionProps>
- Returns:
- a new instance of
CloudFormationExecuteChangeSetActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-