import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for managing an AWS AppStream 2.0 Image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.appstream.getImage({ * name: "AppStream-WinServer2019-06-17-2024", * type: "PUBLIC", * mostRecent: true, * }); * ``` */ export declare function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getImage. */ export interface GetImageArgs { /** * ARN of the image being searched for. Cannot be used with `nameRegex` or `name`. */ arn?: string; /** * Boolean that if it is set to `true` and there are multiple images returned the most recent will be returned. If it is set to `false` and there are multiple images return the datasource will error. */ mostRecent?: boolean; /** * Name of the image being searched for. Cannot be used with `nameRegex` or `arn`. */ name?: string; /** * Regular expression name of the image being searched for. Cannot be used with `arn` or `name`. */ nameRegex?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Type of image which must be (`PUBLIC`, `PRIVATE`, or `SHARED`). */ type?: string; } /** * A collection of values returned by getImage. */ export interface GetImageResult { /** * Application object that contains the following: */ readonly applications: outputs.appstream.GetImageApplication[]; /** * Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters. */ readonly appstreamAgentVersion: string; /** * ARN of the image. */ readonly arn: string; /** * ARN of the image from which the image was created. */ readonly baseImageArn: string; /** * Time at which this image was created. */ readonly createdTime: string; /** * Description of image. */ readonly description: string; /** * Image name to display. */ readonly displayName: string; /** * Name of the image builder that was used to created the private image. If the image is shared then the value is null. */ readonly imageBuilderName: string; /** * Whether an image builder can be launched from this image. */ readonly imageBuilderSupported: boolean; /** * List of objects describing the image permissions containing the following: */ readonly imagePermissions: outputs.appstream.GetImageImagePermission[]; readonly mostRecent?: boolean; /** * Name of the application. */ readonly name: string; readonly nameRegex?: string; /** * Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2 */ readonly platform: string; /** * Release date of base image if public. For private images, it is the release date of the base image that it was created from. */ readonly publicBaseImageReleasedDate: string; readonly region: string; /** * Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING. */ readonly state: string; /** * Reason for the last state change. */ readonly stateChangeReasons: outputs.appstream.GetImageStateChangeReason[]; readonly type?: string; } /** * Data source for managing an AWS AppStream 2.0 Image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.appstream.getImage({ * name: "AppStream-WinServer2019-06-17-2024", * type: "PUBLIC", * mostRecent: true, * }); * ``` */ export declare function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getImage. */ export interface GetImageOutputArgs { /** * ARN of the image being searched for. Cannot be used with `nameRegex` or `name`. */ arn?: pulumi.Input; /** * Boolean that if it is set to `true` and there are multiple images returned the most recent will be returned. If it is set to `false` and there are multiple images return the datasource will error. */ mostRecent?: pulumi.Input; /** * Name of the image being searched for. Cannot be used with `nameRegex` or `arn`. */ name?: pulumi.Input; /** * Regular expression name of the image being searched for. Cannot be used with `arn` or `name`. */ nameRegex?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Type of image which must be (`PUBLIC`, `PRIVATE`, or `SHARED`). */ type?: pulumi.Input; } //# sourceMappingURL=getImage.d.ts.map