UNPKG

@cdktf/provider-vsphere

Version:

Prebuilt vsphere Provider for Terraform CDK (cdktf)

1,294 lines (1,293 loc) 232 kB
"use strict"; var _a, _b, _c, _d, _e, _f; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataVsphereVirtualMachine = exports.DataVsphereVirtualMachineVappOutputReference = exports.DataVsphereVirtualMachineNetworkInterfacesList = exports.DataVsphereVirtualMachineNetworkInterfacesOutputReference = exports.DataVsphereVirtualMachineDisksList = exports.DataVsphereVirtualMachineDisksOutputReference = void 0; exports.dataVsphereVirtualMachineDisksToTerraform = dataVsphereVirtualMachineDisksToTerraform; exports.dataVsphereVirtualMachineDisksToHclTerraform = dataVsphereVirtualMachineDisksToHclTerraform; exports.dataVsphereVirtualMachineNetworkInterfacesToTerraform = dataVsphereVirtualMachineNetworkInterfacesToTerraform; exports.dataVsphereVirtualMachineNetworkInterfacesToHclTerraform = dataVsphereVirtualMachineNetworkInterfacesToHclTerraform; exports.dataVsphereVirtualMachineVappToTerraform = dataVsphereVirtualMachineVappToTerraform; exports.dataVsphereVirtualMachineVappToHclTerraform = dataVsphereVirtualMachineVappToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataVsphereVirtualMachineDisksToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataVsphereVirtualMachineDisksToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataVsphereVirtualMachineDisksOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // eagerly_scrub - computed: true, optional: false, required: false get eagerlyScrub() { return this.getBooleanAttribute('eagerly_scrub'); } // label - computed: true, optional: false, required: false get label() { return this.getStringAttribute('label'); } // size - computed: true, optional: false, required: false get size() { return this.getNumberAttribute('size'); } // thin_provisioned - computed: true, optional: false, required: false get thinProvisioned() { return this.getBooleanAttribute('thin_provisioned'); } // unit_number - computed: true, optional: false, required: false get unitNumber() { return this.getNumberAttribute('unit_number'); } } exports.DataVsphereVirtualMachineDisksOutputReference = DataVsphereVirtualMachineDisksOutputReference; _a = JSII_RTTI_SYMBOL_1; DataVsphereVirtualMachineDisksOutputReference[_a] = { fqn: "@cdktf/provider-vsphere.dataVsphereVirtualMachine.DataVsphereVirtualMachineDisksOutputReference", version: "11.2.1" }; class DataVsphereVirtualMachineDisksList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataVsphereVirtualMachineDisksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataVsphereVirtualMachineDisksList = DataVsphereVirtualMachineDisksList; _b = JSII_RTTI_SYMBOL_1; DataVsphereVirtualMachineDisksList[_b] = { fqn: "@cdktf/provider-vsphere.dataVsphereVirtualMachine.DataVsphereVirtualMachineDisksList", version: "11.2.1" }; function dataVsphereVirtualMachineNetworkInterfacesToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataVsphereVirtualMachineNetworkInterfacesToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataVsphereVirtualMachineNetworkInterfacesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // adapter_type - computed: true, optional: false, required: false get adapterType() { return this.getStringAttribute('adapter_type'); } // bandwidth_limit - computed: true, optional: false, required: false get bandwidthLimit() { return this.getNumberAttribute('bandwidth_limit'); } // bandwidth_reservation - computed: true, optional: false, required: false get bandwidthReservation() { return this.getNumberAttribute('bandwidth_reservation'); } // bandwidth_share_count - computed: true, optional: false, required: false get bandwidthShareCount() { return this.getNumberAttribute('bandwidth_share_count'); } // bandwidth_share_level - computed: true, optional: false, required: false get bandwidthShareLevel() { return this.getStringAttribute('bandwidth_share_level'); } // mac_address - computed: true, optional: false, required: false get macAddress() { return this.getStringAttribute('mac_address'); } // network_id - computed: true, optional: false, required: false get networkId() { return this.getStringAttribute('network_id'); } // physical_function - computed: true, optional: false, required: false get physicalFunction() { return this.getStringAttribute('physical_function'); } } exports.DataVsphereVirtualMachineNetworkInterfacesOutputReference = DataVsphereVirtualMachineNetworkInterfacesOutputReference; _c = JSII_RTTI_SYMBOL_1; DataVsphereVirtualMachineNetworkInterfacesOutputReference[_c] = { fqn: "@cdktf/provider-vsphere.dataVsphereVirtualMachine.DataVsphereVirtualMachineNetworkInterfacesOutputReference", version: "11.2.1" }; class DataVsphereVirtualMachineNetworkInterfacesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataVsphereVirtualMachineNetworkInterfacesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataVsphereVirtualMachineNetworkInterfacesList = DataVsphereVirtualMachineNetworkInterfacesList; _d = JSII_RTTI_SYMBOL_1; DataVsphereVirtualMachineNetworkInterfacesList[_d] = { fqn: "@cdktf/provider-vsphere.dataVsphereVirtualMachine.DataVsphereVirtualMachineNetworkInterfacesList", version: "11.2.1" }; function dataVsphereVirtualMachineVappToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties), }; } function dataVsphereVirtualMachineVappToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataVsphereVirtualMachineVappOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._properties !== undefined) { hasAnyValues = true; internalValueResult.properties = this._properties; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._properties = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._properties = value.properties; } } get properties() { return this.getStringMapAttribute('properties'); } set properties(value) { this._properties = value; } resetProperties() { this._properties = undefined; } // Temporarily expose input value. Use with caution. get propertiesInput() { return this._properties; } } exports.DataVsphereVirtualMachineVappOutputReference = DataVsphereVirtualMachineVappOutputReference; _e = JSII_RTTI_SYMBOL_1; DataVsphereVirtualMachineVappOutputReference[_e] = { fqn: "@cdktf/provider-vsphere.dataVsphereVirtualMachine.DataVsphereVirtualMachineVappOutputReference", version: "11.2.1" }; /** * Represents a {@link https://registry.terraform.io/providers/vmware/vsphere/2.15.0/docs/data-sources/virtual_machine vsphere_virtual_machine} */ class DataVsphereVirtualMachine extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataVsphereVirtualMachine resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the DataVsphereVirtualMachine to import * @param importFromId The id of the existing DataVsphereVirtualMachine that should be imported. Refer to the {@link https://registry.terraform.io/providers/vmware/vsphere/2.15.0/docs/data-sources/virtual_machine#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataVsphereVirtualMachine to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "vsphere_virtual_machine", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/vmware/vsphere/2.15.0/docs/data-sources/virtual_machine vsphere_virtual_machine} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataVsphereVirtualMachineConfig = {} */ constructor(scope, id, config = {}) { super(scope, id, { terraformResourceType: 'vsphere_virtual_machine', terraformGeneratorMetadata: { providerName: 'vsphere', providerVersion: '2.15.0', providerVersionConstraint: '~> 2.13' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // disks - computed: true, optional: false, required: false this._disks = new DataVsphereVirtualMachineDisksList(this, "disks", false); // network_interfaces - computed: true, optional: false, required: false this._networkInterfaces = new DataVsphereVirtualMachineNetworkInterfacesList(this, "network_interfaces", false); // vapp - computed: false, optional: true, required: false this._vapp = new DataVsphereVirtualMachineVappOutputReference(this, "vapp"); this._alternateGuestName = config.alternateGuestName; this._annotation = config.annotation; this._bootDelay = config.bootDelay; this._bootRetryDelay = config.bootRetryDelay; this._bootRetryEnabled = config.bootRetryEnabled; this._cpuHotAddEnabled = config.cpuHotAddEnabled; this._cpuHotRemoveEnabled = config.cpuHotRemoveEnabled; this._cpuLimit = config.cpuLimit; this._cpuPerformanceCountersEnabled = config.cpuPerformanceCountersEnabled; this._cpuReservation = config.cpuReservation; this._cpuShareCount = config.cpuShareCount; this._cpuShareLevel = config.cpuShareLevel; this._datacenterId = config.datacenterId; this._efiSecureBootEnabled = config.efiSecureBootEnabled; this._enableDiskUuid = config.enableDiskUuid; this._enableLogging = config.enableLogging; this._eptRviMode = config.eptRviMode; this._extraConfig = config.extraConfig; this._extraConfigRebootRequired = config.extraConfigRebootRequired; this._firmware = config.firmware; this._folder = config.folder; this._guestId = config.guestId; this._hardwareVersion = config.hardwareVersion; this._hvMode = config.hvMode; this._id = config.id; this._ideControllerScanCount = config.ideControllerScanCount; this._latencySensitivity = config.latencySensitivity; this._memory = config.memory; this._memoryHotAddEnabled = config.memoryHotAddEnabled; this._memoryLimit = config.memoryLimit; this._memoryReservation = config.memoryReservation; this._memoryReservationLockedToMax = config.memoryReservationLockedToMax; this._memoryShareCount = config.memoryShareCount; this._memoryShareLevel = config.memoryShareLevel; this._moid = config.moid; this._name = config.name; this._nestedHvEnabled = config.nestedHvEnabled; this._numCoresPerSocket = config.numCoresPerSocket; this._numCpus = config.numCpus; this._nvmeControllerScanCount = config.nvmeControllerScanCount; this._replaceTrigger = config.replaceTrigger; this._runToolsScriptsAfterPowerOn = config.runToolsScriptsAfterPowerOn; this._runToolsScriptsAfterResume = config.runToolsScriptsAfterResume; this._runToolsScriptsBeforeGuestReboot = config.runToolsScriptsBeforeGuestReboot; this._runToolsScriptsBeforeGuestShutdown = config.runToolsScriptsBeforeGuestShutdown; this._runToolsScriptsBeforeGuestStandby = config.runToolsScriptsBeforeGuestStandby; this._sataControllerScanCount = config.sataControllerScanCount; this._scsiControllerScanCount = config.scsiControllerScanCount; this._storagePolicyId = config.storagePolicyId; this._swapPlacementPolicy = config.swapPlacementPolicy; this._syncTimeWithHost = config.syncTimeWithHost; this._syncTimeWithHostPeriodically = config.syncTimeWithHostPeriodically; this._toolsUpgradePolicy = config.toolsUpgradePolicy; this._uuid = config.uuid; this._vbsEnabled = config.vbsEnabled; this._vvtdEnabled = config.vvtdEnabled; this._vapp.internalValue = config.vapp; } get alternateGuestName() { return this.getStringAttribute('alternate_guest_name'); } set alternateGuestName(value) { this._alternateGuestName = value; } resetAlternateGuestName() { this._alternateGuestName = undefined; } // Temporarily expose input value. Use with caution. get alternateGuestNameInput() { return this._alternateGuestName; } get annotation() { return this.getStringAttribute('annotation'); } set annotation(value) { this._annotation = value; } resetAnnotation() { this._annotation = undefined; } // Temporarily expose input value. Use with caution. get annotationInput() { return this._annotation; } get bootDelay() { return this.getNumberAttribute('boot_delay'); } set bootDelay(value) { this._bootDelay = value; } resetBootDelay() { this._bootDelay = undefined; } // Temporarily expose input value. Use with caution. get bootDelayInput() { return this._bootDelay; } get bootRetryDelay() { return this.getNumberAttribute('boot_retry_delay'); } set bootRetryDelay(value) { this._bootRetryDelay = value; } resetBootRetryDelay() { this._bootRetryDelay = undefined; } // Temporarily expose input value. Use with caution. get bootRetryDelayInput() { return this._bootRetryDelay; } get bootRetryEnabled() { return this.getBooleanAttribute('boot_retry_enabled'); } set bootRetryEnabled(value) { this._bootRetryEnabled = value; } resetBootRetryEnabled() { this._bootRetryEnabled = undefined; } // Temporarily expose input value. Use with caution. get bootRetryEnabledInput() { return this._bootRetryEnabled; } // change_version - computed: true, optional: false, required: false get changeVersion() { return this.getStringAttribute('change_version'); } get cpuHotAddEnabled() { return this.getBooleanAttribute('cpu_hot_add_enabled'); } set cpuHotAddEnabled(value) { this._cpuHotAddEnabled = value; } resetCpuHotAddEnabled() { this._cpuHotAddEnabled = undefined; } // Temporarily expose input value. Use with caution. get cpuHotAddEnabledInput() { return this._cpuHotAddEnabled; } get cpuHotRemoveEnabled() { return this.getBooleanAttribute('cpu_hot_remove_enabled'); } set cpuHotRemoveEnabled(value) { this._cpuHotRemoveEnabled = value; } resetCpuHotRemoveEnabled() { this._cpuHotRemoveEnabled = undefined; } // Temporarily expose input value. Use with caution. get cpuHotRemoveEnabledInput() { return this._cpuHotRemoveEnabled; } get cpuLimit() { return this.getNumberAttribute('cpu_limit'); } set cpuLimit(value) { this._cpuLimit = value; } resetCpuLimit() { this._cpuLimit = undefined; } // Temporarily expose input value. Use with caution. get cpuLimitInput() { return this._cpuLimit; } get cpuPerformanceCountersEnabled() { return this.getBooleanAttribute('cpu_performance_counters_enabled'); } set cpuPerformanceCountersEnabled(value) { this._cpuPerformanceCountersEnabled = value; } resetCpuPerformanceCountersEnabled() { this._cpuPerformanceCountersEnabled = undefined; } // Temporarily expose input value. Use with caution. get cpuPerformanceCountersEnabledInput() { return this._cpuPerformanceCountersEnabled; } get cpuReservation() { return this.getNumberAttribute('cpu_reservation'); } set cpuReservation(value) { this._cpuReservation = value; } resetCpuReservation() { this._cpuReservation = undefined; } // Temporarily expose input value. Use with caution. get cpuReservationInput() { return this._cpuReservation; } get cpuShareCount() { return this.getNumberAttribute('cpu_share_count'); } set cpuShareCount(value) { this._cpuShareCount = value; } resetCpuShareCount() { this._cpuShareCount = undefined; } // Temporarily expose input value. Use with caution. get cpuShareCountInput() { return this._cpuShareCount; } get cpuShareLevel() { return this.getStringAttribute('cpu_share_level'); } set cpuShareLevel(value) { this._cpuShareLevel = value; } resetCpuShareLevel() { this._cpuShareLevel = undefined; } // Temporarily expose input value. Use with caution. get cpuShareLevelInput() { return this._cpuShareLevel; } get datacenterId() { return this.getStringAttribute('datacenter_id'); } set datacenterId(value) { this._datacenterId = value; } resetDatacenterId() { this._datacenterId = undefined; } // Temporarily expose input value. Use with caution. get datacenterIdInput() { return this._datacenterId; } // default_ip_address - computed: true, optional: false, required: false get defaultIpAddress() { return this.getStringAttribute('default_ip_address'); } get disks() { return this._disks; } get efiSecureBootEnabled() { return this.getBooleanAttribute('efi_secure_boot_enabled'); } set efiSecureBootEnabled(value) { this._efiSecureBootEnabled = value; } resetEfiSecureBootEnabled() { this._efiSecureBootEnabled = undefined; } // Temporarily expose input value. Use with caution. get efiSecureBootEnabledInput() { return this._efiSecureBootEnabled; } get enableDiskUuid() { return this.getBooleanAttribute('enable_disk_uuid'); } set enableDiskUuid(value) { this._enableDiskUuid = value; } resetEnableDiskUuid() { this._enableDiskUuid = undefined; } // Temporarily expose input value. Use with caution. get enableDiskUuidInput() { return this._enableDiskUuid; } get enableLogging() { return this.getBooleanAttribute('enable_logging'); } set enableLogging(value) { this._enableLogging = value; } resetEnableLogging() { this._enableLogging = undefined; } // Temporarily expose input value. Use with caution. get enableLoggingInput() { return this._enableLogging; } get eptRviMode() { return this.getStringAttribute('ept_rvi_mode'); } set eptRviMode(value) { this._eptRviMode = value; } resetEptRviMode() { this._eptRviMode = undefined; } // Temporarily expose input value. Use with caution. get eptRviModeInput() { return this._eptRviMode; } get extraConfig() { return this.getStringMapAttribute('extra_config'); } set extraConfig(value) { this._extraConfig = value; } resetExtraConfig() { this._extraConfig = undefined; } // Temporarily expose input value. Use with caution. get extraConfigInput() { return this._extraConfig; } get extraConfigRebootRequired() { return this.getBooleanAttribute('extra_config_reboot_required'); } set extraConfigRebootRequired(value) { this._extraConfigRebootRequired = value; } resetExtraConfigRebootRequired() { this._extraConfigRebootRequired = undefined; } // Temporarily expose input value. Use with caution. get extraConfigRebootRequiredInput() { return this._extraConfigRebootRequired; } get firmware() { return this.getStringAttribute('firmware'); } set firmware(value) { this._firmware = value; } resetFirmware() { this._firmware = undefined; } // Temporarily expose input value. Use with caution. get firmwareInput() { return this._firmware; } get folder() { return this.getStringAttribute('folder'); } set folder(value) { this._folder = value; } resetFolder() { this._folder = undefined; } // Temporarily expose input value. Use with caution. get folderInput() { return this._folder; } get guestId() { return this.getStringAttribute('guest_id'); } set guestId(value) { this._guestId = value; } resetGuestId() { this._guestId = undefined; } // Temporarily expose input value. Use with caution. get guestIdInput() { return this._guestId; } // guest_ip_addresses - computed: true, optional: false, required: false get guestIpAddresses() { return this.getListAttribute('guest_ip_addresses'); } get hardwareVersion() { return this.getNumberAttribute('hardware_version'); } set hardwareVersion(value) { this._hardwareVersion = value; } resetHardwareVersion() { this._hardwareVersion = undefined; } // Temporarily expose input value. Use with caution. get hardwareVersionInput() { return this._hardwareVersion; } get hvMode() { return this.getStringAttribute('hv_mode'); } set hvMode(value) { this._hvMode = value; } resetHvMode() { this._hvMode = undefined; } // Temporarily expose input value. Use with caution. get hvModeInput() { return this._hvMode; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get ideControllerScanCount() { return this.getNumberAttribute('ide_controller_scan_count'); } set ideControllerScanCount(value) { this._ideControllerScanCount = value; } resetIdeControllerScanCount() { this._ideControllerScanCount = undefined; } // Temporarily expose input value. Use with caution. get ideControllerScanCountInput() { return this._ideControllerScanCount; } // instance_uuid - computed: true, optional: false, required: false get instanceUuid() { return this.getStringAttribute('instance_uuid'); } get latencySensitivity() { return this.getStringAttribute('latency_sensitivity'); } set latencySensitivity(value) { this._latencySensitivity = value; } resetLatencySensitivity() { this._latencySensitivity = undefined; } // Temporarily expose input value. Use with caution. get latencySensitivityInput() { return this._latencySensitivity; } get memory() { return this.getNumberAttribute('memory'); } set memory(value) { this._memory = value; } resetMemory() { this._memory = undefined; } // Temporarily expose input value. Use with caution. get memoryInput() { return this._memory; } get memoryHotAddEnabled() { return this.getBooleanAttribute('memory_hot_add_enabled'); } set memoryHotAddEnabled(value) { this._memoryHotAddEnabled = value; } resetMemoryHotAddEnabled() { this._memoryHotAddEnabled = undefined; } // Temporarily expose input value. Use with caution. get memoryHotAddEnabledInput() { return this._memoryHotAddEnabled; } get memoryLimit() { return this.getNumberAttribute('memory_limit'); } set memoryLimit(value) { this._memoryLimit = value; } resetMemoryLimit() { this._memoryLimit = undefined; } // Temporarily expose input value. Use with caution. get memoryLimitInput() { return this._memoryLimit; } get memoryReservation() { return this.getNumberAttribute('memory_reservation'); } set memoryReservation(value) { this._memoryReservation = value; } resetMemoryReservation() { this._memoryReservation = undefined; } // Temporarily expose input value. Use with caution. get memoryReservationInput() { return this._memoryReservation; } get memoryReservationLockedToMax() { return this.getBooleanAttribute('memory_reservation_locked_to_max'); } set memoryReservationLockedToMax(value) { this._memoryReservationLockedToMax = value; } resetMemoryReservationLockedToMax() { this._memoryReservationLockedToMax = undefined; } // Temporarily expose input value. Use with caution. get memoryReservationLockedToMaxInput() { return this._memoryReservationLockedToMax; } get memoryShareCount() { return this.getNumberAttribute('memory_share_count'); } set memoryShareCount(value) { this._memoryShareCount = value; } resetMemoryShareCount() { this._memoryShareCount = undefined; } // Temporarily expose input value. Use with caution. get memoryShareCountInput() { return this._memoryShareCount; } get memoryShareLevel() { return this.getStringAttribute('memory_share_level'); } set memoryShareLevel(value) { this._memoryShareLevel = value; } resetMemoryShareLevel() { this._memoryShareLevel = undefined; } // Temporarily expose input value. Use with caution. get memoryShareLevelInput() { return this._memoryShareLevel; } get moid() { return this.getStringAttribute('moid'); } set moid(value) { this._moid = value; } resetMoid() { this._moid = undefined; } // Temporarily expose input value. Use with caution. get moidInput() { return this._moid; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get nestedHvEnabled() { return this.getBooleanAttribute('nested_hv_enabled'); } set nestedHvEnabled(value) { this._nestedHvEnabled = value; } resetNestedHvEnabled() { this._nestedHvEnabled = undefined; } // Temporarily expose input value. Use with caution. get nestedHvEnabledInput() { return this._nestedHvEnabled; } // network_interface_types - computed: true, optional: false, required: false get networkInterfaceTypes() { return this.getListAttribute('network_interface_types'); } get networkInterfaces() { return this._networkInterfaces; } get numCoresPerSocket() { return this.getNumberAttribute('num_cores_per_socket'); } set numCoresPerSocket(value) { this._numCoresPerSocket = value; } resetNumCoresPerSocket() { this._numCoresPerSocket = undefined; } // Temporarily expose input value. Use with caution. get numCoresPerSocketInput() { return this._numCoresPerSocket; } get numCpus() { return this.getNumberAttribute('num_cpus'); } set numCpus(value) { this._numCpus = value; } resetNumCpus() { this._numCpus = undefined; } // Temporarily expose input value. Use with caution. get numCpusInput() { return this._numCpus; } get nvmeControllerScanCount() { return this.getNumberAttribute('nvme_controller_scan_count'); } set nvmeControllerScanCount(value) { this._nvmeControllerScanCount = value; } resetNvmeControllerScanCount() { this._nvmeControllerScanCount = undefined; } // Temporarily expose input value. Use with caution. get nvmeControllerScanCountInput() { return this._nvmeControllerScanCount; } get replaceTrigger() { return this.getStringAttribute('replace_trigger'); } set replaceTrigger(value) { this._replaceTrigger = value; } resetReplaceTrigger() { this._replaceTrigger = undefined; } // Temporarily expose input value. Use with caution. get replaceTriggerInput() { return this._replaceTrigger; } get runToolsScriptsAfterPowerOn() { return this.getBooleanAttribute('run_tools_scripts_after_power_on'); } set runToolsScriptsAfterPowerOn(value) { this._runToolsScriptsAfterPowerOn = value; } resetRunToolsScriptsAfterPowerOn() { this._runToolsScriptsAfterPowerOn = undefined; } // Temporarily expose input value. Use with caution. get runToolsScriptsAfterPowerOnInput() { return this._runToolsScriptsAfterPowerOn; } get runToolsScriptsAfterResume() { return this.getBooleanAttribute('run_tools_scripts_after_resume'); } set runToolsScriptsAfterResume(value) { this._runToolsScriptsAfterResume = value; } resetRunToolsScriptsAfterResume() { this._runToolsScriptsAfterResume = undefined; } // Temporarily expose input value. Use with caution. get runToolsScriptsAfterResumeInput() { return this._runToolsScriptsAfterResume; } get runToolsScriptsBeforeGuestReboot() { return this.getBooleanAttribute('run_tools_scripts_before_guest_reboot'); } set runToolsScriptsBeforeGuestReboot(value) { this._runToolsScriptsBeforeGuestReboot = value; } resetRunToolsScriptsBeforeGuestReboot() { this._runToolsScriptsBeforeGuestReboot = undefined; } // Temporarily expose input value. Use with caution. get runToolsScriptsBeforeGuestRebootInput() { return this._runToolsScriptsBeforeGuestReboot; } get runToolsScriptsBeforeGuestShutdown() { return this.getBooleanAttribute('run_tools_scripts_before_guest_shutdown'); } set runToolsScriptsBeforeGuestShutdown(value) { this._runToolsScriptsBeforeGuestShutdown = value; } resetRunToolsScriptsBeforeGuestShutdown() { this._runToolsScriptsBeforeGuestShutdown = undefined; } // Temporarily expose input value. Use with caution. get runToolsScriptsBeforeGuestShutdownInput() { return this._runToolsScriptsBeforeGuestShutdown; } get runToolsScriptsBeforeGuestStandby() { return this.getBooleanAttribute('run_tools_scripts_before_guest_standby'); } set runToolsScriptsBeforeGuestStandby(value) { this._runToolsScriptsBeforeGuestStandby = value; } resetRunToolsScriptsBeforeGuestStandby() { this._runToolsScriptsBeforeGuestStandby = undefined; } // Temporarily expose input value. Use with caution. get runToolsScriptsBeforeGuestStandbyInput() { return this._runToolsScriptsBeforeGuestStandby; } get sataControllerScanCount() { return this.getNumberAttribute('sata_controller_scan_count'); } set sataControllerScanCount(value) { this._sataControllerScanCount = value; } resetSataControllerScanCount() { this._sataControllerScanCount = undefined; } // Temporarily expose input value. Use with caution. get sataControllerScanCountInput() { return this._sataControllerScanCount; } // scsi_bus_sharing - computed: true, optional: false, required: false get scsiBusSharing() { return this.getStringAttribute('scsi_bus_sharing'); } get scsiControllerScanCount() { return this.getNumberAttribute('scsi_controller_scan_count'); } set scsiControllerScanCount(value) { this._scsiControllerScanCount = value; } resetScsiControllerScanCount() { this._scsiControllerScanCount = undefined; } // Temporarily expose input value. Use with caution. get scsiControllerScanCountInput() { return this._scsiControllerScanCount; } // scsi_type - computed: true, optional: false, required: false get scsiType() { return this.getStringAttribute('scsi_type'); } get storagePolicyId() { return this.getStringAttribute('storage_policy_id'); } set storagePolicyId(value) { this._storagePolicyId = value; } resetStoragePolicyId() { this._storagePolicyId = undefined; } // Temporarily expose input value. Use with caution. get storagePolicyIdInput() { return this._storagePolicyId; } get swapPlacementPolicy() { return this.getStringAttribute('swap_placement_policy'); } set swapPlacementPolicy(value) { this._swapPlacementPolicy = value; } resetSwapPlacementPolicy() { this._swapPlacementPolicy = undefined; } // Temporarily expose input value. Use with caution. get swapPlacementPolicyInput() { return this._swapPlacementPolicy; } get syncTimeWithHost() { return this.getBooleanAttribute('sync_time_with_host'); } set syncTimeWithHost(value) { this._syncTimeWithHost = value; } resetSyncTimeWithHost() { this._syncTimeWithHost = undefined; } // Temporarily expose input value. Use with caution. get syncTimeWithHostInput() { return this._syncTimeWithHost; } get syncTimeWithHostPeriodically() { return this.getBooleanAttribute('sync_time_with_host_periodically'); } set syncTimeWithHostPeriodically(value) { this._syncTimeWithHostPeriodically = value; } resetSyncTimeWithHostPeriodically() { this._syncTimeWithHostPeriodically = undefined; } // Temporarily expose input value. Use with caution. get syncTimeWithHostPeriodicallyInput() { return this._syncTimeWithHostPeriodically; } get toolsUpgradePolicy() { return this.getStringAttribute('tools_upgrade_policy'); } set toolsUpgradePolicy(value) { this._toolsUpgradePolicy = value; } resetToolsUpgradePolicy() { this._toolsUpgradePolicy = undefined; } // Temporarily expose input value. Use with caution. get toolsUpgradePolicyInput() { return this._toolsUpgradePolicy; } get uuid() { return this.getStringAttribute('uuid'); } set uuid(value) { this._uuid = value; } resetUuid() { this._uuid = undefined; } // Temporarily expose input value. Use with caution. get uuidInput() { return this._uuid; } // vapp_transport - computed: true, optional: false, required: false get vappTransport() { return this.getListAttribute('vapp_transport'); } get vbsEnabled() { return this.getBooleanAttribute('vbs_enabled'); } set vbsEnabled(value) { this._vbsEnabled = value; } resetVbsEnabled() { this._vbsEnabled = undefined; } // Temporarily expose input value. Use with caution. get vbsEnabledInput() { return this._vbsEnabled; } // vtpm - computed: true, optional: false, required: false get vtpm() { return this.getBooleanAttribute('vtpm'); } get vvtdEnabled() { return this.getBooleanAttribute('vvtd_enabled'); } set vvtdEnabled(value) { this._vvtdEnabled = value; } resetVvtdEnabled() { this._vvtdEnabled = undefined; } // Temporarily expose input value. Use with caution. get vvtdEnabledInput() { return this._vvtdEnabled; } get vapp() { return this._vapp; } putVapp(value) { this._vapp.internalValue = value; } resetVapp() { this._vapp.internalValue = undefined; } // Temporarily expose input value. Use with caution. get vappInput() { return this._vapp.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { alternate_guest_name: cdktf.stringToTerraform(this._alternateGuestName), annotation: cdktf.stringToTerraform(this._annotation), boot_delay: cdktf.numberToTerraform(this._bootDelay), boot_retry_delay: cdktf.numberToTerraform(this._bootRetryDelay), boot_retry_enabled: cdktf.booleanToTerraform(this._bootRetryEnabled), cpu_hot_add_enabled: cdktf.booleanToTerraform(this._cpuHotAddEnabled), cpu_hot_remove_enabled: cdktf.booleanToTerraform(this._cpuHotRemoveEnabled), cpu_limit: cdktf.numberToTerraform(this._cpuLimit), cpu_performance_counters_enabled: cdktf.booleanToTerraform(this._cpuPerformanceCountersEnabled), cpu_reservation: cdktf.numberToTerraform(this._cpuReservation), cpu_share_count: cdktf.numberToTerraform(this._cpuShareCount), cpu_share_level: cdktf.stringToTerraform(this._cpuShareLevel), datacenter_id: cdktf.stringToTerraform(this._datacenterId), efi_secure_boot_enabled: cdktf.booleanToTerraform(this._efiSecureBootEnabled), enable_disk_uuid: cdktf.booleanToTerraform(this._enableDiskUuid), enable_logging: cdktf.booleanToTerraform(this._enableLogging), ept_rvi_mode: cdktf.stringToTerraform(this._eptRviMode), extra_config: cdktf.hashMapper(cdktf.stringToTerraform)(this._extraConfig), extra_config_reboot_required: cdktf.booleanToTerraform(this._extraConfigRebootRequired), firmware: cdktf.stringToTerraform(this._firmware), folder: cdktf.stringToTerraform(this._folder), guest_id: cdktf.stringToTerraform(this._guestId), hardware_version: cdktf.numberToTerraform(this._hardwareVersion), hv_mode: cdktf.stringToTerraform(this._hvMode), id: cdktf.stringToTerraform(this._id), ide_controller_scan_count: cdktf.numberToTerraform(this._ideControllerScanCount), latency_sensitivity: cdktf.stringToTerraform(this._latencySensitivity), memory: cdktf.numberToTerraform(this._memory), memory_hot_add_enabled: cdktf.booleanToTerraform(this._memoryHotAddEnabled), memory_limit: cdktf.numberToTerraform(this._memoryLimit), memory_reservation: cdktf.numberToTerraform(this._memoryReservation), memory_reservation_locked_to_max: cdktf.booleanToTerraform(this._memoryReservationLockedToMax), memory_share_count: cdktf.numberToTerraform(this._memoryShareCount), memory_share_level: cdktf.stringToTerraform(this._memoryShareLevel), moid: cdktf.stringToTerraform(this._moid), name: cdktf.stringToTerraform(this._name), nested_hv_enabled: cdktf.booleanToTerraform(this._nestedHvEnabled), num_cores_per_socket: cdktf.numberToTerraform(this._numCoresPerSocket), num_cpus: cdktf.numberToTerraform(this._numCpus), nvme_controller_scan_count: cdktf.numberToTerraform(this._nvmeControllerScanCount), replace_trigger: cdktf.stringToTerraform(this._replaceTrigger), run_tools_scripts_after_power_on: cdktf.booleanToTerraform(this._runToolsScriptsAfterPowerOn), run_tools_scripts_after_resume: cdktf.booleanToTerraform(this._runToolsScriptsAfterResume), run_tools_scripts_before_guest_reboot: cdktf.booleanToTerraform(this._runToolsScriptsBeforeGuestReboot), run_tools_scripts_before_guest_shutdown: cdktf.booleanToTerraform(this._runToolsScriptsBeforeGuestShutdown), run_tools_scripts_before_guest_standby: cdktf.booleanToTerraform(this._runToolsScriptsBeforeGuestStandby), sata_controller_scan_count: cdktf.numberToTerraform(this._sataControllerScanCount), scsi_controller_scan_count: cdktf.numberToTerraform(this._scsiControllerScanCount), storage_policy_id: cdktf.stringToTerraform(this._storagePolicyId), swap_placement_policy: cdktf.stringToTerraform(this._swapPlacementPolicy), sync_time_with_host: cdktf.booleanToTerraform(this._syncTimeWithHost), sync_time_with_host_periodically: cdktf.booleanToTerraform(this._syncTimeWithHostPeriodically), tools_upgrade_policy: cdktf.stringToTerraform(this._toolsUpgradePolicy), uuid: cdktf.stringToTerraform(this._uuid), vbs_enabled: cdktf.booleanToTerraform(this._vbsEnabled), vvtd_enabled: cdktf.booleanToTerraform(this._vvtdEnabled), vapp: dataVsphereVirtualMachineVappToTerraform(this._vapp.internalValue), }; } synthesizeHclAttributes() { const attrs = { alternate_guest_name: { value: cdktf.stringToHclTerraform(this._alternateGuestName), isBlock: false, type: "simple", storageClassType: "string", }, annotation: { value: cdktf.stringToHclTerraform(this._annotation), isBlock: false, type: "simple", storageClassType: "string", }, boot_delay: { value: cdktf.numberToHclTerraform(this._bootDelay), isBlock: false, type: "simple", storageClassType: "number", }, boot_retry_delay: { value: cdktf.numberToHclTerraform(this._bootRetryDelay), isBlock: false, type: "simple", storageClassType: "number", }, boot_retry_enabled: { value: cdktf.booleanToHclTerraform(this._bootRetryEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, cpu_hot_add_enabled: { value: cdktf.booleanToHclTerraform(this._cpuHotAddEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, cpu_hot_remove_enabled: { value: cdktf.booleanToHclTerraform(this._cpuHotRemoveEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, cpu_limit: { value: cdktf.numberToHclTerraform(this._cpuLimit), isBlock: false, type: "simple", storageClassType: "number", }, cpu_performance_counters_enabled: { value: cdktf.booleanToHclTerraform(this._cpuPerformanceCountersEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, cpu_reservation: { value: cdktf.numberToHclTerraform(this._cpuReservation), isBlock: false, type: "simple", storageClassType: "number", }, cpu_share_count: {