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

    Type Alias StackValidation

    StackValidation: (
        args: StackValidationArgs,
        reportViolation: ReportViolation,
    ) => Promise<void> | void

    StackValidation is the callback signature for a StackValidationPolicy. A stack validation is passed args with more information about the stack 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 stack. reportViolation must be passed a message about the violation, and an optional urn to a resource in the stack that's in violation of the policy. Not specifying a urn indicates the overall stack is in violation of the policy.

    Type Declaration