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.
  • Method Details

    • getRoleArn

      @Stability(Stable) @NotNull String getRoleArn()
      Returns the ARN of this role.
    • getRoleName

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) @NotNull Grant grantAssumeRole(@NotNull IPrincipal grantee)
      Grant permissions to the given principal to assume this role.

      Parameters:
      grantee - This parameter is required.
    • grantPassRole

      @Stability(Stable) @NotNull Grant grantPassRole(@NotNull IPrincipal grantee)
      Grant permissions to the given principal to pass this role.

      Parameters:
      grantee - This parameter is required.