Interface SignInAliases
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SignInAliases.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:06.407Z")
@Stability(Stable)
public interface SignInAliases
extends software.amazon.jsii.JsiiSerializable
The different ways in which users of this pool can sign up or sign in.
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 forSignInAliases
static final class
An implementation forSignInAliases
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignInAliases.Builder
builder()
default Boolean
getEmail()
Whether a user is allowed to sign up or sign in with an email address.default Boolean
getPhone()
Whether a user is allowed to sign up or sign in with a phone number.default Boolean
Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.default Boolean
Whether user is allowed to sign up or sign in with a username.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEmail
Whether a user is allowed to sign up or sign in with an email address.Default: false
-
getPhone
Whether a user is allowed to sign up or sign in with a phone number.Default: false
-
getPreferredUsername
Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.Can only be used in conjunction with
USERNAME
.Default: false
-
getUsername
Whether user is allowed to sign up or sign in with a username.Default: true
-
builder
- Returns:
- a
SignInAliases.Builder
ofSignInAliases
-