import { IConstruct } from "constructs" ; import { Reportable } from "./reporter" ; import { Policy , PolicyContext } from "./policy" ; export class PolicyPack { constructor ( private policies = [ ] ) { } public add ( policy ) { this . policies . push ( policy ) ; } public validate ( node , context , reporter ) { this . policies . forEach ( ( policy ) => { policy . validate ( node , reporter , context ) ; } ) ; } }