@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-07-01T09:58:31.207Z")
public interface FromRoleArnOptions
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 java.lang.Boolean |
getAddGrantsToResources()
For immutable roles: add grants to resources instead of dropping them.
|
default java.lang.Boolean |
getMutable()
Whether the imported role can be modified by attaching policy resources to it.
|
default java.lang.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
default java.lang.Boolean getMutable()
Default: true
static FromRoleArnOptions.Builder builder()
FromRoleArnOptions.Builder
of FromRoleArnOptions