Retrieves an array of Cost Category names and values incurred cost.
See https://www.paws-r-sdk.com/docs/costexplorer_get_cost_categories/ for full documentation.
costexplorer_get_cost_categories(
SearchString = NULL,
TimePeriod,
CostCategoryName = NULL,
Filter = NULL,
SortBy = NULL,
BillingViewArn = NULL,
MaxResults = NULL,
NextPageToken = NULL
)
The value that you want to search the filter values for.
If you don't specify a CostCategoryName
, SearchString
is used to
filter Cost Category names that match the SearchString
pattern. If you
specify a CostCategoryName
, SearchString
is used to filter Cost
Category values that match the SearchString
pattern.
[required]
The value that you sort the data by.
The key represents the cost and usage metrics. The following values are supported:
BlendedCost
UnblendedCost
AmortizedCost
NetAmortizedCost
NetUnblendedCost
UsageQuantity
NormalizedUsageAmount
The supported key values for the SortOrder
value are ASCENDING
and
DESCENDING
.
When you use the SortBy
value, the NextPageToken
and SearchString
key values aren't supported.
The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.
This field is only used when the SortBy
value is provided in the
request.
The maximum number of objects that are returned for this request. If
MaxResults
isn't specified with the SortBy
value, the request
returns 1000 results as the default value for this parameter.
For get_cost_categories
,
MaxResults has an upper quota of 1000.
If 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 NextPageToken from the previous call in your next request.