# PolicyValidationPluginReportBeta1

The report emitted by the plugin after evaluation.

- Source: [`core/lib/validation/report.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/validation/report.ts#L227)
- Type last changed: v2.251.0 · 24 Apr 2026

## 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 } — Arbitrary information about the report.

  **Default:** no metadata

- `pluginVersion`: string — The version of the plugin that created the report.

  **Default:** no version

- `success`: boolean (required) — Whether or not the report was successful.

- `violations`: [PolicyViolationBeta1](/cdk/api/v2/docs/aws-cdk-lib.PolicyViolationBeta1.html)[] (required) — List of violations in the report.
