Interface IRole.Jsii$Default

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, IGrantable, IGrantable.Jsii$Default, IIdentity, IIdentity.Jsii$Default, IPrincipal, IPrincipal.Jsii$Default, IResource, IResource.Jsii$Default, IRole, IRoleRef, IRoleRef.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IRole.Jsii$Proxy
Enclosing interface:
IRole

@Internal public static interface IRole.Jsii$Default extends IRole, IRoleRef.Jsii$Default, IIdentity.Jsii$Default
Internal default implementation for IRole.
  • Method Details

    • getRoleArn

      @Stability(Stable) @NotNull default String getRoleArn()
      Returns the ARN of this role.
      Specified by:
      getRoleArn in interface IRole
    • getRoleName

      @Stability(Stable) @NotNull default String getRoleName()
      Returns the name of this role.
      Specified by:
      getRoleName in interface IRole
    • grant

      @Stability(Stable) @NotNull default Grant grant(@NotNull IPrincipal grantee, @NotNull String... actions)
      Grant the actions defined in actions to the identity Principal on this resource.

      Specified by:
      grant in interface IRole
      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantAssumeRole

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

      Specified by:
      grantAssumeRole in interface IRole
      Parameters:
      grantee - This parameter is required.
    • grantPassRole

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

      Specified by:
      grantPassRole in interface IRole
      Parameters:
      grantee - This parameter is required.