get_savings_plans_utilization_details
async
¶
get_savings_plans_utilization_details(
time_period: DateInterval,
*,
config_overrides: Optional[AsyncCostExplorerClientConfig] = None,
filter: Optional[Expression] = None,
data_type: Optional[SavingsPlansDataTypes] = None,
next_token: Optional[NextPageToken] = None,
max_results: Optional[MaxResults] = None,
sort_by: Optional[SortDefinition] = None,
) -> GetSavingsPlansUtilizationDetailsResponse
Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to GetSavingsPlanUtilizationDetails by providing individual dates. You can use GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
Parameters:
-
time_period(DateInterval) –The time period that you want the usage and costs for. The
Startdate must be within 13 months. TheEnddate must be after theStartdate.The
Enddate is exclusive. If utilization data isn't complete for the whole period, Cost Explorer movesEndearlier to the first day without complete data, unlessDataTypeis onlyATTRIBUTES. The responseTimePeriodshows the period used. -
filter(Optional[Expression], default:None) –Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:
-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
SAVINGS_PLANS_TYPE -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetailsuses the same Expression object as the other operations. The filter must have one of the following shapes:-
A
Dimensionsexpression. -
A
Notexpression that contains oneDimensionsexpression. -
An
Andexpression with two or more operands, where each operand has one of the two shapes above.
Or,Tags, andCostCategoriesexpressions aren't supported. AnAndexpression can't contain anotherAnd, and aNotexpression can't contain anAndor anotherNot.Each dimension can appear only once in the filter, including inside
Not. To filter on several values of a dimension, put all of the values in one expression. Cost Explorer combines the values in one expression with OR. -
-
data_type(Optional[SavingsPlansDataTypes], default:None) –The data type.
-
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[MaxResults], default:None) –The number of items to be returned in a response. The default is
20, with a minimum value of1. -
sort_by(Optional[SortDefinition], default:None) –The value that you want to sort the data by.
The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings -
AmortizedRecurringCommitment -
AmortizedUpfrontCommitment
The supported values for
SortOrderareASCENDINGandDESCENDING. -
Raises:
-
DataUnavailableException–The requested data is unavailable.
-
InvalidNextTokenException–The pagination token is invalid. Try again without a pagination token.
-
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
2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 | |