CostExplorer / Client / list_cost_category_definitions
list_cost_category_definitions¶
- CostExplorer.Client.list_cost_category_definitions(**kwargs)¶
Returns the name, Amazon Resource Name (ARN),
NumberOfRulesand effective dates of all cost categories defined in the account. You have the option to useEffectiveOnandSupportedResourceTypesto return a list of cost categories that were active on a specific date. If there is noEffectiveOnspecified, you’ll see cost categories that are effective on the current date. If cost category is still effective,EffectiveEndis omitted in the response.ListCostCategoryDefinitionssupports pagination. The request can have aMaxResultsrange up to 100.See also: AWS API Documentation
Request Syntax
response = client.list_cost_category_definitions( EffectiveOn='string', NextToken='string', MaxResults=123, SupportedResourceTypes=[ 'string', ] )
- Parameters:
EffectiveOn (string) – The date when the cost category was effective.
NextToken (string) – The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
MaxResults (integer) – The number of entries a paginated response contains.
SupportedResourceTypes (list) –
Filter cost category definitions that are supported by given resource types based on the latest version. If the filter is present, the result only includes Cost Categories that supports input resource type. If the filter isn’t provided, no filtering is applied. The valid values are
billing:rispgroupsharingandbilling:billingview.(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'CostCategoryReferences': [ { 'CostCategoryArn': 'string', 'Name': 'string', 'EffectiveStart': 'string', 'EffectiveEnd': 'string', 'NumberOfRules': 123, 'ProcessingStatus': [ { 'Component': 'COST_EXPLORER', 'Status': 'PROCESSING'|'APPLIED' }, ], 'Values': [ 'string', ], 'DefaultValue': 'string', 'SupportedResourceTypes': [ 'string', ] }, ], 'NextToken': 'string' }
Response Structure
(dict) –
CostCategoryReferences (list) –
A reference to a cost category that contains enough information to identify the Cost Category.
(dict) –
A reference to a cost category containing only enough information to identify the Cost Category.
You can use this information to retrieve the full cost category information using
DescribeCostCategory.CostCategoryArn (string) –
The unique identifier for your cost category.
Name (string) –
The unique name of the cost category.
EffectiveStart (string) –
The cost category’s effective start date.
EffectiveEnd (string) –
The cost category’s effective end date.
NumberOfRules (integer) –
The number of rules that are associated with a specific cost category.
ProcessingStatus (list) –
The list of processing statuses for Cost Management products for a specific cost category.
(dict) –
The list of processing statuses for Cost Management products for a specific cost category.
Component (string) –
The Cost Management product name of the applied status.
Status (string) –
The process status for a specific cost category.
Values (list) –
A list of unique cost category values in a specific cost category.
(string) –
The default value for the cost category.
DefaultValue (string) –
The default value for the cost category.
SupportedResourceTypes (list) –
The resource types supported by a specific cost category.
(string) –
NextToken (string) –
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
Exceptions
CostExplorer.Client.exceptions.LimitExceededException