Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(aws_ec2): python module missing new SubnetType enum values #17531

Closed
Aloisius opened this issue Nov 16, 2021 · 4 comments
Closed

(aws_ec2): python module missing new SubnetType enum values #17531

Aloisius opened this issue Nov 16, 2021 · 4 comments
Assignees
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. needs-triage This issue or PR still needs to be triaged. p1

Comments

@Aloisius
Copy link

Aloisius commented Nov 16, 2021

What is the problem?

SubnetType.ISOLATED and SubnetType.PRIVATE are being deprecated in favor of SubnetType.PRIVATE_ISOLATED and SubnetType.PRIVATE_WITH_NAT, however neither PRIVATE_ISOLATED nor PRIVATE_WITH_NAT are exposed in Python.

Reproduction Steps

import aws_cdk.aws_ec2 as ec2

# error
ec2.SubnetType.PRIVATE_ISOLATED

What did you expect to happen?

It to succeed.

What actually happened?

Exception thrown.

CDK CLI Version

1.32.0

Framework Version

No response

Node.js Version

16.3.0

OS

MacOS Monterey

Language

Python

Language Version

3.9.7

Other information

No response

@Aloisius Aloisius added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 16, 2021
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Nov 16, 2021
@peterwoodworth peterwoodworth added p1 jsii This issue originates in jsii, or this feature must be implemented in jsii. labels Nov 16, 2021
@peterwoodworth
Copy link
Contributor

I can confirm this. Not sure why this would be happening, they work fine on TypeScript

export enum SubnetType {

@njlynch @RomainMuller any ideas here?

@Aloisius
Copy link
Author

Ahh. This is probably a duplicate of #16443.

It appears #14059 is also related to the same issue.

aws/jsii#2782 appears to be a jsii bug report about it.

@peterwoodworth
Copy link
Contributor

you're right - this is a duplicate. Closing in favor of #16443

@github-actions
Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. needs-triage This issue or PR still needs to be triaged. p1
Projects
None yet
Development

No branches or pull requests

3 participants