Class UserPoolIdentityProviderSaml

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderSaml
All Implemented Interfaces:
IResource, IUserPoolIdentityProvider, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:04.732Z") @Stability(Stable) public class UserPoolIdentityProviderSaml extends Resource implements IUserPoolIdentityProvider
Represents an identity provider that integrates with SAML.

Example:

 UserPool userpool = new UserPool(this, "Pool");
 // specify the metadata as a file content
 // specify the metadata as a file content
 UserPoolIdentityProviderSaml.Builder.create(this, "userpoolIdpFile")
         .userPool(userpool)
         .metadata(UserPoolIdentityProviderSamlMetadata.file("my-file-contents"))
         // Whether to require encrypted SAML assertions from IdP
         .encryptedResponses(true)
         // The signing algorithm for the SAML requests
         .requestSigningAlgorithm(SigningAlgorithm.RSA_SHA256)
         // Enable IdP initiated SAML auth flow
         .idpInitiated(true)
         .build();
 // specify the metadata as a URL
 // specify the metadata as a URL
 UserPoolIdentityProviderSaml.Builder.create(this, "userpoolidpUrl")
         .userPool(userpool)
         .metadata(UserPoolIdentityProviderSamlMetadata.url("https://my-metadata-url.com"))
         .build();
 
  • Constructor Details

    • UserPoolIdentityProviderSaml

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

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

      @Stability(Stable) public UserPoolIdentityProviderSaml(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserPoolIdentityProviderSamlProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • configureAttributeMapping

      @Stability(Stable) @NotNull protected Object configureAttributeMapping()
    • getProviderName

      @Stability(Stable) @NotNull public String getProviderName()
      The primary identifier of this identity provider.
      Specified by:
      getProviderName in interface IUserPoolIdentityProvider