Table of Contents

Class AutoVerifiedAttrs

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

Attributes that can be automatically verified for users in a user pool.

public class AutoVerifiedAttrs : IAutoVerifiedAttrs
Inheritance
AutoVerifiedAttrs
Implements
Inherited Members

Examples

new UserPool(this, "myuserpool", new UserPoolProps {
                // ...
                // ...
                SignInAliases = new SignInAliases { Username = true, Email = true },
                AutoVerify = new AutoVerifiedAttrs { Email = true, Phone = true }
            });

Remarks

ExampleMetadata: infused

Constructors

AutoVerifiedAttrs()

public AutoVerifiedAttrs()

Properties

Email

Whether the email address of the user should be auto verified at sign up.

public bool? Email { get; set; }

Property Value

bool?

Remarks

Note: If both email and phone is set, Cognito only verifies the phone number. To also verify email, see here - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html

Default: - true, if email is turned on for signIn. false, otherwise.

Phone

Whether the phone number of the user should be auto verified at sign up.

public bool? Phone { get; set; }

Property Value

bool?

Remarks

Default: - true, if phone is turned on for signIn. false, otherwise.