async def iter_list_storage_lens_groups(
self,
account_id: "capo_s3_control.types.account_id.AccountId",
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
next_token: Optional[
"capo_s3_control.types.continuation_token.ContinuationToken"
] = None,
) -> "AsyncIterator[capo_s3_control.types.list_storage_lens_groups_result.ListStorageLensGroupsResult]":
_token = next_token
while True:
_response = await self.list_storage_lens_groups(
account_id,
config_overrides=config_overrides,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break