# SignInPolicyProperty

The policy for allowed types of authentication in a user pool.

To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const signInPolicyProperty: cognito.CfnUserPool.SignInPolicyProperty = {
  allowedFirstAuthFactors: ['allowedFirstAuthFactors'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

sign_in_policy_property = cognito.CfnUserPool.SignInPolicyProperty(
    allowed_first_auth_factors=["allowedFirstAuthFactors"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

SignInPolicyProperty signInPolicyProperty = SignInPolicyProperty.builder()
        .allowedFirstAuthFactors(List.of("allowedFirstAuthFactors"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var signInPolicyProperty = new SignInPolicyProperty {
    AllowedFirstAuthFactors = new [] { "allowedFirstAuthFactors" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

signInPolicyProperty := &SignInPolicyProperty{
	AllowedFirstAuthFactors: []*string{
		jsii.String("allowedFirstAuthFactors"),
	},
}
```

## Properties

- `allowedFirstAuthFactors`: string[] — The sign-in methods that a user pool supports as the first factor.

  You can permit users to start authentication with a standard username and password, or with other one-time password and hardware factors.

  Supports values of `EMAIL_OTP` , `SMS_OTP` , `WEB_AUTHN` and `PASSWORD` ,
