Skip to content

iter_describe_image_permissions async

iter_describe_image_permissions(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    name: Optional[Name] = None,
    max_results: Optional[MaxResults] = None,
    shared_aws_account_ids: Optional[AwsAccountIdList] = None,
    next_token: Optional[String] = None,
) -> AsyncIterator[DescribeImagePermissionsResult]
Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def iter_describe_image_permissions(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    name: Optional["capo_appstream.types.name.Name"] = None,
    max_results: Optional["capo_appstream.types.max_results.MaxResults"] = None,
    shared_aws_account_ids: Optional[
        "capo_appstream.types.aws_account_id_list.AwsAccountIdList"
    ] = None,
    next_token: Optional["capo_appstream.types.string.String"] = None,
) -> "AsyncIterator[capo_appstream.types.describe_image_permissions_result.DescribeImagePermissionsResult]":
    _token = next_token
    while True:
        _response = await self.describe_image_permissions(
            config_overrides=config_overrides,
            name=name,
            max_results=max_results,
            shared_aws_account_ids=shared_aws_account_ids,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break