Interface IStandardAttributesMask
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
.
public interface IStandardAttributesMask
Examples
var pool = new UserPool(this, "Pool");
var clientWriteAttributes = (new ClientAttributes()).WithStandardAttributes(new StandardAttributesMask { Fullname = true, Email = true }).WithCustomAttributes("favouritePizza", "favouriteBeverage");
var clientReadAttributes = clientWriteAttributes.WithStandardAttributes(new StandardAttributesMask { EmailVerified = true }).WithCustomAttributes("pointsEarned");
pool.AddClient("app-client", new UserPoolClientOptions {
// ...
ReadAttributes = clientReadAttributes,
WriteAttributes = clientWriteAttributes
});
Remarks
ExampleMetadata: infused
Properties
Address
The user's postal address.
bool? Address { get; }
Property Value
- bool?
Remarks
Default: false
Birthdate
The user's birthday, represented as an ISO 8601:2004 format.
bool? Birthdate { get; }
Property Value
- bool?
Remarks
Default: false
The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.
bool? Email { get; }
Property Value
- bool?
Remarks
Default: false
EmailVerified
Whether the email address has been verified.
bool? EmailVerified { get; }
Property Value
- bool?
Remarks
Default: false
FamilyName
The surname or last name of the user.
bool? FamilyName { get; }
Property Value
- bool?
Remarks
Default: false
Fullname
The user's full name in displayable form, including all name parts, titles and suffixes.
bool? Fullname { get; }
Property Value
- bool?
Remarks
Default: false
Gender
The user's gender.
bool? Gender { get; }
Property Value
- bool?
Remarks
Default: false
GivenName
The user's first name or give name.
bool? GivenName { get; }
Property Value
- bool?
Remarks
Default: false
LastUpdateTime
The time, the user's information was last updated.
bool? LastUpdateTime { get; }
Property Value
- bool?
Remarks
Default: false
Locale
The user's locale, represented as a BCP47 [RFC5646] language tag.
bool? Locale { get; }
Property Value
- bool?
Remarks
Default: false
MiddleName
The user's middle name.
bool? MiddleName { get; }
Property Value
- bool?
Remarks
Default: false
Nickname
The user's nickname or casual name.
bool? Nickname { get; }
Property Value
- bool?
Remarks
Default: false
PhoneNumber
The user's telephone number.
bool? PhoneNumber { get; }
Property Value
- bool?
Remarks
Default: false
PhoneNumberVerified
Whether the phone number has been verified.
bool? PhoneNumberVerified { get; }
Property Value
- bool?
Remarks
Default: false
PreferredUsername
The user's preffered username, different from the immutable user name.
bool? PreferredUsername { get; }
Property Value
- bool?
Remarks
Default: false
ProfilePage
The URL to the user's profile page.
bool? ProfilePage { get; }
Property Value
- bool?
Remarks
Default: false
ProfilePicture
The URL to the user's profile picture.
bool? ProfilePicture { get; }
Property Value
- bool?
Remarks
Default: false
Timezone
The user's time zone.
bool? Timezone { get; }
Property Value
- bool?
Remarks
Default: false
Website
The URL to the user's web page or blog.
bool? Website { get; }
Property Value
- bool?
Remarks
Default: false