class ProviderAttribute
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.ProviderAttribute |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#ProviderAttribute |
Java | software.amazon.awscdk.services.cognito.ProviderAttribute |
Python | aws_cdk.aws_cognito.ProviderAttribute |
TypeScript (source) | aws-cdk-lib » aws_cognito » ProviderAttribute |
An attribute available from a third party identity provider.
Example
const userpool = new cognito.UserPool(this, 'Pool');
new cognito.UserPoolIdentityProviderAmazon(this, 'Amazon', {
clientId: 'amzn-client-id',
clientSecret: 'amzn-client-secret',
userPool: userpool,
attributeMapping: {
email: cognito.ProviderAttribute.AMAZON_EMAIL,
website: cognito.ProviderAttribute.other('url'), // use other() when an attribute is not pre-defined in the CDK
custom: {
// custom user pool attributes go here
uniqueId: cognito.ProviderAttribute.AMAZON_USER_ID,
},
},
});
Properties
Name | Type | Description |
---|---|---|
attribute | string | The attribute value string as recognized by the provider. |
static AMAZON_EMAIL | Provider | The email attribute provided by Amazon. |
static AMAZON_NAME | Provider | The name attribute provided by Amazon. |
static AMAZON_POSTAL_CODE | Provider | The postal code attribute provided by Amazon. |
static AMAZON_USER_ID | Provider | The user id attribute provided by Amazon. |
static APPLE_EMAIL | Provider | The email attribute provided by Apple. |
static APPLE_EMAIL_VERIFIED | Provider | The email verified atribute provided by Apple. |
static APPLE_FIRST_NAME | Provider | The first name attribute provided by Apple. |
static APPLE_LAST_NAME | Provider | The last name attribute provided by Apple. |
static APPLE_NAME | Provider | The name attribute provided by Apple. |
static FACEBOOK_BIRTHDAY | Provider | The birthday attribute provided by Facebook. |
static FACEBOOK_EMAIL | Provider | The email attribute provided by Facebook. |
static FACEBOOK_FIRST_NAME | Provider | The first name attribute provided by Facebook. |
static FACEBOOK_GENDER | Provider | The gender attribute provided by Facebook. |
static FACEBOOK_ID | Provider | The user id attribute provided by Facebook. |
static FACEBOOK_LAST_NAME | Provider | The last name attribute provided by Facebook. |
static FACEBOOK_LOCALE | Provider | The locale attribute provided by Facebook. |
static FACEBOOK_MIDDLE_NAME | Provider | The middle name attribute provided by Facebook. |
static FACEBOOK_NAME | Provider | The name attribute provided by Facebook. |
static GOOGLE_BIRTHDAYS | Provider | The birthday attribute provided by Google. |
static GOOGLE_EMAIL | Provider | The email attribute provided by Google. |
static GOOGLE_EMAIL_VERIFIED | Provider | The email verified attribute provided by Google. |
static GOOGLE_FAMILY_NAME | Provider | The family name attribute provided by Google. |
static GOOGLE_GENDER | Provider | The gender attribute provided by Google. |
static GOOGLE_GIVEN_NAME | Provider | The given name attribute provided by Google. |
static GOOGLE_NAME | Provider | The name attribute provided by Google. |
static GOOGLE_NAMES | Provider | The name attribute provided by Google. |
static GOOGLE_PHONE_NUMBERS | Provider | The phone number attribute provided by Google. |
static GOOGLE_PICTURE | Provider | The picture attribute provided by Google. |
attributeName
Type:
string
The attribute value string as recognized by the provider.
static AMAZON_EMAIL
Type:
Provider
The email attribute provided by Amazon.
static AMAZON_NAME
Type:
Provider
The name attribute provided by Amazon.
static AMAZON_POSTAL_CODE
Type:
Provider
The postal code attribute provided by Amazon.
static AMAZON_USER_ID
Type:
Provider
The user id attribute provided by Amazon.
static APPLE_EMAIL
Type:
Provider
The email attribute provided by Apple.
static APPLE_EMAIL_VERIFIED
Type:
Provider
The email verified atribute provided by Apple.
static APPLE_FIRST_NAME
Type:
Provider
The first name attribute provided by Apple.
static APPLE_LAST_NAME
Type:
Provider
The last name attribute provided by Apple.
static APPLE_NAME
Type:
Provider
The name attribute provided by Apple.
static FACEBOOK_BIRTHDAY
Type:
Provider
The birthday attribute provided by Facebook.
static FACEBOOK_EMAIL
Type:
Provider
The email attribute provided by Facebook.
static FACEBOOK_FIRST_NAME
Type:
Provider
The first name attribute provided by Facebook.
static FACEBOOK_GENDER
Type:
Provider
The gender attribute provided by Facebook.
static FACEBOOK_ID
Type:
Provider
The user id attribute provided by Facebook.
static FACEBOOK_LAST_NAME
Type:
Provider
The last name attribute provided by Facebook.
static FACEBOOK_LOCALE
Type:
Provider
The locale attribute provided by Facebook.
static FACEBOOK_MIDDLE_NAME
Type:
Provider
The middle name attribute provided by Facebook.
static FACEBOOK_NAME
Type:
Provider
The name attribute provided by Facebook.
static GOOGLE_BIRTHDAYS
Type:
Provider
The birthday attribute provided by Google.
static GOOGLE_EMAIL
Type:
Provider
The email attribute provided by Google.
static GOOGLE_EMAIL_VERIFIED
Type:
Provider
The email verified attribute provided by Google.
static GOOGLE_FAMILY_NAME
Type:
Provider
The family name attribute provided by Google.
static GOOGLE_GENDER
Type:
Provider
The gender attribute provided by Google.
static GOOGLE_GIVEN_NAME
Type:
Provider
The given name attribute provided by Google.
static GOOGLE_NAME
Type:
Provider
The name attribute provided by Google.
static GOOGLE_NAMES
Type:
Provider
The name attribute provided by Google.
static GOOGLE_PHONE_NUMBERS
Type:
Provider
The phone number attribute provided by Google.
static GOOGLE_PICTURE
Type:
Provider
The picture attribute provided by Google.
Methods
Name | Description |
---|---|
static other(attributeName) | Use this to specify an attribute from the identity provider that is not pre-defined in the CDK. |
static other(attributeName)
public static other(attributeName: string): ProviderAttribute
Parameters
- attributeName
string
— the attribute value string as recognized by the provider.
Returns
Use this to specify an attribute from the identity provider that is not pre-defined in the CDK.