Replies: 2 comments 2 replies
-
Hi @msessa , Property Injectors were designed for all CDK L2 non-abstract Constructs. But I think it should work for you
propertyInjectable is defined here: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/prop-injectable.ts#L20 I don't understand why it would not work for |
Beta Was this translation helpful? Give feedback.
-
To use it in my own construct library I would need to import the decorator first. eg:
However that doesn't compile because
I suspect that's because the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @pcheungamz
I've been following the development of property injectors and can see the potential to simplify adoption of CDK in our organization.
I'm just wondering, will this mechanism be available to custom L2/L3 constructs built by the users?
for example will I be able to define a
MyCustomConstruct
class withMyCustomConstructProps
interface which allows an injector to override the properties?Currently it doesn't seem like the
propertyInjectable
decorator is available for use outside the main cdk code repo.Beta Was this translation helpful? Give feedback.
All reactions