# CognitoConfigProperty

Struct · External

The configuration of an Amazon Cognito workforce.

A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cognitoConfigProperty: sagemaker.CfnWorkforce.CognitoConfigProperty = {
  clientId: 'clientId',
  userPool: 'userPool',
};
```

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_sagemaker as sagemaker

cognito_config_property = sagemaker.CfnWorkforce.CognitoConfigProperty(
    client_id="clientId",
    user_pool="userPool"
)
```

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

CognitoConfigProperty cognitoConfigProperty = CognitoConfigProperty.builder()
        .clientId("clientId")
        .userPool("userPool")
        .build();
```

C#:

```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.Sagemaker;

var cognitoConfigProperty = new CognitoConfigProperty {
    ClientId = "clientId",
    UserPool = "userPool"
};
```

Go:

```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"

cognitoConfigProperty := &CognitoConfigProperty{
	ClientId: jsii.String("clientId"),
	UserPool: jsii.String("userPool"),
}
```

## Properties

- `clientId`: string (required) — The client ID for your Amazon Cognito user pool.

- `userPool`: string (required) — The ID for your Amazon Cognito user pool.
