pulumi/tests/integration/policy/advisory_policy_pack/index.ts

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");
},
}],
});