Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all cost categories defined in the account¶
Description¶
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all cost categories defined in the account. You have the option to use EffectiveOn and SupportedResourceTypes to return a list of cost categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see cost categories that are effective on the current date. If cost category is still effective, EffectiveEnd is omitted in the response. list_cost_category_definitions supports pagination. The request can have a MaxResults range up to 100.
Usage¶
costexplorer_list_cost_category_definitions(EffectiveOn, NextToken,
MaxResults, SupportedResourceTypes)
Arguments¶
-
EffectiveOnThe date when the cost category was effective.
-
NextTokenThe 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.
-
MaxResultsThe number of entries a paginated response contains.
-
SupportedResourceTypesFilter 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.
Value¶
A list with the following syntax:
list(
CostCategoryReferences = list(
list(
CostCategoryArn = "string",
Name = "string",
EffectiveStart = "string",
EffectiveEnd = "string",
NumberOfRules = 123,
ProcessingStatus = list(
list(
Component = "COST_EXPLORER",
Status = "PROCESSING"|"APPLIED"
)
),
Values = list(
"string"
),
DefaultValue = "string",
SupportedResourceTypes = list(
"string"
)
)
),
NextToken = "string"
)