def iter_list_resource_share_permissions(
self,
resource_share_arn: "capo_ram.types.string.String",
*,
config_overrides: Optional[RAMClientConfig] = None,
next_token: Optional["capo_ram.types.string.String"] = None,
max_results: Optional["capo_ram.types.max_results.MaxResults"] = None,
) -> "Iterator[capo_ram.types.list_resource_share_permissions_response.ListResourceSharePermissionsResponse]":
_token = next_token
while True:
_response = self.list_resource_share_permissions(
resource_share_arn,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break