@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:22.826Z") @Stability(value=Stable) public interface FromRoleArnOptions extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
FromRoleArnOptions.Builder
A builder for
FromRoleArnOptions |
static class |
FromRoleArnOptions.Jsii$Proxy
An implementation for
FromRoleArnOptions |
| Modifier and Type | Method and Description |
|---|---|
static FromRoleArnOptions.Builder |
builder() |
default Boolean |
getAddGrantsToResources()
For immutable roles: add grants to resources instead of dropping them.
|
default Boolean |
getMutable()
Whether the imported role can be modified by attaching policy resources to it.
|
@Stability(value=Stable) @Nullable default Boolean getAddGrantsToResources()
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
@Stability(value=Stable) @Nullable default Boolean getMutable()
Default: true
@Stability(value=Stable) static FromRoleArnOptions.Builder builder()
FromRoleArnOptions.Builder of FromRoleArnOptionsCopyright © 2022. All rights reserved.