SignInAliases

class aws_cdk.aws_cognito.SignInAliases(*, email=None, phone=None, preferred_username=None, username=None)

Bases: object

__init__(*, email=None, phone=None, preferred_username=None, username=None)

The different ways in which users of this pool can sign up or sign in.

Parameters
  • email (Optional[bool]) – Whether a user is allowed to sign up or sign in with an email address. Default: false

  • phone (Optional[bool]) – Whether a user is allowed to sign up or sign in with a phone number. Default: false

  • preferred_username (Optional[bool]) – Whether a user is allowed to ign in with a secondary username, that can be set and modified after sign up. Can only be used in conjunction with USERNAME. Default: false

  • username (Optional[bool]) – Whether user is allowed to sign up or sign in with a username. Default: true

stability :stability: experimental

Return type

None

Attributes

email

Whether a user is allowed to sign up or sign in with an email address.

default :default: false

stability :stability: experimental

Return type

Optional[bool]

phone

Whether a user is allowed to sign up or sign in with a phone number.

default :default: false

stability :stability: experimental

Return type

Optional[bool]

preferred_username

Whether a user is allowed to ign in with a secondary username, that can be set and modified after sign up.

Can only be used in conjunction with USERNAME.

default :default: false

stability :stability: experimental

Return type

Optional[bool]

username

Whether user is allowed to sign up or sign in with a username.

default :default: true

stability :stability: experimental

Return type

Optional[bool]