Interface StandardAttributesMask
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StandardAttributesMask.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:06.410Z")
@Stability(Stable)
public interface StandardAttributesMask
extends software.amazon.jsii.JsiiSerializable
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:
UserPool pool = new UserPool(this, "Pool"); ClientAttributes clientWriteAttributes = (new ClientAttributes()).withStandardAttributes(StandardAttributesMask.builder().fullname(true).email(true).build()).withCustomAttributes("favouritePizza", "favouriteBeverage"); ClientAttributes clientReadAttributes = clientWriteAttributes.withStandardAttributes(StandardAttributesMask.builder().emailVerified(true).build()).withCustomAttributes("pointsEarned"); pool.addClient("app-client", UserPoolClientOptions.builder() // ... .readAttributes(clientReadAttributes) .writeAttributes(clientWriteAttributes) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forStandardAttributesMask
static final class
An implementation forStandardAttributesMask
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
The user's postal address.default Boolean
The user's birthday, represented as an ISO 8601:2004 format.default Boolean
getEmail()
The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.default Boolean
Whether the email address has been verified.default Boolean
The surname or last name of the user.default Boolean
The user's full name in displayable form, including all name parts, titles and suffixes.default Boolean
The user's gender.default Boolean
The user's first name or give name.default Boolean
The time, the user's information was last updated.default Boolean
The user's locale, represented as a BCP47 [RFC5646] language tag.default Boolean
The user's middle name.default Boolean
The user's nickname or casual name.default Boolean
The user's telephone number.default Boolean
Whether the phone number has been verified.default Boolean
The user's preffered username, different from the immutable user name.default Boolean
The URL to the user's profile page.default Boolean
The URL to the user's profile picture.default Boolean
The user's time zone.default Boolean
The URL to the user's web page or blog.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAddress
The user's postal address.Default: false
-
getBirthdate
The user's birthday, represented as an ISO 8601:2004 format.Default: false
-
getEmail
The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.Default: false
-
getEmailVerified
Whether the email address has been verified.Default: false
-
getFamilyName
The surname or last name of the user.Default: false
-
getFullname
The user's full name in displayable form, including all name parts, titles and suffixes.Default: false
-
getGender
The user's gender.Default: false
-
getGivenName
The user's first name or give name.Default: false
-
getLastUpdateTime
The time, the user's information was last updated.Default: false
-
getLocale
The user's locale, represented as a BCP47 [RFC5646] language tag.Default: false
-
getMiddleName
The user's middle name.Default: false
-
getNickname
The user's nickname or casual name.Default: false
-
getPhoneNumber
The user's telephone number.Default: false
-
getPhoneNumberVerified
Whether the phone number has been verified.Default: false
-
getPreferredUsername
The user's preffered username, different from the immutable user name.Default: false
-
getProfilePage
The URL to the user's profile page.Default: false
-
getProfilePicture
The URL to the user's profile picture.Default: false
-
getTimezone
The user's time zone.Default: false
-
getWebsite
The URL to the user's web page or blog.Default: false
-
builder
- Returns:
- a
StandardAttributesMask.Builder
ofStandardAttributesMask
-