Interface AllowedFirstAuthFactors
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AllowedFirstAuthFactors.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.202Z")
@Stability(Stable)
public interface AllowedFirstAuthFactors
extends software.amazon.jsii.JsiiSerializable
The types of authentication that you want to allow for users' first authentication prompt.
Example:
UserPool.Builder.create(this, "myuserpool")
.signInPolicy(SignInPolicy.builder()
.allowedFirstAuthFactors(AllowedFirstAuthFactors.builder().password(true).passkey(true).build())
.build())
.passkeyRelyingPartyId("auth.example.com")
.passkeyUserVerification(PasskeyUserVerification.REQUIRED)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAllowedFirstAuthFactorsstatic final classAn implementation forAllowedFirstAuthFactors -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPassword
Whether the password authentication is allowed.This must be true.
-
getEmailOtp
Whether the email message one-time password is allowed.Default: false
-
getPasskey
Whether the Passkey (WebAuthn) is allowed.Default: false
-
getSmsOtp
Whether the SMS message one-time password is allowed.Default: false
-
builder
- Returns:
- a
AllowedFirstAuthFactors.BuilderofAllowedFirstAuthFactors
-