Skip to content

get_delivery_destination

get_delivery_destination(
    name: DeliveryDestinationName,
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
) -> GetDeliveryDestinationResponse

Retrieves complete information about one delivery destination.

Parameters:

Raises:

Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
def get_delivery_destination(
    self,
    name: "capo_cloudwatch_logs.types.delivery_destination_name.DeliveryDestinationName",
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
) -> "capo_cloudwatch_logs.types.get_delivery_destination_response.GetDeliveryDestinationResponse":
    """<p>Retrieves complete information about one delivery destination.</p>

    Args:
        name: <p>The name of the delivery destination that you want to retrieve.</p>

    Raises:
        capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_cloudwatch_logs.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>This request exceeds a service quota.</p>
        capo_cloudwatch_logs.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service cannot complete the request.</p>
        capo_cloudwatch_logs.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_cloudwatch_logs.errors.validation_exception.ValidationException: <p>One of the parameters for the request is not valid.</p>
        capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatch_logs.types.get_delivery_destination_request.GetDeliveryDestinationRequest]",
    ) -> OperationResponse[
        "capo_cloudwatch_logs.types.get_delivery_destination_response.GetDeliveryDestinationResponse"
    ]:
        import capo_cloudwatch_logs._operations.logs_20140328.get_delivery_destination

        output, http_response = (
            capo_cloudwatch_logs._operations.logs_20140328.get_delivery_destination.get_delivery_destination(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDeliveryDestination")
    )
    input_: capo_cloudwatch_logs.types.get_delivery_destination_request.GetDeliveryDestinationRequest = {
        "name": name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output