Retrieves a list of the delivery destinations that have been created in the account.
Parameters:
-
limit
(Optional[DescribeLimit], default:
None
)
–
Optionally specify the maximum number of delivery destinations to return in the response.
Raises:
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
| def describe_delivery_destinations(
self,
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
next_token: Optional["capo_cloudwatch_logs.types.next_token.NextToken"] = None,
limit: Optional[
"capo_cloudwatch_logs.types.describe_limit.DescribeLimit"
] = None,
) -> "capo_cloudwatch_logs.types.describe_delivery_destinations_response.DescribeDeliveryDestinationsResponse":
"""<p>Retrieves a list of the delivery destinations that have been created in the account.</p>
Args:
limit: <p>Optionally specify the maximum number of delivery destinations to return in the response.</p>
Raises:
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.describe_delivery_destinations_request.DescribeDeliveryDestinationsRequest]",
) -> OperationResponse[
"capo_cloudwatch_logs.types.describe_delivery_destinations_response.DescribeDeliveryDestinationsResponse"
]:
import capo_cloudwatch_logs._operations.logs_20140328.describe_delivery_destinations
output, http_response = (
capo_cloudwatch_logs._operations.logs_20140328.describe_delivery_destinations.describe_delivery_destinations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeDeliveryDestinations")
)
input_: capo_cloudwatch_logs.types.describe_delivery_destinations_request.DescribeDeliveryDestinationsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if limit is not None:
input_["limit"] = limit
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|