@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.771Z") @Stability(value=Stable) public interface IRole extends software.amazon.jsii.JsiiSerializable, IIdentity
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRole.Jsii$Default
Internal default implementation for
IRole. |
static class |
IRole.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRoleArn()
Returns the ARN of this role.
|
String |
getRoleName()
Returns the name of this role.
|
Grant |
grant(IPrincipal grantee,
String... actions)
Grant the actions defined in actions to the identity Principal on this resource.
|
Grant |
grantAssumeRole(IPrincipal grantee)
Grant permissions to the given principal to assume this role.
|
Grant |
grantPassRole(IPrincipal grantee)
Grant permissions to the given principal to pass this role.
|
addManagedPolicy, attachInlinePolicyaddToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountgetGrantPrincipalapplyRemovalPolicy, getEnv, getStack@Stability(value=Stable) @NotNull String getRoleArn()
@Stability(value=Stable) @NotNull String getRoleName()
@Stability(value=Stable) @NotNull Grant grant(@NotNull IPrincipal grantee, @NotNull String... actions)
grantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull Grant grantAssumeRole(@NotNull IPrincipal grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPassRole(@NotNull IPrincipal grantee)
grantee - This parameter is required.Copyright © 2022. All rights reserved.