eventbridge

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(app awscdk.App, key string) string

func FromContextVsn

func FromContextVsn(app awscdk.App) string

func New

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

Types

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 ServerlessApp

type ServerlessApp struct {
	awscdk.App
}

func NewServerlessApp

func NewServerlessApp() *ServerlessApp

func (*ServerlessApp) NewStack

func (app *ServerlessApp) NewStack(name string, props ...*awscdk.StackProps) *ServerlessStack

type ServerlessStack

type ServerlessStack struct {
	awscdk.Stack

	Bus awsevents.IEventBus
	// contains filtered or unexported fields
}

func NewServerlessStack

func NewServerlessStack(app awscdk.App, id *string, props *ServerlessStackProps) *ServerlessStack

func (*ServerlessStack) AddEventBus

func (stack *ServerlessStack) AddEventBus(eventBusName string) awsevents.IEventBus

func (*ServerlessStack) NewEventBus

func (stack *ServerlessStack) NewEventBus(eventBusName ...string) awsevents.IEventBus

func (*ServerlessStack) NewSink

func (stack *ServerlessStack) NewSink(props *SinkProps) *Sink

type ServerlessStackProps

type ServerlessStackProps struct {
	*awscdk.StackProps
	Version string
	System  string
}

type Sink

type Sink struct {
	constructs.Construct
	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