AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

UserPoolIdentityProviderAmazon

Represents an identity provider that integrates with Login with Amazon.

Import

import { UserPoolIdentityProviderAmazon } from 'aws-cdk-lib/aws-cognito';

Or use the module namespace:

import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.UserPoolIdentityProviderAmazon

Properties

Configuration passed to the constructor as UserPoolIdentityProviderAmazonProps.

clientIdRequired
string

The client id recognized by Login with Amazon APIs.

clientSecretRequired
string

The client secret to be accompanied with clientId for Login with Amazon APIs to authenticate the client.

scopesOptional
string[]

The types of user profile data to obtain for the Amazon profile.

Default: [ profile ]

2 properties inherited from UserPoolIdentityProviderProps
userPoolRequiredinherited from UserPoolIdentityProviderProps
IUserPool

The user pool to which this construct provides identities.

attributeMappingOptionalinherited from UserPoolIdentityProviderProps
AttributeMapping

Mapping attributes from the identity provider to standard and custom attributes of the user pool.

Default: - no attribute mapping

Get the Amazon Cognito Cheat Sheet

Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.

Download Free Infographic