interface IdentityPoolProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cognito.Identitypool.IdentityPoolProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognitoidentitypool#IdentityPoolProps |
Java | software.amazon.awscdk.services.cognito.identitypool.IdentityPoolProps |
Python | aws_cdk.aws_cognito_identitypool.IdentityPoolProps |
TypeScript (source) | aws-cdk-lib » aws_cognito_identitypool » IdentityPoolProps |
Props for the Identity Pool construct.
Example
declare const openIdConnectProvider: iam.OpenIdConnectProvider;
new IdentityPool(this, 'myidentitypool', {
identityPoolName: 'myidentitypool',
authenticationProviders: {
google: {
clientId: '12345678012.apps.googleusercontent.com',
},
openIdConnectProviders: [openIdConnectProvider],
customProvider: 'my-custom-provider.example.com',
},
});
Properties
| Name | Type | Description |
|---|---|---|
| allow | boolean | Enables the Basic (Classic) authentication flow. |
| allow | boolean | Whether the Identity Pool supports unauthenticated logins. |
| authenticated | IRole | The default Role to be assumed by authenticated users. |
| authentication | Identity | Authentication Providers for using in Identity Pool. |
| identity | string | The name of the Identity Pool. |
| role | Identity[] | Rules for mapping roles to users. |
| unauthenticated | IRole | The default Role to be assumed by unauthenticated users. |
allowClassicFlow?
Type:
boolean
(optional, default: Classic Flow not allowed)
Enables the Basic (Classic) authentication flow.
allowUnauthenticatedIdentities?
Type:
boolean
(optional, default: false)
Whether the Identity Pool supports unauthenticated logins.
authenticatedRole?
Type:
IRole
(optional, default: A default authenticated Role will be added)
The default Role to be assumed by authenticated users.
authenticationProviders?
Type:
Identity
(optional, default: No Authentication Providers passed directly to Identity Pool)
Authentication Providers for using in Identity Pool.
identityPoolName?
Type:
string
(optional, default: Automatically generated name by CloudFormation at deploy time)
The name of the Identity Pool.
roleMappings?
Type:
Identity[]
(optional, default: no role mappings)
Rules for mapping roles to users.
unauthenticatedRole?
Type:
IRole
(optional, default: A default unauthenticated Role will be added)
The default Role to be assumed by unauthenticated users.

.NET
Go
Java
Python
TypeScript (