feat(core): Customizable class for L1 constructs customization #30800
Labels
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
We have seen many cases that users are trying to customize some properties for resources generated by CDK behind L2 constructs and it's not easy to achieve that. I was thinking we probably should propose something like the Tags class that builds a Aspect under the hood and iterates the constructs tree for users without having to write the Aspect by themselves.
Use Case
Customize all CustomResource ServiceTimeout behind a specific construct. This PR would allow CustomResource L2 to support ServiceTimeout but for those custom resources created by L2s behind the scene, users would not be able to customize their ServiceTimeouts.
Customize the LoggingConfig of all lambda.Function, including those created by CDK for custom resource providers as described in feat(custom-resource): universal loggingConfig for all custom resource providers #30777.
Proposed Solution
We probably could have a
Customizable
class just like the Tags class and the API experience would be like:Sample
Other Information
No response
Acknowledgements
CDK version used
2.148.0
Environment details (OS name and version, etc.)
all
The text was updated successfully, but these errors were encountered: