@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:46.876Z") public interface IRole extends 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 |
---|---|
java.lang.String |
getRoleArn()
Returns the ARN of this role.
|
java.lang.String |
getRoleName()
Returns the name of this role.
|
Grant |
grant(IPrincipal grantee,
java.lang.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, attachInlinePolicy
addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccount
getGrantPrincipal
applyRemovalPolicy, getEnv, getStack
getNode
java.lang.String getRoleArn()
java.lang.String getRoleName()
Grant grant(IPrincipal grantee, java.lang.String... actions)
grantee
- This parameter is required.actions
- This parameter is required.Grant grantAssumeRole(IPrincipal grantee)
grantee
- This parameter is required.Grant grantPassRole(IPrincipal grantee)
grantee
- This parameter is required.