Interface SignInAliases
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SignInAliases.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:17.420Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSignInAliasesstatic final classAn implementation forSignInAliases -
Method Summary
Modifier and TypeMethodDescriptionstatic SignInAliases.Builderbuilder()default BooleangetEmail()Whether a user is allowed to sign up or sign in with an email address.default BooleangetPhone()Whether a user is allowed to sign up or sign in with a phone number.default BooleanWhether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.default BooleanWhether 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.BuilderofSignInAliases
-