eventbridge

package
v0.0.0-...-22438aa Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Version    string                 `json:"version"`
	Id         string                 `json:"id"`
	DetailType string                 `json:"detail-type"`
	Source     string                 `json:"source"`
	Account    string                 `json:"account"`
	Time       time.Time              `json:"time"`
	Region     string                 `json:"region"`
	Resources  []string               `json:"resources"`
	Detail     map[string]interface{} `json:"detail"`
}

Event is the event structure for eventbridge events see https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html

type EventBus

type EventBus struct {
	Name       string
	DetailType string
	Source     string
	Data       any
}

EventBus is the event bus structure

func (*EventBus) Fire

func (e *EventBus) Fire(sess *session.Session) error

Fire an event to the eventbridge

Jump to

Keyboard shortcuts

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