Registry /
aws / aws-cdk-aws-apigatewayv2-integrations-alpha
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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 362.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 17.7s · import 0.000s · 363MB
401MB installed
● package 401MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
HttpAlbIntegration
✓ from aws_cdk.aws_apigatewayv2_integrations import HttpAlbIntegration
✗ from aws_cdk.aws_apigatewayv2_integrations_alpha import HttpAlbIntegration
Alpha module is deprecated; use stable aws-cdk-lib submodule.
WebSocketLambdaIntegration
✓ from aws_cdk.aws_apigatewayv2_integrations import WebSocketLambdaIntegration
✗ from aws_cdk.aws_apigatewayv2_integrations_alpha import WebSocketLambdaIntegration
All constructs moved to aws-cdk-lib.
Creates an HTTP API with a Lambda integration using the stable CDK v2 module.
import aws_cdk as cdk
from aws_cdk.aws_apigatewayv2 import HttpApi
from aws_cdk.aws_apigatewayv2_integrations import HttpLambdaIntegration
app = cdk.App()
stack = cdk.Stack(app, 'MyStack')
# Define Lambda function (placeholder)
from aws_cdk.aws_lambda import Function, Code, Runtime
fn = Function(stack, 'MyFunction',
runtime=Runtime.PYTHON_3_9,
handler='index.handler',
code=Code.from_inline("def handler(event, context): return {'statusCode': 200}")
)
integration = HttpLambdaIntegration('MyIntegration', handler=fn)
api = HttpApi(stack, 'MyApi',
default_integration=integration
)
app.synth()
Debug
Known issues
deprecatedThis package is deprecated. All constructs are available in aws-cdk-lib as stable. Do not start new projects with alpha modules.fixUse aws-cdk-lib/aws-apigatewayv2-integrations instead.
affects: >=2.0.0
breakingAlpha modules may have breaking changes without notice. They also have different import paths from stable modules.fixMigrate to stable aws-cdk-lib imports as soon as possible.
affects: all alpha versions
gotchaInstalling the alpha package (e.g., aws-cdk-aws-apigatewayv2-integrations-alpha) alongside aws-cdk-lib can cause duplicate construct errors.fixRemove the alpha package and import from 'aws_cdk.aws_apigatewayv2_integrations'.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_apigatewayv2_integrations_alpha'
The alpha package is not installed or you are using the wrong import path.
fixRun 'pip install aws-cdk-aws-apigatewayv2-integrations-alpha' OR switch to stable import: from aws_cdk.aws_apigatewayv2_integrations import ...
ImportError: cannot import name 'HttpLambdaIntegration' from 'aws_cdk.aws_apigatewayv2_integrations_alpha'
The class name may differ between alpha and stable, or the alpha version is outdated.
fixUse stable CDK: from aws_cdk.aws_apigatewayv2_integrations import HttpLambdaIntegration
jsii.errors.JSIIError: There is already a ... construct with name '...'
Mixing alpha and stable constructs for the same API resource.
fixUse only stable constructs from aws-cdk-lib.
Upgrade
Version history
2.114.1a0latest on PyPI · released Dec 6, 2023
Audit
Dependencies
No dependency data recorded yet.