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

Method addValidation

src/construct.ts:454–459  ·  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

452 * @param validation The validation object
453 */
454 public addValidation(validation: IValidation) {
455 if (!this._validations) {
456 this._validations = [];
457 }
458 this._validations.push(validation);
459 }
460
461 /**
462 * 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