async def iter_describe_capacity_reservation_fleets(
self,
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_reservation_fleet_ids: Optional[
"capo_ec2.types.capacity_reservation_fleet_id_set.CapacityReservationFleetIdSet"
] = None,
next_token: Optional["capo_ec2.types.string.String"] = None,
max_results: Optional[
"capo_ec2.types.describe_capacity_reservation_fleets_max_results.DescribeCapacityReservationFleetsMaxResults"
] = None,
filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "AsyncIterator[capo_ec2.types.capacity_reservation_fleet.CapacityReservationFleet]":
_token = next_token
while True:
_response = await self.describe_capacity_reservation_fleets(
config_overrides=config_overrides,
capacity_reservation_fleet_ids=capacity_reservation_fleet_ids,
next_token=_token,
max_results=max_results,
filters=filters,
dry_run=dry_run,
)
_page = _resolve_path(_response, ("capacity_reservation_fleets",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break