ValidationRuleSource

class aws_cdk.ValidationRuleSource(*, content, name)

Bases: object

A custom rule source for the validation engine.

Parameters:
  • content (str) – The rule content (e.g., Rego policy source code).

  • name (str) – The name of the rule source.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

validation_rule_source = cdk.ValidationRuleSource(
    content="content",
    name="name"
)

Attributes

content

The rule content (e.g., Rego policy source code).

name

The name of the rule source.