-
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
Aspects: construct.apply
should be construct.node.apply
#1732
Comments
I'll fix this, that change came in while I was working this and I should have called that out in the review. The change would look like: const myConstruct = new MyConstruct(this, 'MyName', { ... });
myConstruct.node.apply(new cdk.Tag('key', 'value')); |
I know. Yes, looks good to me. |
moofish32
added a commit
to moofish32/aws-cdk
that referenced
this issue
Feb 12, 2019
This change moves the aspect `apply()` function from the `Construct` to the `ConstructNode`. All other functionality remains the same. BREAKING CHANGE: Tag aspects use this feature and any consumers of this implementation must change from `myConstruct.apply( ... )` to `myConstruct.node.apply( ... )`. fixes aws#1732
4 tasks
eladb
pushed a commit
that referenced
this issue
Feb 12, 2019
This change moves the aspect `apply()` function from the `Construct` to the `ConstructNode`. All other functionality remains the same. BREAKING CHANGE: Tag aspects use this feature and any consumers of this implementation must change from `myConstruct.apply( ... )` to `myConstruct.node.apply( ... )`. fixes #1732
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
apply
method onConstruct
should be undernode
and not directly on theConstruct
class.The text was updated successfully, but these errors were encountered: