@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.600Z") @Stability(value=Stable) public interface AutoVerifiedAttrs extends software.amazon.jsii.JsiiSerializable
Example:
UserPool.Builder.create(this, "myuserpool")
// ...
// ...
.signInAliases(SignInAliases.builder().username(true).email(true).build())
.autoVerify(AutoVerifiedAttrs.builder().email(true).phone(true).build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AutoVerifiedAttrs.Builder
A builder for
AutoVerifiedAttrs |
static class |
AutoVerifiedAttrs.Jsii$Proxy
An implementation for
AutoVerifiedAttrs |
| Modifier and Type | Method and Description |
|---|---|
static AutoVerifiedAttrs.Builder |
builder() |
default Boolean |
getEmail()
Whether the email address of the user should be auto verified at sign up.
|
default Boolean |
getPhone()
Whether the phone number of the user should be auto verified at sign up.
|
@Stability(value=Stable) @Nullable default Boolean getEmail()
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.
@Stability(value=Stable) @Nullable default Boolean getPhone()
Default: - true, if phone is turned on for `signIn`. false, otherwise.
@Stability(value=Stable) static AutoVerifiedAttrs.Builder builder()
AutoVerifiedAttrs.Builder of AutoVerifiedAttrsCopyright © 2022. All rights reserved.