Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): new APIs for Aspects and Tags (#9558)
In [CDK 2.0], the `applyAspect` API will be removed and instead will be accessible through a "trait" pattern: Aspects.of(scope).add(aspect) Similarly, we are normalizing the tagging API to use the same pattern: Tags.of(scope).add(x, y) Tags.of(scope).remove(x) The existing APIs are still supported but marked as @deprecated. Related: aws/aws-cdk-rfcs#192, See [Design]. [CDK 2.0]: https://github.com/aws/aws-cdk-rfcs/blob/master/text/0192-remove-constructs-compat.md [Design]: https://github.com/aws/aws-cdk-rfcs/blob/master/text/0192-remove-constructs-compat.md#02-aspects ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information