/
awsevents_IEventBus.go
107 lines (92 loc) · 2.31 KB
/
awsevents_IEventBus.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package awsevents
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsevents/internal"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Interface which all EventBus based classes MUST implement.
type IEventBus interface {
awscdk.IResource
// Create an EventBridge archive to send events to.
//
// When you create an archive, incoming events might not immediately start being sent to the archive.
// Allow a short period of time for changes to take effect.
Archive(id *string, props *BaseArchiveProps) Archive
// Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.
GrantPutEventsTo(grantee awsiam.IGrantable) awsiam.Grant
// The ARN of this event bus resource.
EventBusArn() *string
// The physical ID of this event bus resource.
EventBusName() *string
// The JSON policy of this event bus resource.
EventBusPolicy() *string
// The partner event source to associate with this event bus resource.
EventSourceName() *string
}
// The jsii proxy for IEventBus
type jsiiProxy_IEventBus struct {
internal.Type__awscdkIResource
}
func (i *jsiiProxy_IEventBus) Archive(id *string, props *BaseArchiveProps) Archive {
if err := i.validateArchiveParameters(id, props); err != nil {
panic(err)
}
var returns Archive
_jsii_.Invoke(
i,
"archive",
[]interface{}{id, props},
&returns,
)
return returns
}
func (i *jsiiProxy_IEventBus) GrantPutEventsTo(grantee awsiam.IGrantable) awsiam.Grant {
if err := i.validateGrantPutEventsToParameters(grantee); err != nil {
panic(err)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grantPutEventsTo",
[]interface{}{grantee},
&returns,
)
return returns
}
func (j *jsiiProxy_IEventBus) EventBusArn() *string {
var returns *string
_jsii_.Get(
j,
"eventBusArn",
&returns,
)
return returns
}
func (j *jsiiProxy_IEventBus) EventBusName() *string {
var returns *string
_jsii_.Get(
j,
"eventBusName",
&returns,
)
return returns
}
func (j *jsiiProxy_IEventBus) EventBusPolicy() *string {
var returns *string
_jsii_.Get(
j,
"eventBusPolicy",
&returns,
)
return returns
}
func (j *jsiiProxy_IEventBus) EventSourceName() *string {
var returns *string
_jsii_.Get(
j,
"eventSourceName",
&returns,
)
return returns
}