aws

package
v0.0.0-...-6b9165a Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 9 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
	AllowedInstanceStates string
	Timeout               uint64
	AssumeRoleArn         string

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

Config is the aws config

type Handler

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

Handler is the aws handler

func NewHandler

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

NewHandler creates a new handler

func (*Handler) GetInstanceState

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

GetInstanceState gets the instance state

Jump to

Keyboard shortcuts

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