StandardAttributesMask Struct
This interface contains standard attributes recognized by Cognito from https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html including built-in attributes email_verified and phone_number_verified.
Example
ts
const pool = new cognito.UserPool(this, 'Pool');
const clientWriteAttributes = (new cognito.ClientAttributes())
.withStandardAttributes({fullname: true, email: true})
.withCustomAttributes('favoritePizza', 'favoriteBeverage');
const clientReadAttributes = clientWriteAttributes
.withStandardAttributes({emailVerified: true})
.withCustomAttributes('pointsEarned');
pool.addClient('app-client', {
// ...
readAttributes: clientReadAttributes,
writeAttributes: clientWriteAttributes,
});
Properties
The user's postal address.
The user's birthday, represented as an ISO 8601:2004 format.
The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.
emailVerifiedbooleanemail_verifiedboolemailVerifiedBooleanEmailVerifiedboolEmailVerified*bool= false#Whether the email address has been verified.
The surname or last name of the user.
The user's full name in displayable form, including all name parts, titles and suffixes.
The user's gender.
The user's first name or give name.
lastUpdateTimebooleanlast_update_timeboollastUpdateTimeBooleanLastUpdateTimeboolLastUpdateTime*bool= false#The time, the user's information was last updated.
The user's locale, represented as a BCP47 [RFC5646] language tag.
The user's middle name.
The user's nickname or casual name.
The user's telephone number.
phoneNumberVerifiedbooleanphone_number_verifiedboolphoneNumberVerifiedBooleanPhoneNumberVerifiedboolPhoneNumberVerified*bool= false#Whether the phone number has been verified.
preferredUsernamebooleanpreferred_usernameboolpreferredUsernameBooleanPreferredUsernameboolPreferredUsername*bool= false#The user's preferred username, different from the immutable user name.
The URL to the user's profile page.
profilePicturebooleanprofile_pictureboolprofilePictureBooleanProfilePictureboolProfilePicture*bool= false#The URL to the user's profile picture.
The user's time zone.
The URL to the user's web page or blog.