Class SelfManagedDeploymentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SelfManagedDeploymentProps>
- Enclosing interface:
SelfManagedDeploymentProps
SelfManagedDeploymentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadministrationRole
(IRole administrationRole) Sets the value ofSelfManagedDeploymentProps.getAdministrationRole()
build()
Builds the configured instance.executionRoleName
(String executionRoleName) Sets the value ofSelfManagedDeploymentProps.getExecutionRoleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
administrationRole
@Stability(Stable) public SelfManagedDeploymentProps.Builder administrationRole(IRole administrationRole) Sets the value ofSelfManagedDeploymentProps.getAdministrationRole()
- Parameters:
administrationRole
- The IAM role in the administrator account used to assume execution roles in the target accounts. You must create this role before using the StackSet action.The role needs to be assumable by CloudFormation, and it needs to be able to
sts:AssumeRole
each of the execution roles (whose names are specified in theexecutionRoleName
parameter) in each of the target accounts.If you do not specify the role, we assume you have created a role named
AWSCloudFormationStackSetAdministrationRole
.- Returns:
this
-
executionRoleName
@Stability(Stable) public SelfManagedDeploymentProps.Builder executionRoleName(String executionRoleName) Sets the value ofSelfManagedDeploymentProps.getExecutionRoleName()
- Parameters:
executionRoleName
- The name of the IAM role in the target accounts used to perform stack set operations. You must create these roles in each of the target accounts before using the StackSet action.The roles need to be assumable by by the
administrationRole
, and need to have the permissions necessary to successfully create and modify the resources that the subsequent CloudFormation deployments need. Administrator permissions would be commonly granted to these, but if you can scope the permissions down frome there you would be safer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SelfManagedDeploymentProps>
- Returns:
- a new instance of
SelfManagedDeploymentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-