mirror of https://github.com/pulumi/pulumi.git
13 lines
385 B
TypeScript
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");
|
|
},
|
|
}],
|
|
});
|