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

Method addDependency

src/construct.ts:383–390  ·  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

381 * be involved in the dependency relationship.
382 */
383 public addDependency(...deps: IDependable[]) {
384 if (!this._dependencies) {
385 this._dependencies = new Set();
386 }
387 for (const d of deps) {
388 this._dependencies.add(d);
389 }
390 }
391
392 /**
393 * 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