Class CfnStackSetPropsMixin.AutoDeploymentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudformation.CfnStackSetPropsMixin.AutoDeploymentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackSetPropsMixin.AutoDeploymentProperty>
- Enclosing interface:
CfnStackSetPropsMixin.AutoDeploymentProperty
@Stability(Stable)
public static final class CfnStackSetPropsMixin.AutoDeploymentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStackSetPropsMixin.AutoDeploymentProperty>
A builder for
CfnStackSetPropsMixin.AutoDeploymentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getDependsOn()Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getEnabled()retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval) retainStacksOnAccountRemoval(IResolvable retainStacksOnAccountRemoval)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dependsOn
@Stability(Stable) public CfnStackSetPropsMixin.AutoDeploymentProperty.Builder dependsOn(List<String> dependsOn) Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getDependsOn()- Parameters:
dependsOn- A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins.- Returns:
this
-
enabled
@Stability(Stable) public CfnStackSetPropsMixin.AutoDeploymentProperty.Builder enabled(Boolean enabled) Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getEnabled()- Parameters:
enabled- If set totrue, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.- Returns:
this
-
enabled
@Stability(Stable) public CfnStackSetPropsMixin.AutoDeploymentProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnStackSetPropsMixin.AutoDeploymentProperty.getEnabled()- Parameters:
enabled- If set totrue, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.- Returns:
this
-
retainStacksOnAccountRemoval
@Stability(Stable) public CfnStackSetPropsMixin.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval) - Parameters:
retainStacksOnAccountRemoval- If set totrue, stack resources are retained when an account is removed from a target organization or OU. If set tofalse, stack resources are deleted. Specify only ifEnabledis set toTrue.- Returns:
this
-
retainStacksOnAccountRemoval
@Stability(Stable) public CfnStackSetPropsMixin.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(IResolvable retainStacksOnAccountRemoval) - Parameters:
retainStacksOnAccountRemoval- If set totrue, stack resources are retained when an account is removed from a target organization or OU. If set tofalse, stack resources are deleted. Specify only ifEnabledis set toTrue.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStackSetPropsMixin.AutoDeploymentProperty>- Returns:
- a new instance of
CfnStackSetPropsMixin.AutoDeploymentProperty - Throws:
NullPointerException- if any required attribute was not provided
-