A helper function for the pattern where a single function wants to be able to remediate and
validate depending on how it is called. It returns both the validateResource and remediateResource
functions which can be passed directly to the like-named properties on the policy class.
This is typically used in combination with a spread operator. For example:
A helper function for the pattern where a single function wants to be able to remediate and validate depending on how it is called. It returns both the validateResource and remediateResource functions which can be passed directly to the like-named properties on the policy class.
This is typically used in combination with a spread operator. For example: