@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.599Z") @Stability(value=Stable) public interface AttributeMapping extends software.amazon.jsii.JsiiSerializable
Example:
UserPool userpool = new UserPool(this, "Pool");
UserPoolIdentityProviderAmazon.Builder.create(this, "Amazon")
.clientId("amzn-client-id")
.clientSecret("amzn-client-secret")
.userPool(userpool)
.attributeMapping(AttributeMapping.builder()
.email(ProviderAttribute.AMAZON_EMAIL)
.website(ProviderAttribute.other("url")) // use other() when an attribute is not pre-defined in the CDK
.custom(Map.of(
// custom user pool attributes go here
"uniqueId", ProviderAttribute.AMAZON_USER_ID))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AttributeMapping.Builder
A builder for
AttributeMapping |
static class |
AttributeMapping.Jsii$Proxy
An implementation for
AttributeMapping |
| Modifier and Type | Method and Description |
|---|---|
static AttributeMapping.Builder |
builder() |
default ProviderAttribute |
getAddress()
The user's postal address is a required attribute.
|
default ProviderAttribute |
getBirthdate()
The user's birthday.
|
default Map<String,ProviderAttribute> |
getCustom()
Specify custom attribute mapping here and mapping for any standard attributes not supported yet.
|
default ProviderAttribute |
getEmail()
The user's e-mail address.
|
default ProviderAttribute |
getFamilyName()
The surname or last name of user.
|
default ProviderAttribute |
getFullname()
The user's full name in displayable form.
|
default ProviderAttribute |
getGender()
The user's gender.
|
default ProviderAttribute |
getGivenName()
The user's first name or give name.
|
default ProviderAttribute |
getLastUpdateTime()
Time, the user's information was last updated.
|
default ProviderAttribute |
getLocale()
The user's locale.
|
default ProviderAttribute |
getMiddleName()
The user's middle name.
|
default ProviderAttribute |
getNickname()
The user's nickname or casual name.
|
default ProviderAttribute |
getPhoneNumber()
The user's telephone number.
|
default ProviderAttribute |
getPreferredUsername()
The user's preferred username.
|
default ProviderAttribute |
getProfilePage()
The URL to the user's profile page.
|
default ProviderAttribute |
getProfilePicture()
The URL to the user's profile picture.
|
default ProviderAttribute |
getTimezone()
The user's time zone.
|
default ProviderAttribute |
getWebsite()
The URL to the user's web page or blog.
|
@Stability(value=Stable) @Nullable default ProviderAttribute getAddress()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getBirthdate()
Default: - not mapped
@Stability(value=Stable) @Nullable default Map<String,ProviderAttribute> getCustom()
Default: - no custom attribute mapping
@Stability(value=Stable) @Nullable default ProviderAttribute getEmail()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getFamilyName()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getFullname()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getGender()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getGivenName()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getLastUpdateTime()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getLocale()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getMiddleName()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getNickname()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getPhoneNumber()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getPreferredUsername()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getProfilePage()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getProfilePicture()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getTimezone()
Default: - not mapped
@Stability(value=Stable) @Nullable default ProviderAttribute getWebsite()
Default: - not mapped
@Stability(value=Stable) static AttributeMapping.Builder builder()
AttributeMapping.Builder of AttributeMappingCopyright © 2022. All rights reserved.