| 601 | * Implement this interface in order for the construct to be able to validate itself. |
| 602 | */ |
| 603 | export interface IValidation { |
| 604 | /** |
| 605 | * Validate the current construct. |
| 606 | * |
| 607 | * This method can be implemented by derived constructs in order to perform |
| 608 | * validation logic. It is called on all constructs before synthesis. |
| 609 | * |
| 610 | * @returns An array of validation error messages, or an empty array if there the construct is valid. |
| 611 | */ |
| 612 | validate(): string[]; |
| 613 | } |
| 614 | |
| 615 | /** |
| 616 | * In what order to return constructs |