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

Method addDependency

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

391 * be involved in the dependency relationship.
392 */
393 public addDependency(...deps: IDependable[]) {
394 if (!this._dependencies) {
395 this._dependencies = new Set();
396 }
397 for (const d of deps) {
398 this._dependencies.add(d);
399 }
400 }
401
402 /**
403 * 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