Skip to content
v2.278.0

CfnIdentityPoolProps Struct ​

Properties for defining a CfnIdentityPool.

Example ​

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
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
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();
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
});
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 ​

allowClassicFlowoptionalboolean | IResolvableallow_classic_flowoptionaltyping.Union[bool, IResolvable]allowClassicFlowoptionalBooleanAllowClassicFlowoptionalboolAllowClassicFlowoptionalinterface{} #
Enables the Basic (Classic) authentication flow.
allowUnauthenticatedIdentitiesboolean | IResolvableallow_unauthenticated_identitiestyping.Union[bool, IResolvable]allowUnauthenticatedIdentitiesBooleanAllowUnauthenticatedIdentitiesboolAllowUnauthenticatedIdentitiesinterface{} required #
Specifies whether the identity pool supports unauthenticated logins.
cognitoEventsoptionalanycognito_eventsoptionalAnycognitoEventsoptionalObjectCognitoEventsoptionalobjectCognitoEventsoptionalinterface{} #
The events to configure.
cognitoIdentityProvidersoptionalIResolvable | IResolvable | CfnIdentityPool.CognitoIdentityProviderProperty[]cognito_identity_providersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CognitoIdentityProviderProperty]]]cognitoIdentityProvidersoptionalIResolvableCognitoIdentityProvidersoptionalIResolvableCognitoIdentityProvidersoptionalinterface{} #
The Amazon Cognito user pools and their client IDs.
cognitoStreamsoptionalIResolvable | CfnIdentityPool.CognitoStreamsPropertycognito_streamsoptionaltyping.Union[IResolvable, CognitoStreamsProperty]cognitoStreamsoptionalIResolvableCognitoStreamsoptionalIResolvableCognitoStreamsoptionalinterface{} #
Configuration options for configuring Amazon Cognito streams.
developerProviderNameoptionalstringdeveloper_provider_nameoptionalstrdeveloperProviderNameoptionalStringDeveloperProviderNameoptionalstringDeveloperProviderNameoptional*string #
The "domain" Amazon Cognito uses when referencing your users.
notes

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

identityPoolNameoptionalstringidentity_pool_nameoptionalstridentityPoolNameoptionalStringIdentityPoolNameoptionalstringIdentityPoolNameoptional*string #
The name of your Amazon Cognito identity pool.

Minimum length : 1

Maximum length : 128

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

identityPoolTagsoptionalCfnTag[]identity_pool_tagsoptionaltyping.List[CfnTag]identityPoolTagsoptionalList<CfnTag>IdentityPoolTagsoptionalCfnTag[]IdentityPoolTagsoptional*[]CfnTag #
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.

openIdConnectProviderArnsoptionalstring | IOIDCProviderRef[]open_id_connect_provider_arnsoptionaltyping.List[typing.Union[str, IOIDCProviderRef]]openIdConnectProviderArnsoptionalList<String>OpenIdConnectProviderArnsoptionalstring[]OpenIdConnectProviderArnsoptional*[]interface{} #
The Amazon Resource Names (ARNs) of the OpenID connect providers.
pushSyncoptionalIResolvable | CfnIdentityPool.PushSyncPropertypush_syncoptionaltyping.Union[IResolvable, PushSyncProperty]pushSyncoptionalIResolvablePushSyncoptionalIResolvablePushSyncoptionalinterface{} #
The configuration options to be applied to the identity pool.
samlProviderArnsoptionalstring[]saml_provider_arnsoptionaltyping.List[str]samlProviderArnsoptionalList<String>SamlProviderArnsoptionalstring[]SamlProviderArnsoptional*[]*string #
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
supportedLoginProvidersoptionalanysupported_login_providersoptionalAnysupportedLoginProvidersoptionalObjectSupportedLoginProvidersoptionalobjectSupportedLoginProvidersoptionalinterface{} #
Key-value pairs that map provider names to provider app IDs.