{"id":23301,"library":"aws-cdk-aws-apigatewayv2-alpha","title":"AWS CDK Amazon API Gateway V2 (Alpha)","description":"Deprecated AWS CDK module for Amazon API Gateway V2 (HTTP and WebSocket APIs). All constructs are now available under aws-cdk-lib/aws-apigatewayv2 as of CDK v2. This alpha module is frozen at version 2.114.1a0 and receives no updates. Users must migrate to the stable module.","status":"deprecated","version":"2.114.1a0","language":"python","source_language":"en","source_url":"https://github.com/aws/aws-cdk","tags":["aws-cdk","apigatewayv2","deprecated","alpha"],"install":[{"cmd":"pip install aws-cdk-aws-apigatewayv2-alpha==2.114.1a0","lang":"bash","label":"legacy"}],"dependencies":[{"reason":"Required for CDK core and stable modules. All API Gateway V2 constructs are now in aws-cdk-lib/aws-apigatewayv2.","package":"aws-cdk-lib","optional":false}],"imports":[{"note":"The alpha module is deprecated; use stable import from aws_cdk.aws_apigatewayv2.","wrong":"from aws_cdk.aws_apigatewayv2_alpha import HttpApi","symbol":"HttpApi","correct":"from aws_cdk.aws_apigatewayv2 import HttpApi"},{"note":"Same as HttpApi; stable module provides identical constructs.","wrong":"from aws_cdk.aws_apigatewayv2_alpha import WebSocketApi","symbol":"WebSocketApi","correct":"from aws_cdk.aws_apigatewayv2 import WebSocketApi"},{"note":"Cfn resources are also in the stable module.","wrong":"from aws_cdk.aws_apigatewayv2_alpha import CfnApi","symbol":"CfnApi","correct":"from aws_cdk.aws_apigatewayv2 import CfnApi"}],"quickstart":{"code":"from aws_cdk import App, Stack\nfrom aws_cdk.aws_apigatewayv2 import HttpApi\n\napp = App()\nstack = Stack(app, \"MyStack\")\nHttpApi(stack, \"MyHttpApi\")\napp.synth()","lang":"python","description":"Use the stable aws-cdk-lib module instead of the deprecated alpha package."},"warnings":[{"fix":"Replace all imports from aws_cdk.aws_apigatewayv2_alpha with aws_cdk.aws_apigatewayv2 from aws-cdk-lib.","message":"Complete module deprecation: aws-cdk-aws-apigatewayv2-alpha is no longer maintained. All constructs have moved to aws-cdk-lib/aws-apigatewayv2.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Review the stable CDK docs for aws-apigatewayv2 to adapt any custom constructs.","message":"Removal of alpha-specific classes: e.g., HttpMethod, VpcLink (if any) may have different names or parameters in the stable module.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Migrate to aws-cdk-lib/aws-apigatewayv2 immediately.","message":"The alpha package will not receive security updates or bug fixes.","severity":"deprecated","affected_versions":"all"},{"fix":"Use only aws-cdk-lib/aws-apigatewayv2 for all API Gateway V2 resources.","message":"Do not mix imports from both alpha and stable modules in the same stack; it can cause construct ID conflicts or version mismatches.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'/aws-apigatewayv2':31 '2.114.1':43 'a0':44 'alpha':7,37,61 'amazon':3,13 'api':4,14,20 'apigatewayv2':59 'avail':25 'aw':1,9,28,57 'aws-cdk':56 'aws-cdk-lib':27 'cdk':2,10,29,34,58 'construct':22 'deprec':8,60 'frozen':40 'gateway':5,15 'http':17 'lib':30 'migrat':51 'modul':11,38,55 'must':50 'receiv':46 'stabl':54 'updat':48 'user':49 'v2':6,16,35 'version':42 'websocket':19","created_at":"2026-05-01T08:07:02.035371+00:00","updated_at":"2026-05-01T08:07:02.035371+00:00","problems":[{"fix":"Install aws-cdk-lib (stable) and use imports from aws_cdk.aws_apigatewayv2.","cause":"The alpha package is no longer installed or is incompatible with the current CDK version.","error":"ModuleNotFoundError: No module named 'aws_cdk.aws_apigatewayv2_alpha'"},{"fix":"Use 'from aws_cdk.aws_apigatewayv2 import HttpApi' from the stable aws-cdk-lib.","cause":"The alpha package has been removed or the import path is incorrect.","error":"ImportError: cannot import name 'HttpApi' from 'aws_cdk.aws_apigatewayv2_alpha'"},{"fix":"Refer to the stable CDK API documentation; e.g., use 'add_routes' or configure routes via the HttpApi constructor.","cause":"Method names may differ between alpha and stable modules.","error":"AttributeError: 'HttpApi' object has no attribute 'add_routes'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.114.1a0","cli_name":"cdk","cli_version":"sh: 1: cdk: not found","type":"library","homepage":null,"github":"https://github.com/aws/aws-cdk","docs":null,"changelog":null,"pypi":"https://pypi.org/project/aws-cdk-aws-apigatewayv2-alpha/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws","web-framework","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}