-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(spec2cdk): Resource class implements ICfnResource (#27781)
This PR implements the following: - If all `primaryIdentifiers` are `attributes`, there is nothing to do; `ICfnResource` is already implemented by `Resource` - if all `primaryIdentifiers` are `properties`, then - if there is 1 `primaryIdentifier` initialize it as `this.attrId = this.ref;` - if there are multiple `primaryIdentifiers` initialize each as `this.attrId = cdk.Fn.select(0, cdk.Fn.split('|', this.ref));` and so on ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --------- Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
- Loading branch information
Showing
4 changed files
with
519 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.