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

Method constructor

test/construct.test.ts:348–352  ·  view source on GitHub ↗
(scope: Construct, id: string)

Source from the content-addressed store, hash-verified

346
347 class MyConstruct extends Construct {
348 constructor(scope: Construct, id: string) {
349 super(scope, id);
350
351 this.node.addValidation({ validate: () => ['my-error1', 'my-error2'] });
352 }
353 }
354
355 class YourConstruct extends Construct {

Callers

nothing calls this directly

Calls 1

addValidationMethod · 0.80

Tested by

no test coverage detected