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.101.0 (build b95fe5d)", date="2024-07-12T19:34:02.966Z") @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.