Documentation ¶ Index ¶ type Detail type Message func (m Message) EC2InstanceIDs() []string func (Message) Kind() messages.Kind type Parser func (p Parser) DetailType() string func (p Parser) Parse(raw string) (messages.Message, error) func (p Parser) Source() string func (p Parser) Version() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Detail ¶ type Detail struct { InstanceID string `json:"instance-id"` State string `json:"state"` } type Message ¶ type Message struct { messages.Metadata Detail Detail `json:"detail"` } Message contains the properties defined in AWS EventBridge schema aws.ec2@EC2InstanceStateChangeNotification v1. func (Message) EC2InstanceIDs ¶ func (m Message) EC2InstanceIDs() []string func (Message) Kind ¶ func (Message) Kind() messages.Kind type Parser ¶ type Parser struct{} func (Parser) DetailType ¶ func (p Parser) DetailType() string func (Parser) Parse ¶ func (p Parser) Parse(raw string) (messages.Message, error) func (Parser) Source ¶ func (p Parser) Source() string func (Parser) Version ¶ func (p Parser) Version() string Source Files ¶ View all Source files model.go parser.go Click to show internal directories. Click to hide internal directories.