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

Method addDependency

src/construct.ts:380–387  ·  view source on GitHub ↗

* Add an ordering dependency on a Dependable (a construct or set of constructs) * * It is up to the target document language to decide what an ordering * relationship means and how it should be rendered; for example, in the AWS * CDK for CloudFormation it means a dependency from every re

(...deps: IDependable[])

Source from the content-addressed store, hash-verified

378 * be involved in the dependency relationship.
379 */
380 public addDependency(...deps: IDependable[]) {
381 if (!this._dependencies) {
382 this._dependencies = new Set();
383 }
384 for (const d of deps) {
385 this._dependencies.add(d);
386 }
387 }
388
389 /**
390 * Remove an ordering dependency on a Dependenable (a construct or set of constructs)

Callers 1

construct.test.tsFile · 0.80

Calls 1

addMethod · 0.80

Tested by

no test coverage detected