import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Inserts the defined ISO into a CD-ROM device attached to a Virtual Machine. * Ejects the ISO currently inserted into a CD-ROM device on a Virtual Machine. * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * //############################################# * // ------------------------------------------------ * // This resource allows inserting a custom ISO into * // a VM’s CD-ROM device. * // * // You can manage both: * // 1. **Insertion** — via `apply` * // 2. **Ejection** — automatically on `delete` * // You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly. * //############################################# * const insert_cdrom = new nutanix.VmCdromInsertEjectV2("insert-cdrom", { * vmExtId: "8a938cc5-282b-48c4-81be-de22de145d07", * extId: "c2c249b0-98a0-43fa-9ff6-dcde578d3936", * backingInfos: [{ * dataSources: [{ * references: [{ * imageReferences: [{ * imageExtId: "ba250e3e-1db1-4950-917f-a9e2ea35b8e3", * }], * }], * }], * }], * }); * ``` * */ export declare class VmCdromInsertEjectV2 extends pulumi.CustomResource { /** * Get an existing VmCdromInsertEjectV2 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?: VmCdromInsertEjectV2State, opts?: pulumi.CustomResourceOptions): VmCdromInsertEjectV2; /** * Returns true if the given object is an instance of VmCdromInsertEjectV2. 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 VmCdromInsertEjectV2; /** * Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM. */ readonly action: pulumi.Output; /** * Storage provided by Nutanix ADSF */ readonly backingInfos: pulumi.Output; readonly cdromExtId: pulumi.Output; readonly diskAddresses: pulumi.Output; /** * The globally unique identifier of a CD-ROM. It should be of type UUID. */ readonly extId: pulumi.Output; readonly isoType: pulumi.Output; /** * The globally unique identifier of a VM. It should be of type UUID */ readonly vmExtId: pulumi.Output; /** * Create a VmCdromInsertEjectV2 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: VmCdromInsertEjectV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VmCdromInsertEjectV2 resources. */ export interface VmCdromInsertEjectV2State { /** * Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM. */ action?: pulumi.Input; /** * Storage provided by Nutanix ADSF */ backingInfos?: pulumi.Input[] | undefined>; cdromExtId?: pulumi.Input; diskAddresses?: pulumi.Input[] | undefined>; /** * The globally unique identifier of a CD-ROM. It should be of type UUID. */ extId?: pulumi.Input; isoType?: pulumi.Input; /** * The globally unique identifier of a VM. It should be of type UUID */ vmExtId?: pulumi.Input; } /** * The set of arguments for constructing a VmCdromInsertEjectV2 resource. */ export interface VmCdromInsertEjectV2Args { /** * Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM. */ action?: pulumi.Input; /** * Storage provided by Nutanix ADSF */ backingInfos?: pulumi.Input[] | undefined>; /** * The globally unique identifier of a CD-ROM. It should be of type UUID. */ extId: pulumi.Input; /** * The globally unique identifier of a VM. It should be of type UUID */ vmExtId: pulumi.Input; } //# sourceMappingURL=vmCdromInsertEjectV2.d.ts.map