Class SamlConsolePrincipal

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:18.122Z") @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