interface ValidationRuleSource
| Language | Type name |
|---|---|
.NET | Amazon.CDK.ValidationRuleSource |
Go | github.com/aws/aws-cdk-go/awscdk/v2#ValidationRuleSource |
Java | software.amazon.awscdk.ValidationRuleSource |
Python | aws_cdk.ValidationRuleSource |
TypeScript (source) | aws-cdk-lib » ValidationRuleSource |
A custom rule source for the validation engine.
Example
// 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
| Name | Type | Description |
|---|---|---|
| content | string | The rule content (e.g., Rego policy source code). |
| name | string | The name of the rule source. |
content
Type:
string
The rule content (e.g., Rego policy source code).
name
Type:
string
The name of the rule source.

.NET
Go
Java
Python
TypeScript (