# CfnIdentityPoolProps

Properties for defining a `CfnIdentityPool`.

Used as props by: [CfnIdentityPool](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnIdentityPool.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
import * as cognito from 'aws-cdk-lib/aws-cognito';

declare const myProvider: iam.OpenIdConnectProvider;
new cognito.CfnIdentityPool(this, 'IdentityPool', {
  openIdConnectProviderArns: [myProvider.openIdConnectProviderArn],
  // And the other properties for your identity pool
  allowUnauthenticatedIdentities: false,
});
```

Python:

```python
import aws_cdk.aws_cognito as cognito

# my_provider: iam.OpenIdConnectProvider

cognito.CfnIdentityPool(self, "IdentityPool",
    open_id_connect_provider_arns=[my_provider.open_id_connect_provider_arn],
    # And the other properties for your identity pool
    allow_unauthenticated_identities=False
)
```

Java:

```java
import software.amazon.awscdk.services.cognito.*;

OpenIdConnectProvider myProvider;

CfnIdentityPool.Builder.create(this, "IdentityPool")
        .openIdConnectProviderArns(List.of(myProvider.getOpenIdConnectProviderArn()))
        // And the other properties for your identity pool
        .allowUnauthenticatedIdentities(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.Cognito;

OpenIdConnectProvider myProvider;

new CfnIdentityPool(this, "IdentityPool", new CfnIdentityPoolProps {
    OpenIdConnectProviderArns = new [] { myProvider.OpenIdConnectProviderArn },
    // And the other properties for your identity pool
    AllowUnauthenticatedIdentities = false
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import cognito "github.com/aws/aws-cdk-go/awscdk"

var myProvider OpenIdConnectProvider

cognito.NewCfnIdentityPool(this, jsii.String("IdentityPool"), &CfnIdentityPoolProps{
	OpenIdConnectProviderArns: []interface{}{
		myProvider.openIdConnectProviderArn,
	},
	// And the other properties for your identity pool
	AllowUnauthenticatedIdentities: jsii.Boolean(false),
})
```

## Properties

- `allowClassicFlow`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables the Basic (Classic) authentication flow.

- `allowUnauthenticatedIdentities`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether the identity pool supports unauthenticated logins.

- `cognitoEvents`: any — The events to configure.

- `cognitoIdentityProviders`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIdentityPool.CognitoIdentityProviderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnIdentityPool.CognitoIdentityProviderProperty.html)[] — The Amazon Cognito user pools and their client IDs.

- `cognitoStreams`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIdentityPool.CognitoStreamsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnIdentityPool.CognitoStreamsProperty.html) — Configuration options for configuring Amazon Cognito streams.

- `developerProviderName`: string — The "domain" Amazon Cognito uses when referencing your users.

  This name acts as a placeholder that allows your backend and the Amazon Cognito service to communicate about the developer provider. For the `DeveloperProviderName` , you can use letters and periods (.), underscores (_), and dashes (-).

  *Minimum length* : 1

  *Maximum length* : 100

- `identityPoolName`: string — The name of your Amazon Cognito identity pool.

  *Minimum length* : 1

  *Maximum length* : 128

  *Pattern* : `[\w\s+=,.@-]+`

- `identityPoolTags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to assign to the identity pool.

  A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.

- `openIdConnectProviderArns`: string | [IOIDCProviderRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IOIDCProviderRef.html)[] — The Amazon Resource Names (ARNs) of the OpenID connect providers.

- `pushSync`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIdentityPool.PushSyncProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnIdentityPool.PushSyncProperty.html) — The configuration options to be applied to the identity pool.

- `samlProviderArns`: string[] — The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.

- `supportedLoginProviders`: any — Key-value pairs that map provider names to provider app IDs.
