Interface MfaSecondFactor
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MfaSecondFactor.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:16.678Z")
@Stability(Stable)
public interface MfaSecondFactor
extends software.amazon.jsii.JsiiSerializable
The different ways in which a user pool can obtain their MFA token for sign in.
Example:
UserPool.Builder.create(this, "myuserpool") // ... .mfa(Mfa.REQUIRED) .mfaSecondFactor(MfaSecondFactor.builder() .sms(true) .otp(true) .email(false) .build()) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forMfaSecondFactor
static final class
An implementation forMfaSecondFactor
-
Method Summary
Modifier and TypeMethodDescriptionstatic MfaSecondFactor.Builder
builder()
default Boolean
getEmail()
The MFA token is sent to the user via EMAIL.getOtp()
The MFA token is a time-based one time password that is generated by a hardware or software token.getSms()
The MFA token is sent to the user via SMS to their verified phone numbers.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOtp
The MFA token is a time-based one time password that is generated by a hardware or software token.Default: false
- See Also:
-
getSms
The MFA token is sent to the user via SMS to their verified phone numbers.Default: true
- See Also:
-
getEmail
The MFA token is sent to the user via EMAIL.To enable email-based MFA, set
email
property to the Amazon SES email-sending configuration and setfeturePlan
toFeaturePlan.ESSENTIALS
orFeaturePlan.PLUS
Default: false
- See Also:
-
builder
- Returns:
- a
MfaSecondFactor.Builder
ofMfaSecondFactor
-