@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
134 lines (133 loc) • 5.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* The `vsphere.GuestOsCustomization` resource can be used to a customization specification for a guest operating system.
*
* > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const windows = new vsphere.GuestOsCustomization("windows", {
* name: "windows",
* type: "Windows",
* spec: {
* windowsOptions: {
* runOnceCommandLists: [
* "command-1",
* "command-2",
* ],
* computerName: "windows",
* autoLogon: false,
* autoLogonCount: 0,
* adminPassword: "VMware1!",
* timeZone: 4,
* workgroup: "workgroup",
* },
* },
* });
* ```
*/
export declare class GuestOsCustomization extends pulumi.CustomResource {
/**
* Get an existing GuestOsCustomization 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<pulumi.ID>, state?: GuestOsCustomizationState, opts?: pulumi.CustomResourceOptions): GuestOsCustomization;
/**
* Returns true if the given object is an instance of GuestOsCustomization. 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 GuestOsCustomization;
/**
* The number of last changed version to the customization specification.
*/
readonly changeVersion: pulumi.Output<string>;
/**
* The description for the customization specification.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The time of last modification to the customization specification.
*/
readonly lastUpdateTime: pulumi.Output<string>;
/**
* The name of the customization specification is the unique identifier per vCenter Server instance.
*/
readonly name: pulumi.Output<string>;
/**
* Container object for the Guest OS properties about to be customized . See virtual machine customizations
*/
readonly spec: pulumi.Output<outputs.GuestOsCustomizationSpec>;
/**
* The type of customization specification: One among: Windows, Linux.
*/
readonly type: pulumi.Output<string>;
/**
* Create a GuestOsCustomization 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: GuestOsCustomizationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GuestOsCustomization resources.
*/
export interface GuestOsCustomizationState {
/**
* The number of last changed version to the customization specification.
*/
changeVersion?: pulumi.Input<string>;
/**
* The description for the customization specification.
*/
description?: pulumi.Input<string>;
/**
* The time of last modification to the customization specification.
*/
lastUpdateTime?: pulumi.Input<string>;
/**
* The name of the customization specification is the unique identifier per vCenter Server instance.
*/
name?: pulumi.Input<string>;
/**
* Container object for the Guest OS properties about to be customized . See virtual machine customizations
*/
spec?: pulumi.Input<inputs.GuestOsCustomizationSpec>;
/**
* The type of customization specification: One among: Windows, Linux.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a GuestOsCustomization resource.
*/
export interface GuestOsCustomizationArgs {
/**
* The description for the customization specification.
*/
description?: pulumi.Input<string>;
/**
* The name of the customization specification is the unique identifier per vCenter Server instance.
*/
name?: pulumi.Input<string>;
/**
* Container object for the Guest OS properties about to be customized . See virtual machine customizations
*/
spec: pulumi.Input<inputs.GuestOsCustomizationSpec>;
/**
* The type of customization specification: One among: Windows, Linux.
*/
type: pulumi.Input<string>;
}