UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

86 lines (85 loc) 2.56 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a Workspaces image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.workspaces.getImage({ * imageId: "wsi-ten5h0y19", * }); * ``` */ export declare function getImage(args: GetImageArgs, opts?: pulumi.InvokeOptions): Promise<GetImageResult>; /** * A collection of arguments for invoking getImage. */ export interface GetImageArgs { /** * ID of the image. */ imageId: 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; } /** * A collection of values returned by getImage. */ export interface GetImageResult { /** * The description of the image. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly imageId: string; /** * The name of the image. */ readonly name: string; readonly operatingSystemType: string; readonly region: string; /** * Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see [Bring Your Own Windows Desktop Images](https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html). */ readonly requiredTenancy: string; /** * The status of the image. */ readonly state: string; } /** * Use this data source to get information about a Workspaces image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.workspaces.getImage({ * imageId: "wsi-ten5h0y19", * }); * ``` */ export declare function getImageOutput(args: GetImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetImageResult>; /** * A collection of arguments for invoking getImage. */ export interface GetImageOutputArgs { /** * ID of the image. */ imageId: pulumi.Input<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?: pulumi.Input<string>; }