-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
lambda: Updating The Lambda Architecture Properties with toString() methods #26117
Comments
It's unclear to me about the advantages. Can you share some code snippets to elaborate a little bit more on that? |
Hey Pahud! We're building a wrapper around constructs (in this instance Lambda) and want to throw an error to tell what particular property is incorrect. Say I have this allowedConfig (the acceptable values for certain fields) But I create this Lamdba:
I only see an [object bject] response in the error string instead of the actual value of allowed architectures. Here's the exact error
The addition of a toString() method on the architecture parameter would alleviate this issue, and I was looking at potentially adding this to other fields that may be useful. |
I've updated the title to just add a toString for the architecture, so this would require less work and solve my immediate issue |
Add toString to Lambda Architecture property When throwing errors during synthesis, you can't see the architecture chosen for a lambda. Adding this toString method solves that Closes #26117 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Add toString to Lambda Architecture property When throwing errors during synthesis, you can't see the architecture chosen for a lambda. Adding this toString method solves that Closes #26117 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Add toString to Lambda Architecture property When throwing errors during synthesis, you can't see the architecture chosen for a lambda. Adding this toString method solves that Closes aws#26117 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
Updating The Lambda Properties with toString() methods
Use Case
We want to use effective error throwing using config properties, but they require a lot of code that could be decluttered if the properties have a toString method consistently (like there is on Runtime)
Proposed Solution
Add toString() methods to the Lambda Props
Other Information
No response
Acknowledgements
CDK version used
2.69.0
Environment details (OS name and version, etc.)
macOS Ventura - Version 13.3.1 (22E261)
The text was updated successfully, but these errors were encountered: