DependencyGroup Class
A set of constructs to be used as a dependable.
This class can be used when a set of constructs which are disjoint in the construct tree needs to be combined to be used as a single dependable.
Example
ts
import { DependencyGroup } from 'constructs';
const dependencyGroup = new DependencyGroup();
python
from constructs import DependencyGroup
dependency_group = DependencyGroup()
java
import software.constructs.DependencyGroup;
DependencyGroup dependencyGroup = new DependencyGroup();
csharp
// Install: dotnet add package Constructs
using Constructs;
var dependencyGroup = new DependencyGroup();
go
// Install: go get github.com/aws/constructs-go/constructs/v10
import "github.com/aws/constructs-go/constructs/v10"
dependencyGroup := constructs.NewDependencyGroup()
Initializer
ts
new DependencyGroup(deps: IDependable)
python
DependencyGroup(deps: IDependable)
java
new DependencyGroup(IDependable deps)
csharp
new DependencyGroup(IDependable deps)
go
NewDependencyGroup(Deps IDependable)
Methods
add(...scopes: IDependable[]): voiddef add(self, scopes: IDependable) -> Nonepublic void add(IDependable scopes)public void Add(IDependable scopes)func Add(Scopes IDependable)#Add a construct to the dependency roots.