async def iter_list_control_operations(
self,
*,
config_overrides: Optional[AsyncControlTowerClientConfig] = None,
filter: Optional[
"capo_controltower.types.control_operation_filter.ControlOperationFilter"
] = None,
next_token: Optional[
"capo_controltower.types.list_control_operations_next_token.ListControlOperationsNextToken"
] = None,
max_results: Optional[
"capo_controltower.types.list_control_operations_max_results.ListControlOperationsMaxResults"
] = None,
) -> "AsyncIterator[capo_controltower.types.control_operation_summary.ControlOperationSummary]":
_token = next_token
while True:
_response = await self.list_control_operations(
config_overrides=config_overrides,
filter=filter,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("control_operations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break