def iter_list_discovered_devices(
self,
identifier: "capo_iot_managed_integrations.types.device_discovery_id.DeviceDiscoveryId",
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
next_token: Optional[
"capo_iot_managed_integrations.types.next_token.NextToken"
] = None,
max_results: Optional[
"capo_iot_managed_integrations.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_iot_managed_integrations.types.discovered_device_summary.DiscoveredDeviceSummary]":
_token = next_token
while True:
_response = self.list_discovered_devices(
identifier,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break