feat: allow resource to hook the parent item for modification #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This is a set of modifications to allow better alignment in the azure-nuke variant. Due to how azure APIs work, you have to globally query, but we still want to maintain the regional aspect. Also with Azure there is a lot of commonality in resources, so these changes allow for changing of the regional information at scan time, and allows for properties to be exposed from composition.
Features
BeforeEnqueue
hook that is optional on a resource, this allows the resource to modify the item before being put on the queue.Properties from Struct Composition
- allows inlining properities for a struct composition.