def iter_list_gateway_cluster_associations(
self,
*,
config_overrides: Optional[ECSClientConfig] = None,
gateway: Optional["capo_ecs.types.string.String"] = None,
cluster: Optional["capo_ecs.types.string.String"] = None,
status: Optional[
"capo_ecs.types.gateway_cluster_association_status_list.GatewayClusterAssociationStatusList"
] = None,
max_results: Optional["capo_ecs.types.boxed_integer.BoxedInteger"] = None,
next_token: Optional["capo_ecs.types.string.String"] = None,
) -> "Iterator[capo_ecs.types.gateway_cluster_association_summary.GatewayClusterAssociationSummary]":
_token = next_token
while True:
_response = self.list_gateway_cluster_associations(
config_overrides=config_overrides,
gateway=gateway,
cluster=cluster,
status=status,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("gateway_cluster_associations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break