MfaSecondFactor

class aws_cdk.aws_cognito.MfaSecondFactor(*, otp, sms)

Bases: object

(experimental) The different ways in which a user pool can obtain their MFA token for sign in.

Parameters
  • otp (bool) – (experimental) The MFA token is a time-based one time password that is generated by a hardware or software token. Default: false

  • sms (bool) – (experimental) The MFA token is sent to the user via SMS to their verified phone numbers. Default: true

See

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa.html

Stability

experimental

Attributes

otp

(experimental) The MFA token is a time-based one time password that is generated by a hardware or software token.

Default

false

See

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa-totp.html

Stability

experimental

Return type

bool

sms

(experimental) The MFA token is sent to the user via SMS to their verified phone numbers.

Default

true

See

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa-sms-text-message.html

Stability

experimental

Return type

bool