Skip to content
v2.273.0

ValidationRuleSource Struct ​

A custom rule source for the validation engine.

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 ​

contentstringcontentstrcontentStringContentstringContent*stringrequired#
The rule content (e.g., Rego policy source code).
namestringnamestrnameStringNamestringName*stringrequired#
The name of the rule source.