list_cost_category_definitions
async
¶
list_cost_category_definitions(
*,
config_overrides: Optional[AsyncCostExplorerClientConfig] = 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/async_cost_explorer.py
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 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 | |