costexplorerutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

costexplorerutil is a helper package for: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/costexplorer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostExplorerService

type CostExplorerService struct {
	AWSSvcClient *costexplorer.Client
}

func NewService

func NewService(ctx context.Context, cfg *config.AWSConfig, optFns ...func(*costexplorer.Options)) (*CostExplorerService, error)

func (CostExplorerService) GetCostAndUsageWithResources

type GetCostAndUsageWithResourcesInput

type GetCostAndUsageWithResourcesInput struct {
	Filter        types.Expression  // required
	Granularity   types.Granularity // required
	StartDate     time.Time         // required
	EndDate       time.Time         // required
	GroupBy       []types.GroupDefinition
	Metrics       Metrics
	NextPageToken string // optional
}

func (GetCostAndUsageWithResourcesInput) Request

type Metrics

type Metrics []types.Metric

func (Metrics) ToStrings

func (metrics Metrics) ToStrings() []string

Directories

Path Synopsis
cmd
quickstart command

Jump to

Keyboard shortcuts

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