Class CfnStackSetConstraintProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CfnStackSetConstraintProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackSetConstraintProps>
- Enclosing interface:
CfnStackSetConstraintProps
@Stability(Stable)
public static final class CfnStackSetConstraintProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStackSetConstraintProps>
A builder for
CfnStackSetConstraintProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage
(String acceptLanguage) Sets the value ofCfnStackSetConstraintProps.getAcceptLanguage()
accountList
(List<String> accountList) Sets the value ofCfnStackSetConstraintProps.getAccountList()
Sets the value ofCfnStackSetConstraintProps.getAdminRole()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnStackSetConstraintProps.getDescription()
executionRole
(String executionRole) Sets the value ofCfnStackSetConstraintProps.getExecutionRole()
portfolioId
(String portfolioId) Sets the value ofCfnStackSetConstraintProps.getPortfolioId()
Sets the value ofCfnStackSetConstraintProps.getProductId()
regionList
(List<String> regionList) Sets the value ofCfnStackSetConstraintProps.getRegionList()
stackInstanceControl
(String stackInstanceControl) Sets the value ofCfnStackSetConstraintProps.getStackInstanceControl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountList
Sets the value ofCfnStackSetConstraintProps.getAccountList()
- Parameters:
accountList
- One or more AWS accounts that will have access to the provisioned product. This parameter is required.- Returns:
this
-
adminRole
Sets the value ofCfnStackSetConstraintProps.getAdminRole()
- Parameters:
adminRole
- AdminRole ARN. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnStackSetConstraintProps.getDescription()
- Parameters:
description
- The description of the constraint. This parameter is required.- Returns:
this
-
executionRole
Sets the value ofCfnStackSetConstraintProps.getExecutionRole()
- Parameters:
executionRole
- ExecutionRole name. This parameter is required.- Returns:
this
-
portfolioId
Sets the value ofCfnStackSetConstraintProps.getPortfolioId()
- Parameters:
portfolioId
- The portfolio identifier. This parameter is required.- Returns:
this
-
productId
Sets the value ofCfnStackSetConstraintProps.getProductId()
- Parameters:
productId
- The product identifier. This parameter is required.- Returns:
this
-
regionList
Sets the value ofCfnStackSetConstraintProps.getRegionList()
- Parameters:
regionList
- One or more AWS Regions where the provisioned product will be available. This parameter is required. Applicable only to aCFN_STACKSET
provisioned product type.The specified Regions should be within the list of Regions from the
STACKSET
constraint. To get the list of Regions in theSTACKSET
constraint, use theDescribeProvisioningParameters
operation.If no values are specified, the default value is all Regions from the
STACKSET
constraint.- Returns:
this
-
stackInstanceControl
@Stability(Stable) public CfnStackSetConstraintProps.Builder stackInstanceControl(String stackInstanceControl) Sets the value ofCfnStackSetConstraintProps.getStackInstanceControl()
- Parameters:
stackInstanceControl
- Permission to create, update, and delete stack instances. This parameter is required. Choose from ALLOWED and NOT_ALLOWED.- Returns:
this
-
acceptLanguage
Sets the value ofCfnStackSetConstraintProps.getAcceptLanguage()
- Parameters:
acceptLanguage
- The language code.jp
- Japanesezh
- Chinese
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStackSetConstraintProps>
- Returns:
- a new instance of
CfnStackSetConstraintProps
- Throws:
NullPointerException
- if any required attribute was not provided
-