Package software.amazon.awscdk.core
Class CfnStackSet.AutoDeploymentProperty.Builder
java.lang.Object
software.amazon.awscdk.core.CfnStackSet.AutoDeploymentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackSet.AutoDeploymentProperty>
- Enclosing interface:
CfnStackSet.AutoDeploymentProperty
@Stability(Stable)
public static final class CfnStackSet.AutoDeploymentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStackSet.AutoDeploymentProperty>
A builder for
CfnStackSet.AutoDeploymentProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnStackSet.AutoDeploymentProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnStackSet.AutoDeploymentProperty.getEnabled()
retainStacksOnAccountRemoval
(Boolean retainStacksOnAccountRemoval) Sets the value ofCfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
retainStacksOnAccountRemoval
(IResolvable retainStacksOnAccountRemoval) Sets the value ofCfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnStackSet.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
Sets the value ofCfnStackSet.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 CfnStackSet.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval) Sets the value ofCfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
- 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 ifEnabled
is set toTrue
.- Returns:
this
-
retainStacksOnAccountRemoval
@Stability(Stable) public CfnStackSet.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(IResolvable retainStacksOnAccountRemoval) Sets the value ofCfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
- 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 ifEnabled
is set toTrue
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStackSet.AutoDeploymentProperty>
- Returns:
- a new instance of
CfnStackSet.AutoDeploymentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-