-
Notifications
You must be signed in to change notification settings - Fork 8
/
DependencyGroup.go
73 lines (59 loc) · 1.33 KB
/
DependencyGroup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package constructs
import (
_init_ "github.com/aws/constructs-go/constructs/v10/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// 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.
// Experimental.
type DependencyGroup interface {
IDependable
// Add a construct to the dependency roots.
// Experimental.
Add(scopes ...IDependable)
}
// The jsii proxy struct for DependencyGroup
type jsiiProxy_DependencyGroup struct {
jsiiProxy_IDependable
}
// Experimental.
func NewDependencyGroup(deps ...IDependable) DependencyGroup {
_init_.Initialize()
args := []interface{}{}
for _, a := range deps {
args = append(args, a)
}
j := jsiiProxy_DependencyGroup{}
_jsii_.Create(
"constructs.DependencyGroup",
args,
&j,
)
return &j
}
// Experimental.
func NewDependencyGroup_Override(d DependencyGroup, deps ...IDependable) {
_init_.Initialize()
args := []interface{}{}
for _, a := range deps {
args = append(args, a)
}
_jsii_.Create(
"constructs.DependencyGroup",
args,
d,
)
}
func (d *jsiiProxy_DependencyGroup) Add(scopes ...IDependable) {
args := []interface{}{}
for _, a := range scopes {
args = append(args, a)
}
_jsii_.InvokeVoid(
d,
"add",
args,
)
}