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

13 lines
385 B
TypeScript

import { PolicyPack, validateResourceOfType } from "@pulumi/policy";
new PolicyPack("typescript", {
policies: [{
name: "mandatory-policy-pack",
description: "Failing mandatory policy pack for testing",
enforcementLevel: "mandatory",
validateStack: (stack, reportViolation) => {
reportViolation("mandatory-policy-pack");
},
}],
});