Skip to content

iter_list_access_grants_locations async

iter_list_access_grants_locations(
    account_id: AccountId,
    *,
    config_overrides: Optional[AsyncS3ControlClientConfig] = None,
    next_token: Optional[ContinuationToken] = None,
    max_results: Optional[MaxResults] = None,
    location_scope: Optional[S3Prefix] = None,
) -> AsyncIterator[ListAccessGrantsLocationsResult]
Source code in docs_src/capo_s3_control/_services/async_s3_control.py
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