Documentation ¶
Index ¶
- Constants
- func Like(seq ...Expr) *awsevents.EventPattern
- func New(bus string, opts ...Option) (*kernel.Kernel, error)
- func NewDequeuer(bus string, opts ...Option) (*kernel.Dequeuer, error)
- func NewEnqueuer(bus string, opts ...Option) (*kernel.Enqueuer, error)
- type Broker
- type BrokerProps
- type Client
- type EventBridge
- type Expr
- type Option
- type Sink
- type SinkProps
Constants ¶
View Source
const EnvConfigSourceEventBridge = "CONFIG_SWARM_SOURCE_EVENTBRIDGE"
Environment variable to config event source
View Source
const Version = "broker/eventbridge/v0.21.0"
Variables ¶
This section is empty.
Functions ¶
func Like ¶ added in v0.21.0
func Like(seq ...Expr) *awsevents.EventPattern
Like combinator defines DSL to configure awsevents.EventPattern https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-pattern.html
func NewDequeuer ¶ added in v0.20.1
Create reader from AWS EventBridge
Types ¶
type Broker ¶
type Broker struct { constructs.Construct Bus awsevents.IEventBus // contains filtered or unexported fields }
func NewBroker ¶
func NewBroker(scope constructs.Construct, id *string, props *BrokerProps) *Broker
func (*Broker) AddEventBus ¶
func (*Broker) NewEventBus ¶
func (broker *Broker) NewEventBus(props *awsevents.EventBusProps) awsevents.IEventBus
type BrokerProps ¶
type BrokerProps struct {
System string
}
type EventBridge ¶
type EventBridge interface {
PutEvents(context.Context, *eventbridge.PutEventsInput, ...func(*eventbridge.Options)) (*eventbridge.PutEventsOutput, error)
}
EventBridge declares the subset of interface from AWS SDK used by the lib.
type Expr ¶ added in v0.21.0
type Expr func(*awsevents.EventPattern)
Event Pattern expression
type Option ¶ added in v0.20.0
type Option func(*Client)
func WithConfig ¶ added in v0.20.0
func WithService ¶ added in v0.20.0
func WithService(service EventBridge) Option
type SinkProps ¶
type SinkProps struct { System awsevents.IEventBus EventPattern *awsevents.EventPattern Function scud.FunctionProps }
See https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html
Click to show internal directories.
Click to hide internal directories.