aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(aws_apigatewayv2 - python): Cannot create HttpApi, nor Websockets API

Open ivanmarquescepsa opened this issue 5 years ago • 2 comments

What is the problem?

The current build of CDK V2 (rc24) doesn't include aws_apigatewayv2_alpha module included in documentation

This module includes the constructs for HttpApi and WebSocketApi.

Reproduction Steps

from aws_cdk import aws_apigatewayv2_alpha as apigw_alpha

What did you expect to happen?

The module aws_cdk.aws_apigatewayv2_alpha is imported.

What actually happened?

ImportError: cannot import name 'aws_apigatewayv2_alpha' from 'aws_cdk'

CDK CLI Version

[email protected]

Framework Version

aws-cdk-lib==2.0.0-rc.24 constructs>=10.0.0,<11.0.0

Node.js Version

14.18.1

OS

MacOS 11.6

Language

Python

Language Version

3.9.5

Other information

Is there any way to create HttpApi or WebsocketApi with this version?

ivanmarquescepsa avatar Oct 14 '21 09:10 ivanmarquescepsa

See here for more information on how to use alpha modules - https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html

nija-at avatar Nov 25 '21 14:11 nija-at

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Nov 25 '21 14:11 github-actions[bot]