/
ITrigger.go
55 lines (46 loc) · 1.14 KB
/
ITrigger.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
package triggers
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2/triggers/internal"
"github.com/aws/constructs-go/constructs/v10"
)
// Interface for triggers.
type ITrigger interface {
constructs.IConstruct
// Adds trigger dependencies.
//
// Execute this trigger only after these construct
// scopes have been provisioned.
ExecuteAfter(scopes ...constructs.Construct)
// Adds this trigger as a dependency on other constructs.
//
// This means that this
// trigger will get executed *before* the given construct(s).
ExecuteBefore(scopes ...constructs.Construct)
}
// The jsii proxy for ITrigger
type jsiiProxy_ITrigger struct {
internal.Type__constructsIConstruct
}
func (i *jsiiProxy_ITrigger) ExecuteAfter(scopes ...constructs.Construct) {
args := []interface{}{}
for _, a := range scopes {
args = append(args, a)
}
_jsii_.InvokeVoid(
i,
"executeAfter",
args,
)
}
func (i *jsiiProxy_ITrigger) ExecuteBefore(scopes ...constructs.Construct) {
args := []interface{}{}
for _, a := range scopes {
args = append(args, a)
}
_jsii_.InvokeVoid(
i,
"executeBefore",
args,
)
}