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

Method addValidation

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

412 * @param validation The validation object
413 */
414 public addValidation(validation: IValidation) {
415 if (!this._validations) {
416 this._validations = [];
417 }
418 this._validations.push(validation);
419 }
420
421 /**
422 * 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