Class UserPoolIdentityProviderSamlMetadata

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderSamlMetadata
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-09-06T01:36:25.620Z") @Stability(Stable) public class UserPoolIdentityProviderSamlMetadata extends software.amazon.jsii.JsiiObject
Metadata for a SAML user pool identity provider.

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

    • UserPoolIdentityProviderSamlMetadata

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

      protected UserPoolIdentityProviderSamlMetadata(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • file

      @Stability(Stable) @NotNull public static UserPoolIdentityProviderSamlMetadata file(@NotNull String fileContent)
      Specify SAML metadata via the contents of a file.

      Parameters:
      fileContent - This parameter is required.
    • url

      @Stability(Stable) @NotNull public static UserPoolIdentityProviderSamlMetadata url(@NotNull String url)
      Specify SAML metadata via a URL.

      Parameters:
      url - This parameter is required.
    • getMetadataContent

      @Stability(Stable) @NotNull public String getMetadataContent()
      A URL hosting SAML metadata, or the content of a file containing SAML metadata.
    • getMetadataType

      @Stability(Stable) @NotNull public UserPoolIdentityProviderSamlMetadataType getMetadataType()
      The type of metadata, either a URL or file content.