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

Method constructor

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

Source from the content-addressed store, hash-verified

391
392 class MyConstruct extends Construct {
393 constructor(scope: Construct, id: string) {
394 super(scope, id);
395
396 this.node.addValidation({ validate: () => ['my-error1', 'my-error2'] });
397 }
398 }
399
400 class YourConstruct extends Construct {

Callers

nothing calls this directly

Calls 1

addValidationMethod · 0.80

Tested by

no test coverage detected