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

Method constructor

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

Source from the content-addressed store, hash-verified

362
363 class TheirConstruct extends Construct {
364 constructor(scope: Construct, id: string) {
365 super(scope, id);
366
367 new YourConstruct(this, 'YourConstruct');
368
369 this.node.addValidation({ validate: () => ['their-error'] });
370 }
371 }
372
373 class TestStack extends Root {

Callers

nothing calls this directly

Calls 1

addValidationMethod · 0.80

Tested by

no test coverage detected