Skip to content

iter_list_kx_scaling_groups async

iter_list_kx_scaling_groups(
    environment_id: KxEnvironmentId,
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ListKxScalingGroupsResponse]
Source code in docs_src/capo_finspace/_services/async_finspace.py
async def iter_list_kx_scaling_groups(
    self,
    environment_id: "capo_finspace.types.kx_environment_id.KxEnvironmentId",
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
    max_results: Optional["capo_finspace.types.max_results.MaxResults"] = None,
    next_token: Optional[
        "capo_finspace.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_finspace.types.list_kx_scaling_groups_response.ListKxScalingGroupsResponse]":
    _token = next_token
    while True:
        _response = await self.list_kx_scaling_groups(
            environment_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break