def iter_list_meshes(
self,
*,
config_overrides: Optional[AppMeshClientConfig] = None,
next_token: Optional[str] = None,
limit: Optional["capo_app_mesh.types.list_meshes_limit.ListMeshesLimit"] = None,
) -> "Iterator[capo_app_mesh.types.mesh_ref.MeshRef]":
_token = next_token
while True:
_response = self.list_meshes(
config_overrides=config_overrides,
next_token=_token,
limit=limit,
)
_page = _resolve_path(_response, ("meshes",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break