async def iter_list_task_definitions(
self,
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
family_prefix: Optional["capo_ecs.types.string.String"] = None,
status: Optional[
"capo_ecs.types.task_definition_status.TaskDefinitionStatus"
] = None,
sort: Optional["capo_ecs.types.sort_order.SortOrder"] = None,
next_token: Optional["capo_ecs.types.string.String"] = None,
max_results: Optional["capo_ecs.types.boxed_integer.BoxedInteger"] = None,
) -> "AsyncIterator[capo_ecs.types.string.String]":
_token = next_token
while True:
_response = await self.list_task_definitions(
config_overrides=config_overrides,
family_prefix=family_prefix,
status=status,
sort=sort,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("task_definition_arns",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break