-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fix capitalization of lambda.Runtime names #980
Fix capitalization of lambda.Runtime names #980
Comments
Seems useful to put a single name parser into By the way, I'm not even sure I like |
Well |
Blocked on the decision of #2222 |
Similar to the enum naming convention, public static readonly properties must be ALL_CAPS. This is in accordance with the new construct library guidelines and with normal enums. Fixes #3018 Fixes #980 BREAKING CHANGE: all public static readonly members (enum-like) have been renamed to use "ALL_CAPS" capitalization
It is expected that names are going to be mangled to idiomatic names when the CDK is generated for different target languages. However, not all of the names are currently accurate in their source naming.
The one I just ran into, is
@aws-cdk/aws-lambda.Runtime.NodeJS*
. Because it's written asNodeJS*
instead ofNodeJs*
, it's conceptually 3 words,Node
,J
,S
, which gets mangled tonode_j_s*
when targeting Python (which uses snake casing).We should probably fix these existing names so that they are consistent.
This is likely not going to be the last time something like this happens, so we probably want to come up with a strategy for handling these cases that doesn't break end user code, but allows us to fix these names.
The text was updated successfully, but these errors were encountered: