Class SamlPrincipal

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IAssumeRolePrincipal, IComparablePrincipal, IGrantable, IPrincipal, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
SamlConsolePrincipal

@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)", date="2023-12-01T19:06:33.454Z") @Stability(Stable) public class SamlPrincipal extends FederatedPrincipal
Principal entity that represents a SAML federated identity provider.

Example:

 SamlProvider provider = SamlProvider.Builder.create(this, "Provider")
         .metadataDocument(SamlMetadataDocument.fromFile("/path/to/saml-metadata-document.xml"))
         .build();
 SamlPrincipal principal = new SamlPrincipal(provider, Map.of(
         "StringEquals", Map.of(
                 "SAML:iss", "issuer")));
 
  • Constructor Details

    • SamlPrincipal

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

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

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

    • toString

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