Package software.amazon.awscdk
Class RoleOptions.Builder
java.lang.Object
software.amazon.awscdk.RoleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RoleOptions>
- Enclosing interface:
RoleOptions
@Stability(Stable)
public static final class RoleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<RoleOptions>
A builder for
RoleOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassumeRoleAdditionalOptions(Map<String, ? extends Object> assumeRoleAdditionalOptions) Sets the value ofRoleOptions.getAssumeRoleAdditionalOptions()assumeRoleArn(String assumeRoleArn) Sets the value ofRoleOptions.getAssumeRoleArn()assumeRoleExternalId(String assumeRoleExternalId) Sets the value ofRoleOptions.getAssumeRoleExternalId()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assumeRoleArn
Sets the value ofRoleOptions.getAssumeRoleArn()- Parameters:
assumeRoleArn- ARN of the role to assume. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public RoleOptions.Builder assumeRoleAdditionalOptions(Map<String, ? extends Object> assumeRoleAdditionalOptions) Sets the value ofRoleOptions.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the role for cloudformation deployments.RoleArnshould not be used. Use the dedicatedassumeRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedassumeRoleExternalIdinstead.TransitiveTagKeysdefaults to use all keys (if any) specified inTags. E.g, all tags are transitive by default.
- Returns:
this
-
assumeRoleExternalId
Sets the value ofRoleOptions.getAssumeRoleExternalId()- Parameters:
assumeRoleExternalId- External ID to use when assuming the role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RoleOptions>- Returns:
- a new instance of
RoleOptions - Throws:
NullPointerException- if any required attribute was not provided
-