Interface AutoVerifiedAttrs
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AutoVerifiedAttrs.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.844Z")
@Stability(Stable)
public interface AutoVerifiedAttrs
extends software.amazon.jsii.JsiiSerializable
Attributes that can be automatically verified for users in a user pool.
Example:
UserPool.Builder.create(this, "myuserpool") // ... // ... .signInAliases(SignInAliases.builder().username(true).email(true).build()) .autoVerify(AutoVerifiedAttrs.builder().email(true).phone(true).build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAutoVerifiedAttrs
static final class
An implementation forAutoVerifiedAttrs
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEmail
Whether the email address of the user should be auto verified at sign up.Note: If both
email
andphone
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.htmlDefault: - true, if email is turned on for `signIn`. false, otherwise.
-
getPhone
Whether the phone number of the user should be auto verified at sign up.Default: - true, if phone is turned on for `signIn`. false, otherwise.
-
builder
- Returns:
- a
AutoVerifiedAttrs.Builder
ofAutoVerifiedAttrs
-