async def iter_list_listing_attributes(
self,
listing_id: "capo_marketplace_discovery.types.listing_id.ListingId",
attribute_types: "capo_marketplace_discovery.types.listing_attribute_type_list.ListingAttributeTypeList",
*,
config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
locale: Optional["capo_marketplace_discovery.types.locale.Locale"] = None,
max_results: Optional[
"capo_marketplace_discovery.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_marketplace_discovery.types.next_token.NextToken"
] = None,
) -> "AsyncIterator[capo_marketplace_discovery.types.listing_attribute_results.ListingAttributeResults]":
_token = next_token
while True:
_response = await self.list_listing_attributes(
listing_id,
attribute_types,
config_overrides=config_overrides,
locale=locale,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("listing_attributes",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break