async def iter_list_access_grants_locations(
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,
max_results: Optional["capo_s3_control.types.max_results.MaxResults"] = None,
location_scope: Optional["capo_s3_control.types.s3_prefix.S3Prefix"] = None,
) -> "AsyncIterator[capo_s3_control.types.list_access_grants_locations_result.ListAccessGrantsLocationsResult]":
_token = next_token
while True:
_response = await self.list_access_grants_locations(
account_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
location_scope=location_scope,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break