Package software.amazon.awscdk
Interface RoleOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RoleOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:27.588Z")
@Stability(Stable)
public interface RoleOptions
extends software.amazon.jsii.JsiiSerializable
Options for specifying a role.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; Object assumeRoleAdditionalOptions; RoleOptions roleOptions = RoleOptions.builder() .assumeRoleArn("assumeRoleArn") // the properties below are optional .assumeRoleAdditionalOptions(Map.of( "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) .assumeRoleExternalId("assumeRoleExternalId") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRoleOptions
static final class
An implementation forRoleOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoleOptions.Builder
builder()
Additional options to pass to STS when assuming the role for cloudformation deployments.ARN of the role to assume.default String
External ID to use when assuming the role.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssumeRoleArn
ARN of the role to assume. -
getAssumeRoleAdditionalOptions
Additional options to pass to STS when assuming the role for cloudformation deployments.RoleArn
should not be used. Use the dedicatedassumeRoleArn
property instead.ExternalId
should not be used. Use the dedicatedassumeRoleExternalId
instead.TransitiveTagKeys
defaults to use all keys (if any) specified inTags
. E.g, all tags are transitive by default.
Default: - No additional options.
- See Also:
-
getAssumeRoleExternalId
External ID to use when assuming the role.Default: - No external ID
-
builder
- Returns:
- a
RoleOptions.Builder
ofRoleOptions
-