Skip to content

iter_get_flow_template_revisions async

iter_get_flow_template_revisions(
    id: Urn,
    *,
    config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[FlowTemplateSummary]
Source code in docs_src/capo_iotthingsgraph/_services/async_io_t_things_graph.py
async def iter_get_flow_template_revisions(
    self,
    id: "capo_iotthingsgraph.types.urn.Urn",
    *,
    config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
    next_token: Optional["capo_iotthingsgraph.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_iotthingsgraph.types.max_results.MaxResults"
    ] = None,
) -> "AsyncIterator[capo_iotthingsgraph.types.flow_template_summary.FlowTemplateSummary]":
    _token = next_token
    while True:
        _response = await self.get_flow_template_revisions(
            id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break