Skip to content
v2.275.0

IValidation Interface ​

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

Methods ​

validate(): string[]def validate(self, ) -> typing.List[str]public List<String> validate()public string[] Validate()func Validate() *[]*string#
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.

returns

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