list_capacity_reservations
async
¶
list_capacity_reservations(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[CapacityReservationFilters] = None,
) -> ListCapacityReservationsResponse
Lists the SageMaker Capacity Reservations in your account.
An empty list is a valid response.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If more results are available, the response includes a
NextTokenvalue. -
next_token(Optional[NextToken], default:None) –If the previous response was truncated, the response includes a
NextTokenvalue. To retrieve the next set of results, use that token in your next request. -
filters(Optional[CapacityReservationFilters], default:None) –A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 | |