Interface IRole
- All Superinterfaces:
IConstruct,software.constructs.IConstruct,IDependable,IGrantable,IIdentity,IPrincipal,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IRole.Jsii$Default
- All Known Implementing Classes:
IRole.Jsii$Proxy,LazyRole,Role
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.319Z")
@Stability(Stable)
public interface IRole
extends software.amazon.jsii.JsiiSerializable, IIdentity
A Role object.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIRole.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ARN of this role.Returns the name of this role.grant(IPrincipal grantee, @NotNull String... actions) Grant the actions defined in actions to the identity Principal on this resource.grantAssumeRole(IPrincipal grantee) Grant permissions to the given principal to assume this role.grantPassRole(IPrincipal grantee) Grant permissions to the given principal to pass this role.Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.services.iam.IIdentity
addManagedPolicy, attachInlinePolicyMethods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRoleArn
Returns the ARN of this role. -
getRoleName
Returns the name of this role. -
grant
@Stability(Stable) @NotNull Grant grant(@NotNull IPrincipal grantee, @NotNull @NotNull String... actions) Grant the actions defined in actions to the identity Principal on this resource.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantAssumeRole
Grant permissions to the given principal to assume this role.- Parameters:
grantee- This parameter is required.
-
grantPassRole
Grant permissions to the given principal to pass this role.- Parameters:
grantee- This parameter is required.
-