aws

package
v0.0.0-...-20a6df4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(cfg *Config) (*API, error)

func (*API) GetResources

func (api *API) GetResources() (Resources, error)

func (*API) ListRegions

func (api *API) ListRegions() ([]string, error)

type Config

type Config struct {
	Profile string
	Region  string
}

type Resource

type Resource struct {
	Service  string `json:"service"`
	Region   string `json:"region"`
	Resource string `json:"resource"`
	ARN      string `json:"arn"`
}

type Resources

type Resources []Resource

func (Resources) Sort

func (rs Resources) Sort()

Jump to

Keyboard shortcuts

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