@pulumi/policy - v1.21.0
    Preparing search index...

    Type Alias ResourceValidation

    ResourceValidation: (
        args: ResourceValidationArgs,
        reportViolation: ReportViolation,
    ) => Promise<void> | void

    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).

    Type Declaration