Skip to content

iter_list_ingestions async

iter_list_ingestions(
    data_set_id: String,
    aws_account_id: AwsAccountId,
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    next_token: Optional[String] = None,
    max_results: Optional[IngestionMaxResults] = None,
) -> AsyncIterator[Ingestion]
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
async def iter_list_ingestions(
    self,
    data_set_id: "capo_quicksight.types.string.String",
    aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    next_token: Optional["capo_quicksight.types.string.String"] = None,
    max_results: Optional[
        "capo_quicksight.types.ingestion_max_results.IngestionMaxResults"
    ] = None,
) -> "AsyncIterator[capo_quicksight.types.ingestion.Ingestion]":
    _token = next_token
    while True:
        _response = await self.list_ingestions(
            data_set_id,
            aws_account_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("ingestions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break