interface SignInAliases
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cognito.SignInAliases |
Java | software.amazon.awscdk.services.cognito.SignInAliases |
Python | aws_cdk.aws_cognito.SignInAliases |
TypeScript (source) | @aws-cdk/aws-cognito » SignInAliases |
The different ways in which users of this pool can sign up or sign in.
Example
new cognito.UserPool(this, 'myuserpool', {
// ...
// ...
signInAliases: {
username: true,
email: true,
},
});
Properties
| Name | Type | Description |
|---|---|---|
| email? | boolean | Whether a user is allowed to sign up or sign in with an email address. |
| phone? | boolean | Whether a user is allowed to sign up or sign in with a phone number. |
| preferred | boolean | Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up. |
| username? | boolean | Whether user is allowed to sign up or sign in with a username. |
email?
Type:
boolean
(optional, default: false)
Whether a user is allowed to sign up or sign in with an email address.
phone?
Type:
boolean
(optional, default: false)
Whether a user is allowed to sign up or sign in with a phone number.
preferredUsername?
Type:
boolean
(optional, default: false)
Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.
Can only be used in conjunction with USERNAME.
username?
Type:
boolean
(optional, default: true)
Whether user is allowed to sign up or sign in with a username.

.NET
Java
Python
TypeScript (