Skip to content
v2.275.0

Mfa Enum ​

The different ways in which a user pool's MFA enforcement can be configured.

Example ​

ts
new cognito.UserPool(this, 'myuserpool', {
  // ...
  mfa: cognito.Mfa.REQUIRED,
  mfaSecondFactor: {
    sms: true,
    otp: true,
    email: false, // email-based MFA
  },
});

Members ​

MemberDescription
OFFUsers are not required to use MFA for sign in, and cannot configure one.
OPTIONALUsers are not required to use MFA for sign in, but can configure one if they so choose to.
REQUIREDUsers are required to configure an MFA, and have to use it to sign in.

Referenced by ​