list_reservations
async
¶
list_reservations(
*,
config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[str] = None,
) -> ListReservationsResponse
Displays a list of all reservations that have been purchased by this account in the current Amazon Web Services Region. This list includes all reservations in all states (such as active and expired).
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return per API request.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page. -
next_token(Optional[str], default:None) –The token that identifies the batch of results that you want to see.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListOfferingsrequest a second time and specify theNextTokenvalue.
Raises:
-
BadRequestException–This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
InternalServerErrorException–The server encountered an internal error and is unable to complete the request.
-
ServiceUnavailableException–The service is currently unavailable or busy.
-
TooManyRequestsException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.