Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContextVsn ¶
func FromContextVsn(app awscdk.App) string
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
}
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 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
Click to show internal directories.
Click to hide internal directories.