eventbridge

package
v0.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(queue string, opts ...swarm.Option) (swarm.Broker, error)

Types

type Broker added in v0.15.0

type Broker struct {
	constructs.Construct
	Bus awsevents.IEventBus
	// contains filtered or unexported fields
}

func NewBroker added in v0.15.0

func NewBroker(scope constructs.Construct, id *string, props *BrokerProps) *Broker

func (*Broker) AddEventBus added in v0.15.0

func (broker *Broker) AddEventBus(eventBusName string) awsevents.IEventBus

func (*Broker) NewEventBus added in v0.15.0

func (broker *Broker) NewEventBus(props *awsevents.EventBusProps) awsevents.IEventBus

func (*Broker) NewSink added in v0.15.0

func (broker *Broker) NewSink(props *SinkProps) *Sink

type BrokerProps added in v0.15.0

type BrokerProps struct {
	System string
}

type Client added in v0.13.3

type Client struct {
	// contains filtered or unexported fields
}

func NewEventBridge added in v0.13.3

func NewEventBridge(bus string, opts ...swarm.Option) (*Client, error)

func (*Client) Enq added in v0.13.3

func (cli *Client) Enq(bag swarm.Bag) error

Enq enqueues message to broker

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 Sink

type Sink struct {
	constructs.Construct
	Rule    awsevents.Rule
	Handler awslambda.IFunction
}

func NewSink

func NewSink(scope constructs.Construct, id *string, props *SinkProps) *Sink

type SinkProps

type SinkProps struct {
	System     awsevents.IEventBus
	Source     []string
	Categories []string
	Pattern    map[string]interface{}
	Lambda     *scud.FunctionGoProps
}

See https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL