Interface MfaSecondFactor
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MfaSecondFactor.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.340Z")
@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 classA builder forMfaSecondFactorstatic final classAn implementation forMfaSecondFactor -
Method Summary
Modifier and TypeMethodDescriptionstatic MfaSecondFactor.Builderbuilder()default BooleangetEmail()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
emailproperty to the Amazon SES email-sending configuration and setfeturePlantoFeaturePlan.ESSENTIALSorFeaturePlan.PLUSDefault: false
- See Also:
-
builder
- Returns:
- a
MfaSecondFactor.BuilderofMfaSecondFactor
-