def iter_list_publishing_destinations(
self,
detector_id: "capo_guardduty.types.detector_id.DetectorId",
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
max_results: Optional["capo_guardduty.types.max_results.MaxResults"] = None,
next_token: Optional["capo_guardduty.types.string.String"] = None,
) -> "Iterator[capo_guardduty.types.list_publishing_destinations_response.ListPublishingDestinationsResponse]":
_token = next_token
while True:
_response = self.list_publishing_destinations(
detector_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break