Package software.amazon.awscdk.core
Class CfnStackSet.DeploymentTargetsProperty.Builder
java.lang.Object
software.amazon.awscdk.core.CfnStackSet.DeploymentTargetsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackSet.DeploymentTargetsProperty>
- Enclosing interface:
- CfnStackSet.DeploymentTargetsProperty
@Stability(Stable)
public static final class CfnStackSet.DeploymentTargetsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStackSet.DeploymentTargetsProperty>
A builder for
CfnStackSet.DeploymentTargetsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccountFilterType
(String accountFilterType) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccountFilterType()
Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccounts()
build()
Builds the configured instance.organizationalUnitIds
(List<String> organizationalUnitIds) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getOrganizationalUnitIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountFilterType
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder accountFilterType(String accountFilterType) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccountFilterType()
- Parameters:
accountFilterType
- Limit deployment targets to individual accounts or include additional accounts with provided OUs. The following is a list of possible values for theAccountFilterType
operation.INTERSECTION
: StackSets deploys to the accounts specified inAccounts
parameter.DIFFERENCE
: StackSets excludes the accounts specified inAccounts
parameter. This enables user to avoid certain accounts within an OU such as suspended accounts.UNION
: StackSets includes additional accounts deployment targets.
This is the default value if
AccountFilterType
is not provided. This enables user to update an entire OU and individual accounts from a different OU in one request, which used to be two separate requests.NONE
: Deploys to all the accounts in specified organizational units (OU).
- Returns:
this
-
accounts
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder accounts(List<String> accounts) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccounts()
- Parameters:
accounts
- The names of one or more AWS accounts for which you want to deploy stack set updates. Pattern :^[0-9]{12}$
- Returns:
this
-
organizationalUnitIds
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder organizationalUnitIds(List<String> organizationalUnitIds) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getOrganizationalUnitIds()
- Parameters:
organizationalUnitIds
- The organization root ID or organizational unit (OU) IDs to which StackSets deploys. Pattern :^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})$
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStackSet.DeploymentTargetsProperty>
- Returns:
- a new instance of
CfnStackSet.DeploymentTargetsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-