mirror of https://github.com/pulumi/pulumi.git
13 lines
377 B
TypeScript
13 lines
377 B
TypeScript
import { PolicyPack, validateResourceOfType } from "@pulumi/policy";
|
|
|
|
new PolicyPack("typescript", {
|
|
policies: [{
|
|
name: "advisory-policy-pack",
|
|
description: "Failing advisory policy pack for testing",
|
|
enforcementLevel: "advisory",
|
|
validateStack: (stack: any, reportViolation: any) => {
|
|
reportViolation("foobar");
|
|
},
|
|
}],
|
|
});
|