MfaSecondFactor

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

Bases: object

__init__(*, otp, sms)

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

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

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

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

Return type

None

Attributes

otp

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

default :default: false

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

Return type

bool

sms

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

default :default: true

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

Return type

bool