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
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
}
CostExplorer is a wrapper around the aws costexplorer service with some default config info
func NewSession ¶
func NewSession(account common.Account) CostExplorer
NewSession creates a new costexplorer session
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
Click to show internal directories.
Click to hide internal directories.