async def iter_describe_scaling_activities(
self,
*,
config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
activity_ids: Optional[
"capo_auto_scaling.types.activity_ids.ActivityIds"
] = None,
auto_scaling_group_name: Optional[
"capo_auto_scaling.types.xml_string_max_len255.XmlStringMaxLen255"
] = None,
include_deleted_groups: Optional[
"capo_auto_scaling.types.include_deleted_groups.IncludeDeletedGroups"
] = None,
max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
filters: Optional["capo_auto_scaling.types.filters.Filters"] = None,
) -> "AsyncIterator[capo_auto_scaling.types.activity.Activity]":
_token = next_token
while True:
_response = await self.describe_scaling_activities(
config_overrides=config_overrides,
activity_ids=activity_ids,
auto_scaling_group_name=auto_scaling_group_name,
include_deleted_groups=include_deleted_groups,
max_records=max_records,
next_token=_token,
filters=filters,
)
_page = _resolve_path(_response, ("activities",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break