diff --git a/API.md b/API.md index 1c05813e..dc95fe5c 100644 --- a/API.md +++ b/API.md @@ -481,8 +481,6 @@ deployed. ## interface IValidation -Implement this interface in order for the construct to be able to validate itself. - Implement this interface in order for the construct to be able to validate itself. ### Methods @@ -491,10 +489,6 @@ Implement this interface in order for the construct to be able to validate itsel 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. -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. diff --git a/src/construct.ts b/src/construct.ts index af00312c..2a34ae69 100644 --- a/src/construct.ts +++ b/src/construct.ts @@ -506,21 +506,6 @@ export enum ConstructOrder { POSTORDER } -/** - * Implement this interface in order for the construct to be able to validate itself. - */ -export interface IValidation { - /** - * 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 An array of validation error messages, or an empty array if there the construct is valid. - */ - validate(): string[]; -} - const PATH_SEP_REGEX = new RegExp(`${Node.PATH_SEP}`, 'g'); /**