ResourceValidation is the callback signature for a ResourceValidationPolicy. A resource validation
is passed args with more information about the resource and a reportViolation callback that can be
used to report a policy violation. reportViolation can be called multiple times to report multiple
violations against the same resource. reportViolation must be passed a message about the violation.
The reportViolation signature accepts an optional urn argument, which is ignored when validating
resources (the urn of the resource being validated is always used).
ResourceValidation is the callback signature for a
ResourceValidationPolicy
. A resource validation is passedargs
with more information about the resource and areportViolation
callback that can be used to report a policy violation.reportViolation
can be called multiple times to report multiple violations against the same resource.reportViolation
must be passed a message about the violation. ThereportViolation
signature accepts an optionalurn
argument, which is ignored when validating resources (theurn
of the resource being validated is always used).