Skip to content

iter_list_scenes async

iter_list_scenes(
    workspace_id: Id,
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ListScenesResponse]
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
async def iter_list_scenes(
    self,
    workspace_id: "capo_iottwinmaker.types.id.Id",
    *,
    config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
    max_results: Optional["capo_iottwinmaker.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iottwinmaker.types.next_token.NextToken"] = None,
) -> (
    "AsyncIterator[capo_iottwinmaker.types.list_scenes_response.ListScenesResponse]"
):
    _token = next_token
    while True:
        _response = await self.list_scenes(
            workspace_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break