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

Method constructor

src/construct.ts:581–588  ·  view source on GitHub ↗

* Creates a new construct node. * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings. If * the ID includes a path separator (`/`) or a newline, then it will be * replaced by double dash `--`.

(scope: Construct, id: string)

Source from the content-addressed store, hash-verified

579 * replaced by double dash `--`.
580 */
581 constructor(scope: Construct, id: string) {
582 this.node = new Node(this, scope, id);
583
584 // implement IDependable privately
585 Dependable.implement(this, {
586 dependencyRoots: [this],
587 });
588 }
589
590 /**
591 * Applies one or more mixins to this construct.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected