import * as pulumi from "@pulumi/pulumi"; /** * Creates a virtual machine image resource for the Yandex Compute Cloud service from an existing * tarball. For more information, see [the official documentation](https://cloud.yandex.com/docs/compute/concepts/image). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const foo_image = new yandex.ComputeImage("foo-image", { * sourceUrl: "https://storage.yandexcloud.net/lucky-images/kube-it.img", * }); * const vm = new yandex.ComputeInstance("vm", { * bootDisk: { * initializeParams: { * imageId: foo_image.id, * }, * }, * }); * ``` * * ## Import * * A VM image can be imported using the `id` of the resource, e.g. * * ```sh * $ pulumi import yandex:index/computeImage:ComputeImage web-image image_id * ``` */ export declare class ComputeImage extends pulumi.CustomResource { /** * Get an existing ComputeImage resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ComputeImageState, opts?: pulumi.CustomResourceOptions): ComputeImage; /** * Returns true if the given object is an instance of ComputeImage. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ComputeImage; /** * Creation timestamp of the image. */ readonly createdAt: pulumi.Output; /** * An optional description of the image. Provide this property when * you create a resource. */ readonly description: pulumi.Output; /** * The name of the image family to which this image belongs. */ readonly family: pulumi.Output; /** * The ID of the folder that the resource belongs to. If it * is not provided, the default provider folder is used. */ readonly folderId: pulumi.Output; /** * A set of key/value label pairs to assign to the image. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Minimum size in GB of the disk that will be created from this image. */ readonly minDiskSize: pulumi.Output; /** * Name of the disk. */ readonly name: pulumi.Output; /** * Operating system type that is contained in the image. Possible values: "LINUX", "WINDOWS". */ readonly osType: pulumi.Output; /** * Optimize the image to create a disk. */ readonly pooled: pulumi.Output; /** * License IDs that indicate which licenses are * attached to this image. */ readonly productIds: pulumi.Output; /** * The size of the image, specified in GB. */ readonly size: pulumi.Output; /** * The ID of a disk to use as the source of the * image. Changing this ID forces a new resource to be created. */ readonly sourceDisk: pulumi.Output; /** * The name of the family to use as the source of the new image. * The ID of the latest image is taken from the "standard-images" folder. Changing the family forces * a new resource to be created. */ readonly sourceFamily: pulumi.Output; /** * The ID of an existing image to use as the source of the * image. Changing this ID forces a new resource to be created. */ readonly sourceImage: pulumi.Output; /** * The ID of a snapshot to use as the source of the * image. Changing this ID forces a new resource to be created. */ readonly sourceSnapshot: pulumi.Output; /** * The URL to use as the source of the * image. Changing this URL forces a new resource to be created. */ readonly sourceUrl: pulumi.Output; /** * The status of the image. */ readonly status: pulumi.Output; /** * Create a ComputeImage resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ComputeImageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ComputeImage resources. */ export interface ComputeImageState { /** * Creation timestamp of the image. */ createdAt?: pulumi.Input; /** * An optional description of the image. Provide this property when * you create a resource. */ description?: pulumi.Input; /** * The name of the image family to which this image belongs. */ family?: pulumi.Input; /** * The ID of the folder that the resource belongs to. If it * is not provided, the default provider folder is used. */ folderId?: pulumi.Input; /** * A set of key/value label pairs to assign to the image. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Minimum size in GB of the disk that will be created from this image. */ minDiskSize?: pulumi.Input; /** * Name of the disk. */ name?: pulumi.Input; /** * Operating system type that is contained in the image. Possible values: "LINUX", "WINDOWS". */ osType?: pulumi.Input; /** * Optimize the image to create a disk. */ pooled?: pulumi.Input; /** * License IDs that indicate which licenses are * attached to this image. */ productIds?: pulumi.Input[]>; /** * The size of the image, specified in GB. */ size?: pulumi.Input; /** * The ID of a disk to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceDisk?: pulumi.Input; /** * The name of the family to use as the source of the new image. * The ID of the latest image is taken from the "standard-images" folder. Changing the family forces * a new resource to be created. */ sourceFamily?: pulumi.Input; /** * The ID of an existing image to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceImage?: pulumi.Input; /** * The ID of a snapshot to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceSnapshot?: pulumi.Input; /** * The URL to use as the source of the * image. Changing this URL forces a new resource to be created. */ sourceUrl?: pulumi.Input; /** * The status of the image. */ status?: pulumi.Input; } /** * The set of arguments for constructing a ComputeImage resource. */ export interface ComputeImageArgs { /** * An optional description of the image. Provide this property when * you create a resource. */ description?: pulumi.Input; /** * The name of the image family to which this image belongs. */ family?: pulumi.Input; /** * The ID of the folder that the resource belongs to. If it * is not provided, the default provider folder is used. */ folderId?: pulumi.Input; /** * A set of key/value label pairs to assign to the image. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Minimum size in GB of the disk that will be created from this image. */ minDiskSize?: pulumi.Input; /** * Name of the disk. */ name?: pulumi.Input; /** * Operating system type that is contained in the image. Possible values: "LINUX", "WINDOWS". */ osType?: pulumi.Input; /** * Optimize the image to create a disk. */ pooled?: pulumi.Input; /** * License IDs that indicate which licenses are * attached to this image. */ productIds?: pulumi.Input[]>; /** * The ID of a disk to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceDisk?: pulumi.Input; /** * The name of the family to use as the source of the new image. * The ID of the latest image is taken from the "standard-images" folder. Changing the family forces * a new resource to be created. */ sourceFamily?: pulumi.Input; /** * The ID of an existing image to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceImage?: pulumi.Input; /** * The ID of a snapshot to use as the source of the * image. Changing this ID forces a new resource to be created. */ sourceSnapshot?: pulumi.Input; /** * The URL to use as the source of the * image. Changing this URL forces a new resource to be created. */ sourceUrl?: pulumi.Input; }