Skip to content

iter_list_asset_properties async

iter_list_asset_properties(
    asset_id: CustomID,
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    filter: Optional[ListAssetPropertiesFilter] = None,
) -> AsyncIterator[AssetPropertySummary]
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
async def iter_list_asset_properties(
    self,
    asset_id: "capo_iotsitewise.types.custom_id.CustomID",
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional["capo_iotsitewise.types.next_token.NextToken"] = None,
    max_results: Optional["capo_iotsitewise.types.max_results.MaxResults"] = None,
    filter: Optional[
        "capo_iotsitewise.types.list_asset_properties_filter.ListAssetPropertiesFilter"
    ] = None,
) -> "AsyncIterator[capo_iotsitewise.types.asset_property_summary.AssetPropertySummary]":
    _token = next_token
    while True:
        _response = await self.list_asset_properties(
            asset_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            filter=filter,
        )
        _page = _resolve_path(_response, ("asset_property_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break