@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.116Z") @Stability(value=Experimental) 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();
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa.html| 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()
(experimental) The MFA token is a time-based one time password that is generated by a hardware or software token.
|
Boolean |
getSms()
(experimental) The MFA token is sent to the user via SMS to their verified phone numbers.
|
@Stability(value=Experimental) @NotNull Boolean getOtp()
Default: false
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa-totp.html@Stability(value=Experimental) @NotNull Boolean getSms()
Default: true
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa-sms-text-message.html@Stability(value=Experimental) static MfaSecondFactor.Builder builder()
MfaSecondFactor.Builder of MfaSecondFactorCopyright © 2022. All rights reserved.