eventbridge

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 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(bus string, opts ...swarm.Option) (swarm.Broker, error)

New create broker for AWS EventBridge service

Types

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
}

ServerlessApp ...

func NewServerlessApp

func NewServerlessApp() *ServerlessApp

NewServerlessApp ...

func (*ServerlessApp) NewStack

func (app *ServerlessApp) NewStack(name string) *ServerlessStack

type ServerlessStack

type ServerlessStack struct {
	awscdk.Stack
	// 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

NewSink ...

type SinkProps

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

SinkProps ... 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