Registry / aws / aws-cdk-aws-apigatewayv2-alpha

aws-cdk-aws-apigatewayv2-alpha

JSON →
library2.114.1a0pypypi✓ verified 85d ago

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.

pip install aws-cdk-aws-apigatewayv2-alpha==2.114.1a0
INSTALL
IMPORT
SIG · AWS-CDK-AWS-APIGAT
A
aws-cdk-aws-apigatewayv2-alpha
awspythonv2.114.1a0
Install
17.8s avg
Import
Disk
400MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.114.1a0 · 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 · 362.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 17.8s · import 0.000s · 363MB
400MB installed
● package 400MB
Code
Verified usage

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

HttpApi
from aws_cdk.aws_apigatewayv2 import HttpApi
from aws_cdk.aws_apigatewayv2_alpha import HttpApi
The alpha module is deprecated; use stable import from aws_cdk.aws_apigatewayv2.
WebSocketApi
from aws_cdk.aws_apigatewayv2 import WebSocketApi
from aws_cdk.aws_apigatewayv2_alpha import WebSocketApi
Same as HttpApi; stable module provides identical constructs.
CfnApi
from aws_cdk.aws_apigatewayv2 import CfnApi
from aws_cdk.aws_apigatewayv2_alpha import CfnApi
Cfn resources are also in the stable module.

Use the stable aws-cdk-lib module instead of the deprecated alpha package.

from aws_cdk import App, Stack from aws_cdk.aws_apigatewayv2 import HttpApi app = App() stack = Stack(app, "MyStack") HttpApi(stack, "MyHttpApi") app.synth()
cdk --version
Debug
Known issues
breakingComplete module deprecation: aws-cdk-aws-apigatewayv2-alpha is no longer maintained. All constructs have moved to aws-cdk-lib/aws-apigatewayv2.
fix
Replace all imports from aws_cdk.aws_apigatewayv2_alpha with aws_cdk.aws_apigatewayv2 from aws-cdk-lib.
affects: >=2.0.0
breakingRemoval of alpha-specific classes: e.g., HttpMethod, VpcLink (if any) may have different names or parameters in the stable module.
fix
Review the stable CDK docs for aws-apigatewayv2 to adapt any custom constructs.
affects: >=2.0.0
deprecatedThe alpha package will not receive security updates or bug fixes.
fix
Migrate to aws-cdk-lib/aws-apigatewayv2 immediately.
affects: all
gotchaDo not mix imports from both alpha and stable modules in the same stack; it can cause construct ID conflicts or version mismatches.
fix
Use only aws-cdk-lib/aws-apigatewayv2 for all API Gateway V2 resources.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_apigatewayv2_alpha'
The alpha package is no longer installed or is incompatible with the current CDK version.
fix
Install aws-cdk-lib (stable) and use imports from aws_cdk.aws_apigatewayv2.
ImportError: cannot import name 'HttpApi' from 'aws_cdk.aws_apigatewayv2_alpha'
The alpha package has been removed or the import path is incorrect.
fix
Use 'from aws_cdk.aws_apigatewayv2 import HttpApi' from the stable aws-cdk-lib.
AttributeError: 'HttpApi' object has no attribute 'add_routes'
Method names may differ between alpha and stable modules.
fix
Refer to the stable CDK API documentation; e.g., use 'add_routes' or configure routes via the HttpApi constructor.
Upgrade
Version history
2.114.1a0latest on PyPI · released Dec 6, 2023
Audit
Dependencies
aws-cdk-librequiredRequired for CDK core and stable modules. All API Gateway V2 constructs are now in aws-cdk-lib/aws-apigatewayv2.
Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
aws-cdk-aws-apigatewayv2-alpha — pip install aws-cdk-aws-apigatewayv2-alpha · libregistry