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

Method addValidation

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

442 * @param validation The validation object
443 */
444 public addValidation(validation: IValidation) {
445 if (!this._validations) {
446 this._validations = [];
447 }
448 this._validations.push(validation);
449 }
450
451 /**
452 * 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