list_cost_category_definitions
¶
list_cost_category_definitions(
*,
config_overrides: Optional[CostExplorerClientConfig] = None,
effective_on: Optional[ZonedDateTime] = None,
next_token: Optional[NextPageToken] = None,
max_results: Optional[CostCategoryMaxResults] = None,
supported_resource_types: Optional[ResourceTypesFilterInput] = None,
) -> ListCostCategoryDefinitionsResponse
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. ListCostCategoryDefinitions supports pagination. The request can have a MaxResults range up to 100.
Parameters:
-
effective_on(Optional[ZonedDateTime], default:None) –The date when the cost category was effective.
-
next_token(Optional[NextPageToken], default:None) –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.
-
max_results(Optional[CostCategoryMaxResults], default:None) –The number of entries a paginated response contains.
-
supported_resource_types(Optional[ResourceTypesFilterInput], default:None) –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:rispgroupsharing,billing:billingview, andbilling:creditsharing.
Raises:
-
LimitExceededException–You made too many calls in a short period of time. Try again later.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cost_explorer/_services/cost_explorer.py
3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 | |