aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 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 Config

type Config struct {
	sensu.PluginConfig
	AwsAccessKeyId string
	AwsSecretKey   string
	AwsRegion      string
	AwsInstanceId  string
	//AwsAccounts           string
	AllowedInstanceStates string
	Timeout               uint64

	// Computed from the input
	AwsAccountsMap           map[string]bool
	AllowedInstanceStatesMap map[string]bool
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(config *Config) (*Handler, error)

func (*Handler) GetInstanceState

func (awsHandler *Handler) GetInstanceState() (string, error)

Jump to

Keyboard shortcuts

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