# UserPoolIdentityProviderAmazonProps

Properties to initialize UserPoolAmazonIdentityProvider.

Extends: UserPoolIdentityProviderAmazonProps
Extends: UserPoolIdentityProviderProps
Used as props by: UserPoolIdentityProviderAmazon

- Source: [`aws-cognito/lib/user-pool-idps/amazon.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/amazon.ts#L11)

## Example

```ts
const pool = new cognito.UserPool(this, 'Pool');
const provider = new cognito.UserPoolIdentityProviderAmazon(this, 'Amazon', {
  userPool: pool,
  clientId: 'amzn-client-id',
  clientSecret: 'amzn-client-secret',
});

const client = pool.addClient('app-client', {
  // ...
  supportedIdentityProviders: [
    cognito.UserPoolClientIdentityProvider.AMAZON,
  ],
});

client.node.addDependency(provider);
```

## Properties

- `attributeMapping`: [AttributeMapping](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.AttributeMapping.html) — Mapping attributes from the identity provider to standard and custom attributes of the user pool.

  **Default:** no attribute mapping

- `clientId`: string (required) — The client id recognized by Login with Amazon APIs.

- `clientSecret`: string (required) — The client secret to be accompanied with clientId for Login with Amazon APIs to authenticate the client.

- `scopes`: string[] — The types of user profile data to obtain for the Amazon profile.

  **Default:** [ profile ]

- `userPool`: [IUserPool](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.IUserPool.html) (required) — The user pool to which this construct provides identities.
