async def iter_list_attributes(
self,
target_type: "capo_ecs.types.target_type.TargetType",
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
cluster: Optional["capo_ecs.types.string.String"] = None,
attribute_name: Optional["capo_ecs.types.string.String"] = None,
attribute_value: Optional["capo_ecs.types.string.String"] = None,
next_token: Optional["capo_ecs.types.string.String"] = None,
max_results: Optional["capo_ecs.types.boxed_integer.BoxedInteger"] = None,
) -> "AsyncIterator[capo_ecs.types.attribute.Attribute]":
_token = next_token
while True:
_response = await self.list_attributes(
target_type,
config_overrides=config_overrides,
cluster=cluster,
attribute_name=attribute_name,
attribute_value=attribute_value,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("attributes",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break