async def iter_list_instances(
self,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
next_token: Optional[
"capo_supplychain.types.instance_next_token.InstanceNextToken"
] = None,
max_results: Optional[
"capo_supplychain.types.instance_max_results.InstanceMaxResults"
] = None,
instance_name_filter: Optional[
"capo_supplychain.types.instance_name_list.InstanceNameList"
] = None,
instance_state_filter: Optional[
"capo_supplychain.types.instance_state_list.InstanceStateList"
] = None,
) -> "AsyncIterator[capo_supplychain.types.instance.Instance]":
_token = next_token
while True:
_response = await self.list_instances(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
instance_name_filter=instance_name_filter,
instance_state_filter=instance_state_filter,
)
_page = _resolve_path(_response, ("instances",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break