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 Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for MfaSecondFactor
    static final class 
    An implementation for MfaSecondFactor
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Boolean
    The MFA token is sent to the user via EMAIL.
    The MFA token is a time-based one time password that is generated by a hardware or software token.
    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