Interface MfaSecondFactor
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MfaSecondFactor.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.020Z")
@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)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMfaSecondFactorstatic final classAn implementation forMfaSecondFactor -
Method Summary
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
-
getSms
The MFA token is sent to the user via SMS to their verified phone numbers.Default: true
-
builder
- Returns:
- a
MfaSecondFactor.BuilderofMfaSecondFactor
-