async def iter_list_components(
self,
app_id: str,
environment_name: str,
*,
config_overrides: Optional[AsyncAmplifyUIBuilderClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[
"capo_amplifyuibuilder.types.list_entity_limit.ListEntityLimit"
] = None,
) -> (
"AsyncIterator[capo_amplifyuibuilder.types.component_summary.ComponentSummary]"
):
_token = next_token
while True:
_response = await self.list_components(
app_id,
environment_name,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("entities",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break