Registry / aws / aws-cdk-aws-cognito-identitypool-alpha

aws-cdk-aws-cognito-identitypool-alpha

JSON →
library2.186.0a0pypypi✓ verified 85d ago

This is a deprecated Alpha module for AWS CDK that provided L2 constructs for Amazon Cognito Identity Pools. As of version 2.186.0a0, the constructs have been moved to the stable aws-cdk-lib/aws-cognito-identitypool module. The module is in maintenance mode and will not receive further updates. Users are strongly advised to migrate to the stable module.

pip install aws-cdk-aws-cognito-identitypool-alpha
INSTALL
IMPORT
SIG · AWS-CDK-AWS-COGNIT
A
aws-cdk-aws-cognito-identitypool-alpha
awspythonv2.186.0a0
Install
17.7s avg
Import
Disk
399MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.186.0a0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 361.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 17.7s · import 0.000s · 362MB
399MB installed
● package 399MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IdentityPool
from aws_cdk.aws_cognito_identitypool_alpha import IdentityPool
from aws_cdk.aws_cognito import IdentityPool
The stable module does not have this class; use aws-cdk-lib/aws-cognito-identitypool instead.
UserPoolAuthenticationProvider
from aws_cdk.aws_cognito_identitypool_alpha import UserPoolAuthenticationProvider
No common wrong import, but note that this is deprecated.

Minimal example of creating an IdentityPool with a Cognito User Pool authentication provider. For new projects, use the stable module aws-cdk-lib/aws-cognito-identitypool.

from aws_cdk import App, Stack from aws_cdk.aws_cognito_identitypool_alpha import IdentityPool, UserPoolAuthenticationProvider from aws_cdk.aws_cognito import UserPool app = App() stack = Stack(app, "MyStack") user_pool = UserPool(stack, "MyUserPool") identity_pool = IdentityPool( stack, "MyIdentityPool", authentication_providers=[ UserPoolAuthenticationProvider(user_pool=user_pool) ] ) app.synth()
Debug
Known issues
breakingThis module is deprecated and will be removed in a future major version. All constructs are now available in the stable aws-cdk-lib/aws-cognito-identitypool module. Migrate as soon as possible.
fix
Replace imports from 'aws_cdk.aws_cognito_identitypool_alpha' with 'aws_cdk.aws_cognito_identitypool'. See migration guide: https://docs.aws.amazon.com/cdk/latest/guide/cognito-identitypool.html
affects: >=2.186.0a0
deprecatedThe IdentityPool construct does not support role mapping rules in the same way as the stable module. This may cause unexpected behavior if you rely on advanced role mapping.
fix
Use the stable module's IdentityPool which provides a more consistent API for role mappings.
affects: all
gotchaThe import path changed between alpha and stable. 'from aws_cdk.aws_cognito_identitypool_alpha import ...' will not work after migration. Ensure you update all imports and remove the alpha dependency from requirements.
fix
Update imports to 'from aws_cdk.aws_cognito_identitypool import ...' and remove 'aws-cdk-aws-cognito-identitypool-alpha' from dependencies.
affects: all
gotchaThe module version (2.186.0a0) corresponds to CDK v2.186.0 alpha. It may not be compatible with newer CDK versions. If using a newer CDK, migrate to stable.
fix
Use a compatible version of aws-cdk-lib or migrate to the stable module.
affects: >=2.186.0a0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_cognito_identitypool_alpha'
The alpha module is not installed or is deprecated.
fix
Install the package: pip install aws-cdk-aws-cognito-identitypool-alpha. For new projects, use aws_cdk.aws_cognito_identitypool instead.
AttributeError: module 'aws_cdk.aws_cognito_identitypool_alpha' has no attribute 'IdentityPool'
The class may have been renamed or moved in a newer version of the package.
fix
Verify the class exists: pip show aws-cdk-aws-cognito-identitypool-alpha and check the correct class name. For migration, use aws_cdk.aws_cognito_identitypool.IdentityPool.
Upgrade
Version history
2.186.0a0latest on PyPI · released Mar 27, 2025
Audit
Dependencies
aws-cdk-librequiredThis module depends on the core AWS CDK library.
constructsrequiredRequired for CDK constructs.
Agent activity
38 hits · last 30 days
node
32
OpenAI (training)
1
Resources
aws-cdk-aws-cognito-identitypool-alpha — pip install aws-cdk-aws-cognito-identitypool-alpha · libregistry