statechange

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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