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 TypeMethodDescriptionassumeRoleArn
(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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<RoleOptions>
- Returns:
- a new instance of
RoleOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-