async def iter_list_template_step_groups(
self,
template_id: "capo_migrationhuborchestrator.types.template_id.TemplateId",
*,
config_overrides: Optional[AsyncMigrationHubOrchestratorClientConfig] = None,
max_results: Optional[
"capo_migrationhuborchestrator.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_migrationhuborchestrator.types.next_token.NextToken"
] = None,
) -> "AsyncIterator[capo_migrationhuborchestrator.types.template_step_group_summary.TemplateStepGroupSummary]":
_token = next_token
while True:
_response = await self.list_template_step_groups(
template_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("template_step_group_summary",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break