async def iter_list_resolvers_by_function(
self,
api_id: "capo_appsync.types.string.String",
function_id: "capo_appsync.types.string.String",
*,
config_overrides: Optional[AsyncAppSyncClientConfig] = None,
next_token: Optional[
"capo_appsync.types.pagination_token.PaginationToken"
] = None,
max_results: Optional["capo_appsync.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_appsync.types.resolver.Resolver]":
_token = next_token
while True:
_response = await self.list_resolvers_by_function(
api_id,
function_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("resolvers",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break