{"id":23304,"library":"aws-cdk-aws-cognito-identitypool-alpha","title":"AWS CDK Cognito Identity Pool Alpha","description":"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.","status":"deprecated","version":"2.186.0a0","language":"python","source_language":"en","source_url":"https://github.com/aws/aws-cdk.git","tags":["aws","cdk","cognito","identity-pool","deprecated"],"install":[{"cmd":"pip install aws-cdk-aws-cognito-identitypool-alpha","lang":"bash","label":"Install deprecated package"}],"dependencies":[{"reason":"This module depends on the core AWS CDK library.","package":"aws-cdk-lib","optional":false},{"reason":"Required for CDK constructs.","package":"constructs","optional":false}],"imports":[{"note":"The stable module does not have this class; use aws-cdk-lib/aws-cognito-identitypool instead.","wrong":"from aws_cdk.aws_cognito import IdentityPool","symbol":"IdentityPool","correct":"from aws_cdk.aws_cognito_identitypool_alpha import IdentityPool"},{"note":"No common wrong import, but note that this is deprecated.","wrong":null,"symbol":"UserPoolAuthenticationProvider","correct":"from aws_cdk.aws_cognito_identitypool_alpha import UserPoolAuthenticationProvider"}],"quickstart":{"code":"from aws_cdk import App, Stack\nfrom aws_cdk.aws_cognito_identitypool_alpha import IdentityPool, UserPoolAuthenticationProvider\nfrom aws_cdk.aws_cognito import UserPool\n\napp = App()\nstack = Stack(app, \"MyStack\")\n\nuser_pool = UserPool(stack, \"MyUserPool\")\nidentity_pool = IdentityPool(\n    stack, \"MyIdentityPool\",\n    authentication_providers=[\n        UserPoolAuthenticationProvider(user_pool=user_pool)\n    ]\n)\napp.synth()","lang":"python","description":"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."},"warnings":[{"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","message":"This 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.","severity":"breaking","affected_versions":">=2.186.0a0"},{"fix":"Use the stable module's IdentityPool which provides a more consistent API for role mappings.","message":"The 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.","severity":"deprecated","affected_versions":"all"},{"fix":"Update imports to 'from aws_cdk.aws_cognito_identitypool import ...' and remove 'aws-cdk-aws-cognito-identitypool-alpha' from dependencies.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use a compatible version of aws-cdk-lib or migrate to the stable module.","message":"The 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.","severity":"gotcha","affected_versions":">=2.186.0a0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install the package: pip install aws-cdk-aws-cognito-identitypool-alpha. For new projects, use aws_cdk.aws_cognito_identitypool instead.","cause":"The alpha module is not installed or is deprecated.","error":"ModuleNotFoundError: No module named 'aws_cdk.aws_cognito_identitypool_alpha'"},{"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.","cause":"The class may have been renamed or moved in a newer version of the package.","error":"AttributeError: module 'aws_cdk.aws_cognito_identitypool_alpha' has no attribute 'IdentityPool'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}