View a markdown version of this page

CostEfficiencyQuery - AWS Billing and Cost Management

CostEfficiencyQuery

Contains the time period, granularity, grouping dimensions, and filtering conditions for an AWS 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 AWS SDKs, see the following: