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

Method constructor

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

Source from the content-addressed store, hash-verified

354
355 class YourConstruct extends Construct {
356 constructor(scope: Construct, id: string) {
357 super(scope, id);
358
359 this.node.addValidation({ validate: () => ['your-error1'] });
360 }
361 }
362
363 class TheirConstruct extends Construct {

Callers

nothing calls this directly

Calls 1

addValidationMethod · 0.80

Tested by

no test coverage detected