def iter_list_device_resources(
self,
managed_device_id: "capo_snow_device_management.types.managed_device_id.ManagedDeviceId",
*,
config_overrides: Optional[SnowDeviceManagementClientConfig] = None,
type: Optional[str] = None,
max_results: Optional[
"capo_snow_device_management.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_snow_device_management.types.next_token.NextToken"
] = None,
) -> "Iterator[capo_snow_device_management.types.resource_summary.ResourceSummary]":
_token = next_token
while True:
_response = self.list_device_resources(
managed_device_id,
config_overrides=config_overrides,
type=type,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("resources",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break