@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.586Z") @Stability(value=Stable) public interface MfaSecondFactor extends software.amazon.jsii.JsiiSerializable
Example:
UserPool.Builder.create(this, "myuserpool")
// ...
.mfa(Mfa.REQUIRED)
.mfaSecondFactor(MfaSecondFactor.builder()
.sms(true)
.otp(true)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MfaSecondFactor.Builder
A builder for
MfaSecondFactor |
static class |
MfaSecondFactor.Jsii$Proxy
An implementation for
MfaSecondFactor |
| Modifier and Type | Method and Description |
|---|---|
static MfaSecondFactor.Builder |
builder() |
Boolean |
getOtp()
The MFA token is a time-based one time password that is generated by a hardware or software token.
|
Boolean |
getSms()
The MFA token is sent to the user via SMS to their verified phone numbers.
|
@Stability(value=Stable) @NotNull Boolean getOtp()
Default: false
@Stability(value=Stable) @NotNull Boolean getSms()
Default: true
@Stability(value=Stable) static MfaSecondFactor.Builder builder()
MfaSecondFactor.Builder of MfaSecondFactorCopyright © 2022. All rights reserved.