-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsevents_EventBusProps.go
31 lines (28 loc) · 1.05 KB
/
awsevents_EventBusProps.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
package awsevents
// Properties to define an event bus.
//
// Example:
// bus := events.NewEventBus(this, jsii.String("bus"), &eventBusProps{
// eventBusName: jsii.String("MyCustomEventBus"),
// })
//
// bus.archive(jsii.String("MyArchive"), &baseArchiveProps{
// archiveName: jsii.String("MyCustomEventBusArchive"),
// description: jsii.String("MyCustomerEventBus Archive"),
// eventPattern: &eventPattern{
// account: []*string{
// awscdk.*stack.of(this).account,
// },
// },
// retention: awscdk.Duration.days(jsii.Number(365)),
// })
//
// Experimental.
type EventBusProps struct {
// The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.
// Experimental.
EventBusName *string `field:"optional" json:"eventBusName" yaml:"eventBusName"`
// The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.
// Experimental.
EventSourceName *string `field:"optional" json:"eventSourceName" yaml:"eventSourceName"`
}