Add parent
property to ResourceValidationArgs
#364
Labels
kind/enhancement
Improvements or new features
parent
property to ResourceValidationArgs
#364
Hello!
Issue details
I would be useful to be able to validate if a resource is correctly parented. We can do this for StackPolicies (the field exists on PolicyResource), but we do not have this at the individual level within
ResourceValidationArgs
orPolicyResourceOptions
.Since both PolicyResource and ResourceValidationOptions have a reference to
PolicyResourceOptions
it may make sense to have it there instead.Use-case:
We may want to check if a particular resource type is contained within a component resource, e.g. "AWS secrets manager secrets must be created with 'MySpecialSecretManager' component resource as the parent"
Example:
Affected area/feature
ResourceVal
The text was updated successfully, but these errors were encountered: