Skip to content

describe_reservation async

describe_reservation(
    reservation_arn: ReservationArn,
    *,
    config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
) -> DescribeReservationResponse

Displays the details of a reservation. The response includes the reservation name, state, start date and time, and the details of the offering that make up the rest of the reservation (such as price, duration, and outbound bandwidth).

Parameters:

  • reservation_arn (ReservationArn) –

    The Amazon Resource Name (ARN) of the offering.

Raises:

Source code in docs_src/capo_mediaconnect/_services/async_media_connect.py
async def describe_reservation(
    self,
    reservation_arn: "capo_mediaconnect.types.reservation_arn.ReservationArn",
    *,
    config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
) -> "capo_mediaconnect.types.describe_reservation_response.DescribeReservationResponse":
    """<p> Displays the details of a reservation. The response includes the reservation name, state, start date and time, and the details of the offering that make up the rest of the reservation (such as price, duration, and outbound bandwidth).</p>

    Args:
        reservation_arn: <p>The Amazon Resource Name (ARN) of the offering. </p>

    Raises:
        capo_mediaconnect.errors.bad_request_exception.BadRequestException: <p>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. </p>
        capo_mediaconnect.errors.internal_server_error_exception.InternalServerErrorException: <p>The server encountered an internal error and is unable to complete the request. </p>
        capo_mediaconnect.errors.not_found_exception.NotFoundException: <p>One or more of the resources in the request does not exist in the system. </p>
        capo_mediaconnect.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable or busy. </p>
        capo_mediaconnect.errors.too_many_requests_exception.TooManyRequestsException: <p>The request was denied due to request throttling. </p>
        capo_mediaconnect.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mediaconnect.types.describe_reservation_request.DescribeReservationRequest]",
    ) -> AsyncOperationResponse[
        "capo_mediaconnect.types.describe_reservation_response.DescribeReservationResponse"
    ]:
        import capo_mediaconnect._operations.media_connect.describe_reservation

        (
            output,
            http_response,
        ) = await capo_mediaconnect._operations.media_connect.describe_reservation.async_describe_reservation(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeReservation")
    )
    input_: capo_mediaconnect.types.describe_reservation_request.DescribeReservationRequest = {
        "reservation_arn": reservation_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output