View a markdown version of this page

CostEfficiencyQuery - Amazon Billing and Cost Management
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

CostEfficiencyQuery

Contains the time period, granularity, grouping dimensions, and filtering conditions for an Amazon cost efficiency data query.

Contents

granularity

The time granularity of the retrieved data. Set to DAILY to aggregate data by day. Set to MONTHLY to aggregate data by month.

Type: String

Valid Values: HOURLY | DAILY | MONTHLY

Required: Yes

timeRange

The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.

Type: DateTimeRange object

Required: Yes

filter

The filter expression to apply to cost efficiency data. You can filter by cost efficiency dimensions such as AccountId and Region.

Type: Expression object

Required: No

groupBy

Specifies how to group the retrieved data, such as by Region or AccountId.

Type: Array of GroupDefinition objects

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: