async def iter_list_code_findings(
self,
environment_id: "capo_continuum.types.environment_id.EnvironmentId",
*,
config_overrides: Optional[AsyncContinuumClientConfig] = None,
max_results: Optional["capo_continuum.types.max_results.MaxResults"] = None,
next_token: Optional["capo_continuum.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_continuum.types.finding_summary.FindingSummary]":
_token = next_token
while True:
_response = await self.list_code_findings(
environment_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break