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

Method addDependency

src/construct.ts:371–378  ·  view source on GitHub ↗

* Add an ordering dependency on another construct. * * An `IDependable`

(...deps: IDependable[])

Source from the content-addressed store, hash-verified

369 * An `IDependable`
370 */
371 public addDependency(...deps: IDependable[]) {
372 if (!this._dependencies) {
373 this._dependencies = new Set();
374 }
375 for (const d of deps) {
376 this._dependencies.add(d);
377 }
378 }
379
380 /**
381 * Return all dependencies registered on this node (non-recursive).

Callers 1

construct.test.tsFile · 0.80

Calls 1

addMethod · 0.80

Tested by

no test coverage detected