Package software.amazon.awscdk
Class CfnStackSet.DeploymentTargetsProperty.Builder
java.lang.Object
software.amazon.awscdk.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()
accountsUrl
(String accountsUrl) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccountsUrl()
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
: StackSet deploys to the accounts specified in theAccounts
parameter.DIFFERENCE
: StackSet deploys to the OU, excluding the accounts specified in theAccounts
parameter.UNION
StackSet deploys to the OU, and the accounts specified in theAccounts
parameter.UNION
is not supported for create operations when using StackSet as a resource.
- 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
-
accountsUrl
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder accountsUrl(String accountsUrl) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccountsUrl()
- Parameters:
accountsUrl
- Returns the value of theAccountsUrl
property.- 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
-