@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:57.367Z") public enum Mfa extends java.lang.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(java.lang.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.
|
public static final Mfa OFF
public static final Mfa OPTIONAL
public static final Mfa REQUIRED
public static Mfa[] values()
for (Mfa c : Mfa.values()) System.out.println(c);
public static Mfa valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null