Interface RoleOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
RoleOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:01.649Z") @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.*;
 RoleOptions roleOptions = RoleOptions.builder()
         .assumeRoleArn("assumeRoleArn")
         // the properties below are optional
         .assumeRoleExternalId("assumeRoleExternalId")
         .build();
 
  • Method Details

    • getAssumeRoleArn

      @Stability(Stable) @NotNull String getAssumeRoleArn()
      ARN of the role to assume.
    • getAssumeRoleExternalId

      @Stability(Stable) @Nullable default String getAssumeRoleExternalId()
      External ID to use when assuming the role.

      Default: - No external ID

    • builder

      @Stability(Stable) static RoleOptions.Builder builder()
      Returns:
      a RoleOptions.Builder of RoleOptions