Table of Contents

Class StandardAttributes

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

The set of standard attributes that can be marked as required or mutable.

public class StandardAttributes : IStandardAttributes
Inheritance
StandardAttributes
Implements
Inherited Members

Examples

new UserPool(this, "myuserpool", new UserPoolProps {
                 // ...
                 StandardAttributes = new StandardAttributes {
                     Fullname = new StandardAttribute {
                         Required = true,
                         Mutable = false
                     },
                     Address = new StandardAttribute {
                         Required = false,
                         Mutable = true
                     }
                 },
                 CustomAttributes = new Dictionary<string, ICustomAttribute> {
                     { "myappid", new StringAttribute(new StringAttributeProps { MinLen = 5, MaxLen = 15, Mutable = false }) },
                     { "callingcode", new NumberAttribute(new NumberAttributeProps { Min = 1, Max = 3, Mutable = true }) },
                     { "isEmployee", new BooleanAttribute(new CustomAttributeProps { Mutable = true }) },
                     { "joinedOn", new DateTimeAttribute() }
                 }
             });

Remarks

Constructors

StandardAttributes()

public StandardAttributes()

Properties

Address

The user's postal address.

public IStandardAttribute? Address { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Birthdate

The user's birthday, represented as an ISO 8601:2004 format.

public IStandardAttribute? Birthdate { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Email

The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.

public IStandardAttribute? Email { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

EmailVerified

(deprecated) DEPRECATED.

[Obsolete("this is not a standard attribute and was incorrectly added to the CDK. It is a Cognito built-in attribute and cannot be controlled as part of user pool creation.")]
public IStandardAttribute? EmailVerified { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Stability: Deprecated

FamilyName

The surname or last name of the user.

public IStandardAttribute? FamilyName { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Fullname

The user's full name in displayable form, including all name parts, titles and suffixes.

public IStandardAttribute? Fullname { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Gender

The user's gender.

public IStandardAttribute? Gender { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

GivenName

The user's first name or give name.

public IStandardAttribute? GivenName { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

LastUpdateTime

The time, the user's information was last updated.

public IStandardAttribute? LastUpdateTime { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Locale

The user's locale, represented as a BCP47 [RFC5646] language tag.

public IStandardAttribute? Locale { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

MiddleName

The user's middle name.

public IStandardAttribute? MiddleName { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Nickname

The user's nickname or casual name.

public IStandardAttribute? Nickname { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

PhoneNumber

The user's telephone number.

public IStandardAttribute? PhoneNumber { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

PhoneNumberVerified

(deprecated) DEPRECATED.

[Obsolete("this is not a standard attribute and was incorrectly added to the CDK. It is a Cognito built-in attribute and cannot be controlled as part of user pool creation.")]
public IStandardAttribute? PhoneNumberVerified { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Stability: Deprecated

PreferredUsername

The user's preffered username, different from the immutable user name.

public IStandardAttribute? PreferredUsername { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

ProfilePage

The URL to the user's profile page.

public IStandardAttribute? ProfilePage { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

ProfilePicture

The URL to the user's profile picture.

public IStandardAttribute? ProfilePicture { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Timezone

The user's time zone.

public IStandardAttribute? Timezone { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute

Website

The URL to the user's web page or blog.

public IStandardAttribute? Website { get; set; }

Property Value

IStandardAttribute

Remarks

Default: - see the defaults under StandardAttribute