def iter_list_fleets(
self,
*,
config_overrides: Optional[GameLiftClientConfig] = None,
build_id: Optional["capo_gamelift.types.build_id_or_arn.BuildIdOrArn"] = None,
script_id: Optional[
"capo_gamelift.types.script_id_or_arn.ScriptIdOrArn"
] = None,
limit: Optional["capo_gamelift.types.positive_integer.PositiveInteger"] = None,
next_token: Optional[
"capo_gamelift.types.non_zero_and_max_string.NonZeroAndMaxString"
] = None,
) -> "Iterator[capo_gamelift.types.fleet_id.FleetId]":
_token = next_token
while True:
_response = self.list_fleets(
config_overrides=config_overrides,
build_id=build_id,
script_id=script_id,
limit=limit,
next_token=_token,
)
_page = _resolve_path(_response, ("fleet_ids",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break