async def iter_list_application_grants(
self,
application_arn: "capo_sso_admin.types.application_arn.ApplicationArn",
*,
config_overrides: Optional[AsyncSSOAdminClientConfig] = None,
next_token: Optional["capo_sso_admin.types.token.Token"] = None,
) -> "AsyncIterator[capo_sso_admin.types.grant_item.GrantItem]":
_token = next_token
while True:
_response = await self.list_application_grants(
application_arn,
config_overrides=config_overrides,
next_token=_token,
)
_page = _resolve_path(_response, ("grants",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break