interface SignInPolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cognito.SignInPolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#SignInPolicy |
Java | software.amazon.awscdk.services.cognito.SignInPolicy |
Python | aws_cdk.aws_cognito.SignInPolicy |
TypeScript (source) | aws-cdk-lib » aws_cognito » SignInPolicy |
Sign-in policy for User Pools.
Example
new cognito.UserPool(this, 'myuserpool', {
signInPolicy: {
allowedFirstAuthFactors: { password: true, passkey: true },
},
passkeyRelyingPartyId: 'auth.example.com',
passkeyUserVerification: cognito.PasskeyUserVerification.REQUIRED,
});
Properties
| Name | Type | Description |
|---|---|---|
| allowed | Allowed | The types of authentication that you want to allow for users' first authentication prompt. |
allowedFirstAuthFactors?
Type:
Allowed
(optional, default: Password only)
The types of authentication that you want to allow for users' first authentication prompt.

.NET
Go
Java
Python
TypeScript (