IValidation

class constructs.IValidation(*args, **kwds)

Bases: typing_extensions.Protocol

Implement this interface in order for the construct to be able to validate itself.

Methods

validate()

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

Return type

List[str]

Returns

An array of validation error messages, or an empty array if there the construct is valid.