Class KeepOriginalAttrs
Attributes that will be kept until the user verifies the changed attribute.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KeepOriginalAttrs : IKeepOriginalAttrs
Syntax (vb)
Public Class KeepOriginalAttrs Implements IKeepOriginalAttrs
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
// ...
SignInAliases = new SignInAliases { Username = true },
AutoVerify = new AutoVerifiedAttrs { Email = true, Phone = true },
KeepOriginal = new KeepOriginalAttrs {
Email = true,
Phone = true
}
});
Synopsis
Constructors
KeepOriginalAttrs() | Attributes that will be kept until the user verifies the changed attribute. |
Properties
Whether the email address of the user should remain the original value until the new email address is verified. |
|
Phone | Whether the phone number of the user should remain the original value until the new phone number is verified. |
Constructors
KeepOriginalAttrs()
Attributes that will be kept until the user verifies the changed attribute.
public KeepOriginalAttrs()
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
// ...
SignInAliases = new SignInAliases { Username = true },
AutoVerify = new AutoVerifiedAttrs { Email = true, Phone = true },
KeepOriginal = new KeepOriginalAttrs {
Email = true,
Phone = true
}
});
Properties
Whether the email address of the user should remain the original value until the new email address is verified.
public bool? Email { get; set; }
Property Value
bool?
Remarks
Default: - false
Phone
Whether the phone number of the user should remain the original value until the new phone number is verified.
public bool? Phone { get; set; }
Property Value
bool?
Remarks
Default: - false