@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.585Z") @Stability(value=Stable) public enum Mfa extends Enum<Mfa>
Example:
UserPool.Builder.create(this, "myuserpool")
// ...
.mfa(Mfa.REQUIRED)
.mfaSecondFactor(MfaSecondFactor.builder()
.sms(true)
.otp(true)
.build())
.build();
| Enum Constant and Description |
|---|
OFF
Users are not required to use MFA for sign in, and cannot configure one.
|
OPTIONAL
Users are not required to use MFA for sign in, but can configure one if they so choose to.
|
REQUIRED
Users are required to configure an MFA, and have to use it to sign in.
|
| Modifier and Type | Method and Description |
|---|---|
static Mfa |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mfa[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final Mfa OFF
@Stability(value=Stable) public static final Mfa OPTIONAL
@Stability(value=Stable) public static final Mfa REQUIRED
public static Mfa[] values()
for (Mfa c : Mfa.values()) System.out.println(c);
public static Mfa valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.