Skip to content
v2.273.0

PolicyValidationPluginReportBeta1 Struct ​

The report emitted by the plugin after evaluation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const policyValidationPluginReportBeta1: cdk.PolicyValidationPluginReportBeta1 = {
  success: false,
  violations: [{
    description: 'description',
    ruleName: 'ruleName',
    violatingResources: [{
      locations: ['locations'],
      resourceLogicalId: 'resourceLogicalId',
      templatePath: 'templatePath',
    }],

    // the properties below are optional
    fix: 'fix',
    ruleMetadata: {
      ruleMetadataKey: 'ruleMetadata',
    },
    severity: 'severity',
  }],

  // the properties below are optional
  metadata: {
    metadataKey: 'metadata',
  },
  pluginVersion: 'pluginVersion',
};

Properties ​

metadata{ [key: string]: string }metadatatyping.Mapping[str, str]metadataMap<String, String>MetadataIDictionary<string, string>Metadata*map[string]*string= no metadata#
Arbitrary information about the report.
pluginVersionstringplugin_versionstrpluginVersionStringPluginVersionstringPluginVersion*string= no version#
The version of the plugin that created the report.
successbooleansuccessboolsuccessBooleanSuccessboolSuccess*boolrequired#
Whether or not the report was successful.
violationsPolicyViolationBeta1[]violationstyping.List[PolicyViolationBeta1]violationsList<PolicyViolationBeta1>ViolationsPolicyViolationBeta1[]Violations*[]PolicyViolationBeta1required#
List of violations in the report.