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

Method constructor

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

Source from the content-addressed store, hash-verified

399
400 class YourConstruct extends Construct {
401 constructor(scope: Construct, id: string) {
402 super(scope, id);
403
404 this.node.addValidation({ validate: () => ['your-error1'] });
405 }
406 }
407
408 class TheirConstruct extends Construct {

Callers

nothing calls this directly

Calls 1

addValidationMethod · 0.80

Tested by

no test coverage detected