aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 651 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports._toBeta1Plugin=_toBeta1Plugin;function _toBeta1Plugin(plugin){return{name:plugin.name,version:plugin.version,ruleIds:plugin.ruleIds,validate(context){const report=plugin.validate(context);return{success:report.success,pluginVersion:report.pluginVersion,metadata:report.metadata,violations:report.violations.map(v=>({ruleName:v.ruleName,description:v.description,fix:v.fix,severity:v.severity,ruleMetadata:v.ruleMetadata,violatingResources:v.violatingResources.map(r=>({resourceLogicalId:r.resourceLogicalId??"",templatePath:r.templatePath??"",locations:r.locations}))}))}}}}