Skip to content

iter_list_stream_keys async

iter_list_stream_keys(
    channel_arn: ChannelArn,
    *,
    config_overrides: Optional[AsyncivsClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxStreamKeyResults] = None,
) -> AsyncIterator[ListStreamKeysResponse]
Source code in docs_src/capo_ivs/_services/async_ivs.py
async def iter_list_stream_keys(
    self,
    channel_arn: "capo_ivs.types.channel_arn.ChannelArn",
    *,
    config_overrides: Optional[AsyncivsClientConfig] = None,
    next_token: Optional["capo_ivs.types.pagination_token.PaginationToken"] = None,
    max_results: Optional[
        "capo_ivs.types.max_stream_key_results.MaxStreamKeyResults"
    ] = None,
) -> (
    "AsyncIterator[capo_ivs.types.list_stream_keys_response.ListStreamKeysResponse]"
):
    _token = next_token
    while True:
        _response = await self.list_stream_keys(
            channel_arn,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break