def iter_list_aliases(
self,
*,
config_overrides: Optional[GameLiftClientConfig] = None,
routing_strategy_type: Optional[
"capo_gamelift.types.routing_strategy_type.RoutingStrategyType"
] = None,
name: Optional["capo_gamelift.types.non_empty_string.NonEmptyString"] = None,
limit: Optional["capo_gamelift.types.positive_integer.PositiveInteger"] = None,
next_token: Optional[
"capo_gamelift.types.non_empty_string.NonEmptyString"
] = None,
) -> "Iterator[capo_gamelift.types.alias.Alias]":
_token = next_token
while True:
_response = self.list_aliases(
config_overrides=config_overrides,
routing_strategy_type=routing_strategy_type,
name=name,
limit=limit,
next_token=_token,
)
_page = _resolve_path(_response, ("aliases",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break