Interface IRole
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IGrantable,IIdentity,IPrincipal,IResource,IRoleRef,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IRole.Jsii$Default
- All Known Implementing Classes:
IRole.Jsii$Proxy,LazyRole,Role
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:41.194Z")
@Stability(Stable)
public interface IRole
extends software.amazon.jsii.JsiiSerializable, IIdentity, IRoleRef
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 TypeMethodDescriptionsoftware.constructs.NodegetNode()The tree node.Returns the ARN of this role.Returns the name of this role.grant(IPrincipal grantee, 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.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.services.iam.IIdentity
addManagedPolicy, attachInlinePolicyMethods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.awscdk.services.iam.IRoleRef
getRoleRefMethods 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
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.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-