Documentation ¶
Index ¶
- func And(exp ...*costexplorer.Expression) *costexplorer.Expression
- func ErrCode(msg string, err error) error
- func Not(exp *costexplorer.Expression) *costexplorer.Expression
- func Or(exp ...*costexplorer.Expression) *costexplorer.Expression
- func Tag(key string, values []string) *costexplorer.Expression
- type CostExplorer
- type CostExplorerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶ added in v0.8.0
func And(exp ...*costexplorer.Expression) *costexplorer.Expression
And returns the expressions wrapped in And
func Not ¶ added in v0.8.0
func Not(exp *costexplorer.Expression) *costexplorer.Expression
Not returns the negated expression
func Or ¶ added in v0.8.0
func Or(exp ...*costexplorer.Expression) *costexplorer.Expression
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 ¶
func (c *CostExplorer) GetCostAndUsage(ctx context.Context, input *costexplorer.GetCostAndUsageInput) ([]*costexplorer.ResultByTime, error)
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
Click to show internal directories.
Click to hide internal directories.