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
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFromRoleArnOptions
static final class
An implementation forFromRoleArnOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic FromRoleArnOptions.Builder
builder()
default Boolean
For immutable roles: add grants to resources instead of dropping them.default Boolean
Whether the imported role can be modified by attaching policy resources to it.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
Whether the imported role can be modified by attaching policy resources to it.Default: true
-
builder
- Returns:
- a
FromRoleArnOptions.Builder
ofFromRoleArnOptions
-