# CognitoUserPoolConfigurationProperty

A structure that contains configuration information used when creating or updating an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions .

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 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_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';
const cognitoUserPoolConfigurationProperty: verifiedpermissions.CfnIdentitySource.CognitoUserPoolConfigurationProperty = {
  userPoolArn: 'userPoolArn',

  // the properties below are optional
  clientIds: ['clientIds'],
  groupConfiguration: {
    groupEntityType: 'groupEntityType',
  },
};
```

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_verifiedpermissions as verifiedpermissions

cognito_user_pool_configuration_property = verifiedpermissions.CfnIdentitySource.CognitoUserPoolConfigurationProperty(
    user_pool_arn="userPoolArn",

    # the properties below are optional
    client_ids=["clientIds"],
    group_configuration=verifiedpermissions.CfnIdentitySource.CognitoGroupConfigurationProperty(
        group_entity_type="groupEntityType"
    )
)
```

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

CognitoUserPoolConfigurationProperty cognitoUserPoolConfigurationProperty = CognitoUserPoolConfigurationProperty.builder()
        .userPoolArn("userPoolArn")

        // the properties below are optional
        .clientIds(List.of("clientIds"))
        .groupConfiguration(CognitoGroupConfigurationProperty.builder()
                .groupEntityType("groupEntityType")
                .build())
        .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.VerifiedPermissions;

var cognitoUserPoolConfigurationProperty = new CognitoUserPoolConfigurationProperty {
    UserPoolArn = "userPoolArn",

    // the properties below are optional
    ClientIds = new [] { "clientIds" },
    GroupConfiguration = new CognitoGroupConfigurationProperty {
        GroupEntityType = "groupEntityType"
    }
};
```

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"

cognitoUserPoolConfigurationProperty := &CognitoUserPoolConfigurationProperty{
	UserPoolArn: jsii.String("userPoolArn"),

	// the properties below are optional
	ClientIds: []*string{
		jsii.String("clientIds"),
	},
	GroupConfiguration: &CognitoGroupConfigurationProperty{
		GroupEntityType: jsii.String("groupEntityType"),
	},
}
```

## Properties

- `clientIds`: string[] — The unique application client IDs that are associated with the specified Amazon Cognito user pool.

  Example: `"ClientIds": ["&ExampleCogClientId;"]`

- `groupConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIdentitySource.CognitoGroupConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_verifiedpermissions.CfnIdentitySource.CognitoGroupConfigurationProperty.html) — The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.

- `userPoolArn`: string (required) — The [Amazon Resource Name (ARN)](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) of the Amazon Cognito user pool that contains the identities to be authorized.
