/
EventBusProps.go
28 lines (25 loc) · 1023 Bytes
/
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
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)),
// })
//
type EventBusProps struct {
// The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.
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.
EventSourceName *string `field:"optional" json:"eventSourceName" yaml:"eventSourceName"`
}