enum Mfa
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.Mfa |
Java | software.amazon.awscdk.services.cognito.Mfa |
Python | aws_cdk.aws_cognito.Mfa |
TypeScript (source) | @aws-cdk/aws-cognito » Mfa |
The different ways in which a user pool's MFA enforcement can be configured.
See also: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa.html
Example
new cognito.UserPool(this, 'myuserpool', {
// ...
mfa: cognito.Mfa.REQUIRED,
mfaSecondFactor: {
sms: true,
otp: true,
},
});
Members
Name | 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. |
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.