def iter_describe_folder_permissions(
self,
aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
folder_id: "capo_quicksight.types.restrictive_resource_id.RestrictiveResourceId",
*,
config_overrides: Optional[QuickSightClientConfig] = None,
namespace: Optional["capo_quicksight.types.namespace.Namespace"] = None,
max_results: Optional["capo_quicksight.types.max_results.MaxResults"] = None,
next_token: Optional["capo_quicksight.types.string.String"] = None,
) -> "Iterator[capo_quicksight.types.resource_permission.ResourcePermission]":
_token = next_token
while True:
_response = self.describe_folder_permissions(
aws_account_id,
folder_id,
config_overrides=config_overrides,
namespace=namespace,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("permissions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break