Class AutoVerifiedAttrs
Attributes that can be automatically verified for users in a user pool.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoVerifiedAttrs : Object, IAutoVerifiedAttrs
Syntax (vb)
Public Class AutoVerifiedAttrs
Inherits Object
Implements IAutoVerifiedAttrs
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
// ...
// ...
SignInAliases = new SignInAliases { Username = true, Email = true },
AutoVerify = new AutoVerifiedAttrs { Email = true, Phone = true }
});
Synopsis
Constructors
AutoVerifiedAttrs() |
Properties
Whether the email address of the user should be auto verified at sign up. |
|
Phone | Whether the phone number of the user should be auto verified at sign up. |
Constructors
AutoVerifiedAttrs()
public AutoVerifiedAttrs()
Properties
Whether the email address of the user should be auto verified at sign up.
public Nullable<bool> Email { get; set; }
Property Value
System.Nullable<System.Boolean>
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 Nullable<bool> Phone { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: - true, if phone is turned on for signIn
. false, otherwise.