{"id":23302,"library":"aws-cdk-aws-apigatewayv2-integrations-alpha","title":"AWS CDK API Gateway V2 Integrations (Alpha)","description":"Deprecated alpha module for AWS CDK API Gateway V2 integrations (WebSocket & HTTP APIs). Replaced by aws-cdk-lib/aws-apigatewayv2-integrations since CDK v2. Last published version is 2.114.1a0. Release cadence: weekly.","status":"deprecated","version":"2.114.1a0","language":"python","source_language":"en","source_url":"https://github.com/aws/aws-cdk","tags":["aws","cdk","apigatewayv2","integrations","deprecated"],"install":[{"cmd":"pip install aws-cdk-aws-apigatewayv2-integrations-alpha","lang":"bash","label":"Old alpha install"}],"dependencies":[],"imports":[{"note":"Alpha module is deprecated; use stable aws-cdk-lib submodule.","wrong":"from aws_cdk.aws_apigatewayv2_integrations_alpha import HttpAlbIntegration","symbol":"HttpAlbIntegration","correct":"from aws_cdk.aws_apigatewayv2_integrations import HttpAlbIntegration"},{"note":"All constructs moved to aws-cdk-lib.","wrong":"from aws_cdk.aws_apigatewayv2_integrations_alpha import WebSocketLambdaIntegration","symbol":"WebSocketLambdaIntegration","correct":"from aws_cdk.aws_apigatewayv2_integrations import WebSocketLambdaIntegration"}],"quickstart":{"code":"import aws_cdk as cdk\nfrom aws_cdk.aws_apigatewayv2 import HttpApi\nfrom aws_cdk.aws_apigatewayv2_integrations import HttpLambdaIntegration\n\napp = cdk.App()\nstack = cdk.Stack(app, 'MyStack')\n\n# Define Lambda function (placeholder)\nfrom aws_cdk.aws_lambda import Function, Code, Runtime\nfn = Function(stack, 'MyFunction',\n    runtime=Runtime.PYTHON_3_9,\n    handler='index.handler',\n    code=Code.from_inline(\"def handler(event, context): return {'statusCode': 200}\")\n)\n\nintegration = HttpLambdaIntegration('MyIntegration', handler=fn)\napi = HttpApi(stack, 'MyApi',\n    default_integration=integration\n)\n\napp.synth()","lang":"python","description":"Creates an HTTP API with a Lambda integration using the stable CDK v2 module."},"warnings":[{"fix":"Use aws-cdk-lib/aws-apigatewayv2-integrations instead.","message":"This package is deprecated. All constructs are available in aws-cdk-lib as stable. Do not start new projects with alpha modules.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Migrate to stable aws-cdk-lib imports as soon as possible.","message":"Alpha modules may have breaking changes without notice. They also have different import paths from stable modules.","severity":"breaking","affected_versions":"all alpha versions"},{"fix":"Remove the alpha package and import from 'aws_cdk.aws_apigatewayv2_integrations'.","message":"Installing the alpha package (e.g., aws-cdk-aws-apigatewayv2-integrations-alpha) alongside aws-cdk-lib can cause duplicate construct errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install aws-cdk-aws-apigatewayv2-integrations-alpha' OR switch to stable import: from aws_cdk.aws_apigatewayv2_integrations import ...","cause":"The alpha package is not installed or you are using the wrong import path.","error":"ModuleNotFoundError: No module named 'aws_cdk.aws_apigatewayv2_integrations_alpha'"},{"fix":"Use stable CDK: from aws_cdk.aws_apigatewayv2_integrations import HttpLambdaIntegration","cause":"The class name may differ between alpha and stable, or the alpha version is outdated.","error":"ImportError: cannot import name 'HttpLambdaIntegration' from 'aws_cdk.aws_apigatewayv2_integrations_alpha'"},{"fix":"Use only stable constructs from aws-cdk-lib.","cause":"Mixing alpha and stable constructs for the same API resource.","error":"jsii.errors.JSIIError: There is already a ... construct with name '...'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}