MCPcopy Create free account
hub / github.com/aws/constructs / addValidation

Method addValidation

src/construct.ts:441–446  ·  view source on GitHub ↗

* Adds a validation to this construct. * * When `node.validate()` is called, the `validate()` method will be called on * all validations and all errors will be returned. * * @param validation The validation object

(validation: IValidation)

Source from the content-addressed store, hash-verified

439 * @param validation The validation object
440 */
441 public addValidation(validation: IValidation) {
442 if (!this._validations) {
443 this._validations = [];
444 }
445 this._validations.push(validation);
446 }
447
448 /**
449 * Validates this construct.

Callers 5

constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
construct.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 4

constructorMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64