asgevent

package
v1.18.5-1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(event events.CloudWatchEvent, validEvents, requiredEnvironment []string, doit RealHandler) error

func ValidateEvent

func ValidateEvent(actualEvent string, validEvents []string) error

Types

type AutoScalingDetail

type AutoScalingDetail struct {
	StatusCode           string
	AutoScalingGroupName string
	ActivityID           string `json:"ActivityId"`
	RequestID            string `json:"RequestId"`
	StartTime            string
	EndTime              string
	EC2InstanceID        string `json:"EC2InstanceId"`
	Cause                string
	Details              DetailDetails
}

type DetailDetails

type DetailDetails struct {
	AvailabilityZone string `json:"Availability Zone"`
	SubnetID         string `json:"Subnet ID"`
}

type RealHandler

type RealHandler func(detail AutoScalingDetail, env map[string]string) error

Jump to

Keyboard shortcuts

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