GetReservationUtilizationRequest
¶
Source code in docs_src/capo_cost_explorer/types/get_reservation_utilization_request.py
filter
instance-attribute
¶
filter: NotRequired[Expression]
Filters utilization data by dimensions. You can filter by the following dimensions:
-
AZ
-
INSTANCE_TYPE
-
INSTANCE_TYPE_FAMILY
-
LINKED_ACCOUNT
-
PLATFORM
-
REGION
-
SERVICE
If not specified, the
SERVICEfilter defaults to Amazon Elastic Compute Cloud - Compute. Supported values forSERVICEare Amazon Elastic Compute Cloud - Compute, Amazon Relational Database Service, Amazon ElastiCache, Amazon MemoryDB, Amazon Redshift, Amazon Elasticsearch Service, and Amazon OpenSearch Service. -
SCOPE
The valid values for
SCOPEare the following. Use them exactly as shown, including capitalization.-
Region- Matches reservations that aren't tied to an Availability Zone. -
Availability Zone- Matches reservations for a specific Availability Zone.
-
-
SUBSCRIPTION_ID
Values for
SUBSCRIPTION_IDmust contain only digits. -
TENANCY
GetReservationUtilization uses the same Expression object as the other operations, with the following limits. Filter accepts one Dimensions expression, a Not of one Dimensions expression, or one And of two or more of these. The operation doesn't support Or, an And inside an And, a Not around any other expression, Tags, or CostCategories.
Each dimension can appear only once in a filter, including inside a Not. To filter on several values of a dimension, put them in one expression. The operation ORs multiple values for a dimension together.
granularity
instance-attribute
¶
granularity: NotRequired[Granularity]
If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY.
The GetReservationUtilization operation supports only DAILY and MONTHLY granularities.
group_by
instance-attribute
¶
group_by: NotRequired[GroupDefinitions]
Groups only by SUBSCRIPTION_ID. Metadata is included.
max_results
instance-attribute
¶
max_results: NotRequired[MaxResults]
The maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.
next_page_token
instance-attribute
¶
next_page_token: NotRequired[NextPageToken]
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.
sort_by
instance-attribute
¶
sort_by: NotRequired[SortDefinition]
The value that you want to sort the data by.
The following values are supported for Key:
-
UtilizationPercentage -
UtilizationPercentageInUnits -
PurchasedHours -
PurchasedUnits -
TotalActualHours -
TotalActualUnits -
UnusedHours -
UnusedUnits -
OnDemandCostOfRIHoursUsed -
NetRISavings -
TotalPotentialRISavings -
AmortizedUpfrontFee -
AmortizedRecurringFee -
TotalAmortizedFee -
RICostForUnusedHours -
RealizedSavings -
UnrealizedSavings
SortBy applies only when you set GroupBy. If you don't set GroupBy, the operation ignores SortBy, including its Key.
If you specify SortBy with GroupBy, you must also specify SortOrder. There is no default. The supported values for SortOrder are ASCENDING and DESCENDING.
time_period
instance-attribute
¶
time_period: DateInterval
Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.