Skip to content

iter_describe_delivery_destinations

iter_describe_delivery_destinations(
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
    next_token: Optional[NextToken] = None,
    limit: Optional[DescribeLimit] = None,
) -> Iterator[DeliveryDestination]
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
def iter_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,
) -> (
    "Iterator[capo_cloudwatch_logs.types.delivery_destination.DeliveryDestination]"
):
    _token = next_token
    while True:
        _response = self.describe_delivery_destinations(
            config_overrides=config_overrides,
            next_token=_token,
            limit=limit,
        )
        _page = _resolve_path(_response, ("delivery_destinations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break