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 ¶
func (svc CostExplorerService) GetCostAndUsageWithResources(ctx context.Context, params GetCostAndUsageWithResourcesInput, optFns ...func(*costexplorer.Options)) (*costexplorer.GetCostAndUsageWithResourcesOutput, error)
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 ¶
func (input GetCostAndUsageWithResourcesInput) Request() costexplorer.GetCostAndUsageWithResourcesInput
Click to show internal directories.
Click to hide internal directories.