aws-ec2: ec2.AmazonLinux2Kernel is not an enum in Python #26305
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
In Python, AmazonLinux2Kernel is not an enumeration (not an enum.Enum) in CDK -
vs
We can see that the class of this is not an enumeration, like other enumerations in the aws-ec2 code:
This inconsistency means it is difficult to compare certain objects in python.
Expected Behavior
I expected an enumeration to be an enumeration - the comparison above should have passed.
Current Behavior
The enumeration was not an enumeration, and the comparison above failed.
Reproduction Steps
The code above should suffice.
Possible Solution
Make these enumerations, enumerations.
Additional Information/Context
No response
CDK CLI Version
2.84.0
Framework Version
No response
Node.js Version
18.16.0
OS
MacOS
Language
Python
Language Version
3.9.6
Other information
No response
The text was updated successfully, but these errors were encountered: