Table of Contents

Enum Mfa

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

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

public enum Mfa

Fields

OFF = 0

Users are not required to use MFA for sign in, and cannot configure one.

OPTIONAL = 1

Users are not required to use MFA for sign in, but can configure one if they so choose to.

REQUIRED = 2

Users are required to configure an MFA, and have to use it to sign in.

Examples

new UserPool(this, "myuserpool", new UserPoolProps {
                 // ...
                 Mfa = Mfa.REQUIRED,
                 MfaSecondFactor = new MfaSecondFactor {
                     Sms = true,
                     Otp = true
                 }
             });

Remarks