# ValidationRuleSource

A custom rule source for the validation engine.

- Source: [`core/lib/validation/cloudformation-validate-plugin.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/validation/cloudformation-validate-plugin.ts#L26)
- Type last changed: v2.262.0 · 22 Jul 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 validationRuleSource: cdk.ValidationRuleSource = {
  content: 'content',
  name: 'name',
};
```

## Properties

- `content`: string (required) — The rule content (e.g., Rego policy source code).

- `name`: string (required) — The name of the rule source.
