public static final class CfnStackSet.AutoDeploymentProperty.Builder
extends java.lang.Object
CfnStackSet.AutoDeploymentProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnStackSet.AutoDeploymentProperty |
build()
Builds the configured instance.
|
CfnStackSet.AutoDeploymentProperty.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
CfnStackSet.AutoDeploymentProperty.getEnabled() |
CfnStackSet.AutoDeploymentProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnStackSet.AutoDeploymentProperty.getEnabled() |
CfnStackSet.AutoDeploymentProperty.Builder |
retainStacksOnAccountRemoval(java.lang.Boolean retainStacksOnAccountRemoval)
Sets the value of
CfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval() |
CfnStackSet.AutoDeploymentProperty.Builder |
retainStacksOnAccountRemoval(IResolvable retainStacksOnAccountRemoval)
Sets the value of
CfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval() |
public CfnStackSet.AutoDeploymentProperty.Builder enabled(java.lang.Boolean enabled)
CfnStackSet.AutoDeploymentProperty.getEnabled()
enabled
- If set to `true` , 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.this
public CfnStackSet.AutoDeploymentProperty.Builder enabled(IResolvable enabled)
CfnStackSet.AutoDeploymentProperty.getEnabled()
enabled
- If set to `true` , 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.this
public CfnStackSet.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(java.lang.Boolean retainStacksOnAccountRemoval)
CfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
retainStacksOnAccountRemoval
- If set to `true` , stack resources are retained when an account is removed from a target organization or OU.
If set to false
, stack resources are deleted. Specify only if Enabled
is set to True
.this
public CfnStackSet.AutoDeploymentProperty.Builder retainStacksOnAccountRemoval(IResolvable retainStacksOnAccountRemoval)
CfnStackSet.AutoDeploymentProperty.getRetainStacksOnAccountRemoval()
retainStacksOnAccountRemoval
- If set to `true` , stack resources are retained when an account is removed from a target organization or OU.
If set to false
, stack resources are deleted. Specify only if Enabled
is set to True
.this
public CfnStackSet.AutoDeploymentProperty build()
CfnStackSet.AutoDeploymentProperty
java.lang.NullPointerException
- if any required attribute was not provided