Repository navigation
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 |
0 replies
|
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 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
MyCustomConstructclass withMyCustomConstructPropsinterface which allows an injector to override the properties?Currently it doesn't seem like the
propertyInjectabledecorator is available for use outside the main cdk code repo.All reactions