# CognitoUserPoolConfigProperty

Describes an Amazon Cognito user pool configuration.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const cognitoUserPoolConfigProperty: appsync.CfnGraphQLApi.CognitoUserPoolConfigProperty = {
  appIdClientRegex: 'appIdClientRegex',
  awsRegion: 'awsRegion',
  userPoolId: 'userPoolId',
};
```

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_appsync as appsync

cognito_user_pool_config_property = appsync.CfnGraphQLApi.CognitoUserPoolConfigProperty(
    app_id_client_regex="appIdClientRegex",
    aws_region="awsRegion",
    user_pool_id="userPoolId"
)
```

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.appsync.*;

CognitoUserPoolConfigProperty cognitoUserPoolConfigProperty = CognitoUserPoolConfigProperty.builder()
        .appIdClientRegex("appIdClientRegex")
        .awsRegion("awsRegion")
        .userPoolId("userPoolId")
        .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.AppSync;

var cognitoUserPoolConfigProperty = new CognitoUserPoolConfigProperty {
    AppIdClientRegex = "appIdClientRegex",
    AwsRegion = "awsRegion",
    UserPoolId = "userPoolId"
};
```

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"

cognitoUserPoolConfigProperty := &CognitoUserPoolConfigProperty{
	AppIdClientRegex: jsii.String("appIdClientRegex"),
	AwsRegion: jsii.String("awsRegion"),
	UserPoolId: jsii.String("userPoolId"),
}
```

## Properties

- `appIdClientRegex`: string — A regular expression for validating the incoming Amazon Cognito user pool app client ID.

  If this value isn't set, no filtering is applied.

- `awsRegion`: string — The AWS Region in which the user pool was created.

- `userPoolId`: string — The user pool ID.
