Skip to main content

cost_categories

Creates, updates, deletes, gets or lists a cost_categories resource.

Overview

Namecost_categories
TypeResource
Idaws.ce.cost_categories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cost_category_namesarrayThe names of the cost categories.
cost_category_valuesarrayThe cost category values. If the CostCategoryName key isn't specified in the request, the CostCategoryValues fields aren't returned.
next_page_tokenstringIf the number of objects that are still available for retrieval exceeds the quota, Amazon Web Services returns a NextPageToken value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. (pattern: <code>[\S\s]*</code>)
return_sizeintegerThe number of objects that are returned.
total_sizeintegerThe total number of objects.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cost_categoriesselectregionRetrieves an array of cost category names and values incurred cost. If some cost category names and values are not associated with any cost, they will not be returned by this API.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves an array of cost category names and values incurred cost. If some cost category names and values are not associated with any cost, they will not be returned by this API.

SELECT
cost_category_names,
cost_category_values,
next_page_token,
return_size,
total_size
FROM aws.ce.cost_categories
WHERE region = '{{ region }}' -- required
;