Interface FromRoleArnOptions

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.306Z") @Stability(Stable) public interface FromRoleArnOptions extends software.amazon.jsii.JsiiSerializable
Options allowing customizing the behavior of
invalid @link
Role.fromRoleArn
.

Example:

 IRole role = Role.fromRoleArn(this, "Role", "arn:aws:iam::123456789012:role/MyExistingRole", FromRoleArnOptions.builder()
         // Set 'mutable' to 'false' to use the role as-is and prevent adding new
         // policies to it. The default is 'true', which means the role may be
         // modified as part of the deployment.
         .mutable(false)
         .build());
 
  • Method Details

    • getAddGrantsToResources

      @Stability(Stable) @Nullable default Boolean getAddGrantsToResources()
      For immutable roles: add grants to resources instead of dropping them.

      If this is false or not specified, grant permissions added to this role are ignored. It is your own responsibility to make sure the role has the required permissions.

      If this is true, any grant permissions will be added to the resource instead.

      Default: false

    • getMutable

      @Stability(Stable) @Nullable default Boolean getMutable()
      Whether the imported role can be modified by attaching policy resources to it.

      Default: true

    • builder

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