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

aws-cdk-aws-apigatewayv2-integrations-alpha

JSON →
library2.114.1a0pypypi✓ verified 85d ago

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.

pip install aws-cdk-aws-apigatewayv2-integrations-alpha
INSTALL
IMPORT
SIG · AWS-CDK-AWS-APIGAT
A
aws-cdk-aws-apigatewayv2-integrations-alpha
awspythonv2.114.1a0
Install
17.7s avg
Import
Disk
401MB
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.8MB
glibc
py 3.103.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.
fix
Use 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.
fix
Migrate 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.
fix
Remove 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.
fix
Run '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.
fix
Use 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.
fix
Use 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.

Agent activity
29 hits · last 30 days
node
26
Resources
aws-cdk-aws-apigatewayv2-integrations-alpha — pip install aws-cdk-aws-apigatewayv2-integrations-alpha · libregistry