spotinterruption

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 3 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"`
	InstanceAction string `json:"instance-action"`
}

type Message

type Message struct {
	messages.Metadata

	Detail Detail `json:"detail"`
}

Message contains the properties defined in AWS EventBridge schema aws.ec2@EC2SpotInstanceInterruptionWarning v0.

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