Class CfnStackSet.DeploymentTargetsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.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
Constructors -
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- Refines which accounts to deploy stacks to by specifying how to use theAccountsandOrganizationalUnitIdsproperties together. The following values determine how CloudFormation selects target accounts:INTERSECTION: StackSet deploys to the accounts specified in theAccountsproperty.DIFFERENCE: StackSet deploys to the OU, excluding the accounts specified in theAccountsproperty.UNION: StackSet deploys to the OU, and the accounts specified in theAccountsproperty.UNIONis not supported for create operations when using StackSet as a resource or theCreateStackInstancesAPI.
- Returns:
this
-
accounts
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder accounts(List<String> accounts) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccounts()- Parameters:
accounts- The account IDs of the AWS accounts . If you have many account numbers, you can provide those accounts using theAccountsUrlproperty instead.Pattern :
^[0-9]{12}$- Returns:
this
-
accountsUrl
@Stability(Stable) public CfnStackSet.DeploymentTargetsProperty.Builder accountsUrl(String accountsUrl) Sets the value ofCfnStackSet.DeploymentTargetsProperty.getAccountsUrl()- Parameters:
accountsUrl- The Amazon S3 URL path to a file that contains a list of AWS account IDs. The file format must be either.csvor.txt, and the data can be comma-separated or new-line-separated. There is currently a 10MB limit for the data (approximately 800,000 accounts).This property serves the same purpose as
Accountsbut allows you to specify a large number of accounts.- 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. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnStackSet.DeploymentTargetsProperty>- Returns:
- a new instance of
CfnStackSet.DeploymentTargetsProperty - Throws:
NullPointerException- if any required attribute was not provided
-