Skip to content

iter_list_vod_sources async

iter_list_vod_sources(
    source_location_name: __string,
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> AsyncIterator[VodSource]
Source code in docs_src/capo_mediatailor/_services/async_media_tailor.py
async def iter_list_vod_sources(
    self,
    source_location_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
    max_results: Optional["capo_mediatailor.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_mediatailor.types.__string.__string"] = None,
) -> "AsyncIterator[capo_mediatailor.types.vod_source.VodSource]":
    _token = next_token
    while True:
        _response = await self.list_vod_sources(
            source_location_name,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break