costexplorer

package
v0.15.6-pre4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And added in v0.8.0

And returns the expressions wrapped in And

func ErrCode

func ErrCode(msg string, err error) error

func Not added in v0.8.0

Not returns the negated expression

func Or added in v0.8.0

Or returns the expressions wrapped in Or

func Tag added in v0.8.0

func Tag(key string, values []string) *costexplorer.Expression

Tag returns the cost explorer expression to filter on tag

Types

type CostExplorer

type CostExplorer struct {
	Service costexploreriface.CostExplorerAPI
	// contains filtered or unexported fields
}

CostExplorer is a wrapper around the aws costexplorer service with some default config info

func New added in v0.15.0

func New(opts ...CostExplorerOption) *CostExplorer

func (*CostExplorer) GetCostAndUsage

GetCostAndUsage gets cost and usage information from the cost explorer service

type CostExplorerOption added in v0.15.0

type CostExplorerOption func(*CostExplorer)

func WithCredentials added in v0.15.0

func WithCredentials(key, secret, token, region string) CostExplorerOption

func WithSession added in v0.15.0

func WithSession(sess *session.Session) CostExplorerOption

Jump to

Keyboard shortcuts

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