Skip to content

iter_list_ingestions async

iter_list_ingestions(
    app_bundle_identifier: Identifier,
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[str] = None,
) -> AsyncIterator[IngestionSummary]
Source code in docs_src/capo_appfabric/_services/async_app_fabric.py
async def iter_list_ingestions(
    self,
    app_bundle_identifier: "capo_appfabric.types.identifier.Identifier",
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    max_results: Optional["capo_appfabric.types.max_results.MaxResults"] = None,
    next_token: Optional[str] = None,
) -> "AsyncIterator[capo_appfabric.types.ingestion_summary.IngestionSummary]":
    _token = next_token
    while True:
        _response = await self.list_ingestions(
            app_bundle_identifier,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("ingestions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break