Class UserPoolIdentityProviderAmazon

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:06.422Z") @Stability(Stable) public class UserPoolIdentityProviderAmazon extends Resource implements IUserPoolIdentityProvider
Represents an identity provider that integrates with Login with Amazon.

Example:

 UserPool pool = new UserPool(this, "Pool");
 UserPoolIdentityProviderAmazon provider = UserPoolIdentityProviderAmazon.Builder.create(this, "Amazon")
         .userPool(pool)
         .clientId("amzn-client-id")
         .clientSecret("amzn-client-secret")
         .build();
 UserPoolClient client = pool.addClient("app-client", UserPoolClientOptions.builder()
         // ...
         .supportedIdentityProviders(List.of(UserPoolClientIdentityProvider.AMAZON))
         .build());
 client.node.addDependency(provider);
 
  • Constructor Details

    • UserPoolIdentityProviderAmazon

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

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

      @Stability(Stable) public UserPoolIdentityProviderAmazon(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull UserPoolIdentityProviderAmazonProps 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