async def iter_list_resource_scans(
self,
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_cloudformation.types.resource_scanner_max_results.ResourceScannerMaxResults"
] = None,
scan_type_filter: Optional[
"capo_cloudformation.types.scan_type.ScanType"
] = None,
) -> "AsyncIterator[capo_cloudformation.types.resource_scan_summary.ResourceScanSummary]":
_token = next_token
while True:
_response = await self.list_resource_scans(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
scan_type_filter=scan_type_filter,
)
_page = _resolve_path(_response, ("resource_scan_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break