AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GetCostAndUsageOutput

import "github.com/aws/aws-sdk-go/service/costexplorer"

type GetCostAndUsageOutput struct { GroupDefinitions []*GroupDefinition `type:"list"` NextPageToken *string `type:"string"` ResultsByTime []*ResultByTime `type:"list"` }

GroupDefinitions

Represents a group when you specify a group by criteria or in the response to a query with a specific grouping.

NextPageToken

Type: *string

The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.

ResultsByTime

The result that is associated with a time period.

Method

GoString

func (s GetCostAndUsageOutput) GoString() string

GoString returns the string representation

SetGroupDefinitions

func (s *GetCostAndUsageOutput) SetGroupDefinitions(v []*GroupDefinition) *GetCostAndUsageOutput

SetGroupDefinitions sets the GroupDefinitions field's value.

SetNextPageToken

func (s *GetCostAndUsageOutput) SetNextPageToken(v string) *GetCostAndUsageOutput

SetNextPageToken sets the NextPageToken field's value.

SetResultsByTime

func (s *GetCostAndUsageOutput) SetResultsByTime(v []*ResultByTime) *GetCostAndUsageOutput

SetResultsByTime sets the ResultsByTime field's value.

String

func (s GetCostAndUsageOutput) String() string

String returns the string representation

On this page: