Class StackSetsConstraintOptions.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.StackSetsConstraintOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StackSetsConstraintOptions>
- Enclosing interface:
- StackSetsConstraintOptions
@Stability(Stable)
public static final class StackSetsConstraintOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StackSetsConstraintOptions>
A builder for
StackSetsConstraintOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStackSetsConstraintOptions.getAccounts()Sets the value ofStackSetsConstraintOptions.getAdminRole()allowStackSetInstanceOperations(Boolean allowStackSetInstanceOperations) Sets the value ofStackSetsConstraintOptions.getAllowStackSetInstanceOperations()build()Builds the configured instance.description(String description) Sets the value ofCommonConstraintOptions.getDescription()executionRoleName(String executionRoleName) Sets the value ofStackSetsConstraintOptions.getExecutionRoleName()messageLanguage(MessageLanguage messageLanguage) Sets the value ofCommonConstraintOptions.getMessageLanguage()Sets the value ofStackSetsConstraintOptions.getRegions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accounts
Sets the value ofStackSetsConstraintOptions.getAccounts()- Parameters:
accounts- List of accounts to deploy stacks to. This parameter is required.- Returns:
this
-
adminRole
Sets the value ofStackSetsConstraintOptions.getAdminRole()- Parameters:
adminRole- IAM role used to administer the StackSets configuration. This parameter is required.- Returns:
this
-
executionRoleName
@Stability(Stable) public StackSetsConstraintOptions.Builder executionRoleName(String executionRoleName) Sets the value ofStackSetsConstraintOptions.getExecutionRoleName()- Parameters:
executionRoleName- IAM role used to provision the products in the Stacks. This parameter is required.- Returns:
this
-
regions
Sets the value ofStackSetsConstraintOptions.getRegions()- Parameters:
regions- List of regions to deploy stacks to. This parameter is required.- Returns:
this
-
allowStackSetInstanceOperations
@Stability(Stable) public StackSetsConstraintOptions.Builder allowStackSetInstanceOperations(Boolean allowStackSetInstanceOperations) Sets the value ofStackSetsConstraintOptions.getAllowStackSetInstanceOperations()- Parameters:
allowStackSetInstanceOperations- Wether to allow end users to create, update, and delete stacks.- Returns:
this
-
description
Sets the value ofCommonConstraintOptions.getDescription()- Parameters:
description- The description of the constraint.- Returns:
this
-
messageLanguage
@Stability(Stable) public StackSetsConstraintOptions.Builder messageLanguage(MessageLanguage messageLanguage) Sets the value ofCommonConstraintOptions.getMessageLanguage()- Parameters:
messageLanguage- The language code. Configures the language for error messages from service catalog.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StackSetsConstraintOptions>- Returns:
- a new instance of
StackSetsConstraintOptions - Throws:
NullPointerException- if any required attribute was not provided
-