async def iter_list_threat_model_job_tasks(
self,
agent_space_id: str,
threat_model_job_id: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
max_results: Optional["capo_securityagent.types.max_results.MaxResults"] = None,
next_token: Optional["capo_securityagent.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_securityagent.types.threat_model_job_task_summary.ThreatModelJobTaskSummary]":
_token = next_token
while True:
_response = await self.list_threat_model_job_tasks(
agent_space_id,
threat_model_job_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("threat_model_job_task_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break