Skip to content

iter_describe_images async

iter_describe_images(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    names: Optional[StringList] = None,
    arns: Optional[ArnList] = None,
    type: Optional[VisibilityType] = None,
    next_token: Optional[String] = None,
    max_results: Optional[DescribeImagesMaxResults] = None,
) -> AsyncIterator[DescribeImagesResult]
Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def iter_describe_images(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    names: Optional["capo_appstream.types.string_list.StringList"] = None,
    arns: Optional["capo_appstream.types.arn_list.ArnList"] = None,
    type: Optional["capo_appstream.types.visibility_type.VisibilityType"] = None,
    next_token: Optional["capo_appstream.types.string.String"] = None,
    max_results: Optional[
        "capo_appstream.types.describe_images_max_results.DescribeImagesMaxResults"
    ] = None,
) -> "AsyncIterator[capo_appstream.types.describe_images_result.DescribeImagesResult]":
    _token = next_token
    while True:
        _response = await self.describe_images(
            config_overrides=config_overrides,
            names=names,
            arns=arns,
            type=type,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break