Interface IRole
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.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.106.0 (build e852934)",
date="2025-03-04T22:57:25.596Z")
@Stability(Stable)
public interface IRole
extends software.amazon.jsii.JsiiSerializable, IIdentity
A Role object.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIRole
.static final class
A 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.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipal
Methods inherited from interface software.amazon.awscdk.services.iam.IIdentity
addManagedPolicy, attachInlinePolicy
Methods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccount
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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.
-