interface MfaSecondFactor
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cognito.MfaSecondFactor |
Java | software.amazon.awscdk.services.cognito.MfaSecondFactor |
Python | aws_cdk.aws_cognito.MfaSecondFactor |
TypeScript (source) | @aws-cdk/aws-cognito » MfaSecondFactor |
The different ways in which a user pool can obtain their MFA token for sign in.
Example
new cognito.UserPool(this, 'myuserpool', {
// ...
mfa: cognito.Mfa.REQUIRED,
mfaSecondFactor: {
sms: true,
otp: true,
},
});
Properties
| Name | Type | Description |
|---|---|---|
| otp | boolean | The MFA token is a time-based one time password that is generated by a hardware or software token. |
| sms | boolean | The MFA token is sent to the user via SMS to their verified phone numbers. |
otp
Type:
boolean
The MFA token is a time-based one time password that is generated by a hardware or software token.
sms
Type:
boolean
The MFA token is sent to the user via SMS to their verified phone numbers.

.NET
Java
Python
TypeScript (