Interface IAssumeRolePrincipal

All Superinterfaces:
IGrantable, IPrincipal, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IAssumeRolePrincipal.Jsii$Default
All Known Implementing Classes:
AccountPrincipal, AccountRootPrincipal, AnyPrincipal, ArnPrincipal, CanonicalUserPrincipal, CompositePrincipal, FederatedPrincipal, IAssumeRolePrincipal.Jsii$Proxy, OpenIdConnectPrincipal, OrganizationPrincipal, PrincipalBase, PrincipalWithConditions, SamlConsolePrincipal, SamlPrincipal, ServicePrincipal, SessionTagsPrincipal, StarPrincipal, ViaServicePrincipal, WebIdentityPrincipal

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:08.144Z") @Stability(Stable) public interface IAssumeRolePrincipal extends software.amazon.jsii.JsiiSerializable, IPrincipal
A type of principal that has more control over its own representation in AssumeRolePolicyDocuments.

More complex types of identity providers need more control over Role's policy documents than simply { Effect: 'Allow', Action: 'AssumeRole', Principal: <Whatever> }.

If that control is necessary, they can implement IAssumeRolePrincipal to get full access to a Role's AssumeRolePolicyDocument.

  • Method Details

    • addToAssumeRolePolicy

      @Stability(Stable) void addToAssumeRolePolicy(@NotNull PolicyDocument document)
      Add the principal to the AssumeRolePolicyDocument.

      Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.

      Parameters:
      document - This parameter is required.