Class SamlConsolePrincipal

All Implemented Interfaces:
IAssumeRolePrincipal, IComparablePrincipal, IGrantable, IPrincipal, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:02.820Z") @Stability(Stable) public class SamlConsolePrincipal extends SamlPrincipal
Principal entity that represents a SAML federated identity provider for programmatic and AWS Management Console access.

Example:

 SamlProvider provider = SamlProvider.Builder.create(this, "Provider")
         .metadataDocument(SamlMetadataDocument.fromFile("/path/to/saml-metadata-document.xml"))
         .build();
 Role.Builder.create(this, "Role")
         .assumedBy(new SamlConsolePrincipal(provider))
         .build();
 
  • Constructor Details

    • SamlConsolePrincipal

      protected SamlConsolePrincipal(software.amazon.jsii.JsiiObjectRef objRef)
    • SamlConsolePrincipal

      protected SamlConsolePrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SamlConsolePrincipal

      @Stability(Stable) public SamlConsolePrincipal(@NotNull ISamlProvider samlProvider, @Nullable Map<String,Object> conditions)
      Parameters:
      samlProvider - This parameter is required.
      conditions - The conditions under which the policy is in effect.
    • SamlConsolePrincipal

      @Stability(Stable) public SamlConsolePrincipal(@NotNull ISamlProvider samlProvider)
      Parameters:
      samlProvider - This parameter is required.
  • Method Details

    • toString

      @Stability(Stable) @NotNull public String toString()
      Returns a string representation of an object.
      Overrides:
      toString in class SamlPrincipal