Skip to content

iter_list_provisioning_template_versions async

iter_list_provisioning_template_versions(
    template_name: TemplateName,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ProvisioningTemplateVersionSummary]
Source code in docs_src/capo_iot/_services/async_io_t.py
async def iter_list_provisioning_template_versions(
    self,
    template_name: "capo_iot.types.template_name.TemplateName",
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    max_results: Optional["capo_iot.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_iot.types.provisioning_template_version_summary.ProvisioningTemplateVersionSummary]":
    _token = next_token
    while True:
        _response = await self.list_provisioning_template_versions(
            template_name,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("versions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break