UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,108 lines 435 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y; Object.defineProperty(exports, "__esModule", { value: true }); exports.virtualMachineStorageOsDiskToHclTerraform = exports.virtualMachineStorageOsDiskToTerraform = exports.VirtualMachineStorageImageReferenceOutputReference = exports.virtualMachineStorageImageReferenceToHclTerraform = exports.virtualMachineStorageImageReferenceToTerraform = exports.VirtualMachineStorageDataDiskList = exports.VirtualMachineStorageDataDiskOutputReference = exports.virtualMachineStorageDataDiskToHclTerraform = exports.virtualMachineStorageDataDiskToTerraform = exports.VirtualMachinePlanOutputReference = exports.virtualMachinePlanToHclTerraform = exports.virtualMachinePlanToTerraform = exports.VirtualMachineOsProfileWindowsConfigOutputReference = exports.virtualMachineOsProfileWindowsConfigToHclTerraform = exports.virtualMachineOsProfileWindowsConfigToTerraform = exports.VirtualMachineOsProfileWindowsConfigWinrmList = exports.VirtualMachineOsProfileWindowsConfigWinrmOutputReference = exports.virtualMachineOsProfileWindowsConfigWinrmToHclTerraform = exports.virtualMachineOsProfileWindowsConfigWinrmToTerraform = exports.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList = exports.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference = exports.virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToHclTerraform = exports.virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToTerraform = exports.VirtualMachineOsProfileSecretsList = exports.VirtualMachineOsProfileSecretsOutputReference = exports.virtualMachineOsProfileSecretsToHclTerraform = exports.virtualMachineOsProfileSecretsToTerraform = exports.VirtualMachineOsProfileSecretsVaultCertificatesList = exports.VirtualMachineOsProfileSecretsVaultCertificatesOutputReference = exports.virtualMachineOsProfileSecretsVaultCertificatesToHclTerraform = exports.virtualMachineOsProfileSecretsVaultCertificatesToTerraform = exports.VirtualMachineOsProfileLinuxConfigOutputReference = exports.virtualMachineOsProfileLinuxConfigToHclTerraform = exports.virtualMachineOsProfileLinuxConfigToTerraform = exports.VirtualMachineOsProfileLinuxConfigSshKeysList = exports.VirtualMachineOsProfileLinuxConfigSshKeysOutputReference = exports.virtualMachineOsProfileLinuxConfigSshKeysToHclTerraform = exports.virtualMachineOsProfileLinuxConfigSshKeysToTerraform = exports.VirtualMachineOsProfileOutputReference = exports.virtualMachineOsProfileToHclTerraform = exports.virtualMachineOsProfileToTerraform = exports.VirtualMachineIdentityOutputReference = exports.virtualMachineIdentityToHclTerraform = exports.virtualMachineIdentityToTerraform = exports.VirtualMachineBootDiagnosticsOutputReference = exports.virtualMachineBootDiagnosticsToHclTerraform = exports.virtualMachineBootDiagnosticsToTerraform = exports.VirtualMachineAdditionalCapabilitiesOutputReference = exports.virtualMachineAdditionalCapabilitiesToHclTerraform = exports.virtualMachineAdditionalCapabilitiesToTerraform = void 0; exports.VirtualMachine = exports.VirtualMachineTimeoutsOutputReference = exports.virtualMachineTimeoutsToHclTerraform = exports.virtualMachineTimeoutsToTerraform = exports.VirtualMachineStorageOsDiskOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function virtualMachineAdditionalCapabilitiesToTerraform(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 { ultra_ssd_enabled: cdktf.booleanToTerraform(struct.ultraSsdEnabled), }; } exports.virtualMachineAdditionalCapabilitiesToTerraform = virtualMachineAdditionalCapabilitiesToTerraform; function virtualMachineAdditionalCapabilitiesToHclTerraform(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 = { ultra_ssd_enabled: { value: cdktf.booleanToHclTerraform(struct.ultraSsdEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineAdditionalCapabilitiesToHclTerraform = virtualMachineAdditionalCapabilitiesToHclTerraform; class VirtualMachineAdditionalCapabilitiesOutputReference 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._ultraSsdEnabled !== undefined) { hasAnyValues = true; internalValueResult.ultraSsdEnabled = this._ultraSsdEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._ultraSsdEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._ultraSsdEnabled = value.ultraSsdEnabled; } } get ultraSsdEnabled() { return this.getBooleanAttribute('ultra_ssd_enabled'); } set ultraSsdEnabled(value) { this._ultraSsdEnabled = value; } // Temporarily expose input value. Use with caution. get ultraSsdEnabledInput() { return this._ultraSsdEnabled; } } exports.VirtualMachineAdditionalCapabilitiesOutputReference = VirtualMachineAdditionalCapabilitiesOutputReference; _a = JSII_RTTI_SYMBOL_1; VirtualMachineAdditionalCapabilitiesOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineAdditionalCapabilitiesOutputReference", version: "12.27.0" }; function virtualMachineBootDiagnosticsToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), storage_uri: cdktf.stringToTerraform(struct.storageUri), }; } exports.virtualMachineBootDiagnosticsToTerraform = virtualMachineBootDiagnosticsToTerraform; function virtualMachineBootDiagnosticsToHclTerraform(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 = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, storage_uri: { value: cdktf.stringToHclTerraform(struct.storageUri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineBootDiagnosticsToHclTerraform = virtualMachineBootDiagnosticsToHclTerraform; class VirtualMachineBootDiagnosticsOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._storageUri !== undefined) { hasAnyValues = true; internalValueResult.storageUri = this._storageUri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._storageUri = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._storageUri = value.storageUri; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get storageUri() { return this.getStringAttribute('storage_uri'); } set storageUri(value) { this._storageUri = value; } // Temporarily expose input value. Use with caution. get storageUriInput() { return this._storageUri; } } exports.VirtualMachineBootDiagnosticsOutputReference = VirtualMachineBootDiagnosticsOutputReference; _b = JSII_RTTI_SYMBOL_1; VirtualMachineBootDiagnosticsOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineBootDiagnosticsOutputReference", version: "12.27.0" }; function virtualMachineIdentityToTerraform(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 { identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.identityIds), type: cdktf.stringToTerraform(struct.type), }; } exports.virtualMachineIdentityToTerraform = virtualMachineIdentityToTerraform; function virtualMachineIdentityToHclTerraform(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 = { identity_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.identityIds), isBlock: false, type: "set", storageClassType: "stringList", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineIdentityToHclTerraform = virtualMachineIdentityToHclTerraform; class VirtualMachineIdentityOutputReference 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._identityIds !== undefined) { hasAnyValues = true; internalValueResult.identityIds = this._identityIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityIds = value.identityIds; this._type = value.type; } } get identityIds() { return cdktf.Fn.tolist(this.getListAttribute('identity_ids')); } set identityIds(value) { this._identityIds = value; } resetIdentityIds() { this._identityIds = undefined; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } // principal_id - computed: true, optional: false, required: false get principalId() { return this.getStringAttribute('principal_id'); } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.VirtualMachineIdentityOutputReference = VirtualMachineIdentityOutputReference; _c = JSII_RTTI_SYMBOL_1; VirtualMachineIdentityOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineIdentityOutputReference", version: "12.27.0" }; function virtualMachineOsProfileToTerraform(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 { admin_password: cdktf.stringToTerraform(struct.adminPassword), admin_username: cdktf.stringToTerraform(struct.adminUsername), computer_name: cdktf.stringToTerraform(struct.computerName), custom_data: cdktf.stringToTerraform(struct.customData), }; } exports.virtualMachineOsProfileToTerraform = virtualMachineOsProfileToTerraform; function virtualMachineOsProfileToHclTerraform(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 = { admin_password: { value: cdktf.stringToHclTerraform(struct.adminPassword), isBlock: false, type: "simple", storageClassType: "string", }, admin_username: { value: cdktf.stringToHclTerraform(struct.adminUsername), isBlock: false, type: "simple", storageClassType: "string", }, computer_name: { value: cdktf.stringToHclTerraform(struct.computerName), isBlock: false, type: "simple", storageClassType: "string", }, custom_data: { value: cdktf.stringToHclTerraform(struct.customData), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileToHclTerraform = virtualMachineOsProfileToHclTerraform; class VirtualMachineOsProfileOutputReference 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._adminPassword !== undefined) { hasAnyValues = true; internalValueResult.adminPassword = this._adminPassword; } if (this._adminUsername !== undefined) { hasAnyValues = true; internalValueResult.adminUsername = this._adminUsername; } if (this._computerName !== undefined) { hasAnyValues = true; internalValueResult.computerName = this._computerName; } if (this._customData !== undefined) { hasAnyValues = true; internalValueResult.customData = this._customData; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._adminPassword = undefined; this._adminUsername = undefined; this._computerName = undefined; this._customData = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adminPassword = value.adminPassword; this._adminUsername = value.adminUsername; this._computerName = value.computerName; this._customData = value.customData; } } get adminPassword() { return this.getStringAttribute('admin_password'); } set adminPassword(value) { this._adminPassword = value; } resetAdminPassword() { this._adminPassword = undefined; } // Temporarily expose input value. Use with caution. get adminPasswordInput() { return this._adminPassword; } get adminUsername() { return this.getStringAttribute('admin_username'); } set adminUsername(value) { this._adminUsername = value; } // Temporarily expose input value. Use with caution. get adminUsernameInput() { return this._adminUsername; } get computerName() { return this.getStringAttribute('computer_name'); } set computerName(value) { this._computerName = value; } // Temporarily expose input value. Use with caution. get computerNameInput() { return this._computerName; } get customData() { return this.getStringAttribute('custom_data'); } set customData(value) { this._customData = value; } resetCustomData() { this._customData = undefined; } // Temporarily expose input value. Use with caution. get customDataInput() { return this._customData; } } exports.VirtualMachineOsProfileOutputReference = VirtualMachineOsProfileOutputReference; _d = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileOutputReference", version: "12.27.0" }; function virtualMachineOsProfileLinuxConfigSshKeysToTerraform(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 { key_data: cdktf.stringToTerraform(struct.keyData), path: cdktf.stringToTerraform(struct.path), }; } exports.virtualMachineOsProfileLinuxConfigSshKeysToTerraform = virtualMachineOsProfileLinuxConfigSshKeysToTerraform; function virtualMachineOsProfileLinuxConfigSshKeysToHclTerraform(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 = { key_data: { value: cdktf.stringToHclTerraform(struct.keyData), isBlock: false, type: "simple", storageClassType: "string", }, path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileLinuxConfigSshKeysToHclTerraform = virtualMachineOsProfileLinuxConfigSshKeysToHclTerraform; class VirtualMachineOsProfileLinuxConfigSshKeysOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._keyData !== undefined) { hasAnyValues = true; internalValueResult.keyData = this._keyData; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._keyData = undefined; this._path = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._keyData = value.keyData; this._path = value.path; } } get keyData() { return this.getStringAttribute('key_data'); } set keyData(value) { this._keyData = value; } // Temporarily expose input value. Use with caution. get keyDataInput() { return this._keyData; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.VirtualMachineOsProfileLinuxConfigSshKeysOutputReference = VirtualMachineOsProfileLinuxConfigSshKeysOutputReference; _e = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileLinuxConfigSshKeysOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileLinuxConfigSshKeysOutputReference", version: "12.27.0" }; class VirtualMachineOsProfileLinuxConfigSshKeysList 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 VirtualMachineOsProfileLinuxConfigSshKeysOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineOsProfileLinuxConfigSshKeysList = VirtualMachineOsProfileLinuxConfigSshKeysList; _f = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileLinuxConfigSshKeysList[_f] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileLinuxConfigSshKeysList", version: "12.27.0" }; function virtualMachineOsProfileLinuxConfigToTerraform(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 { disable_password_authentication: cdktf.booleanToTerraform(struct.disablePasswordAuthentication), ssh_keys: cdktf.listMapper(virtualMachineOsProfileLinuxConfigSshKeysToTerraform, true)(struct.sshKeys), }; } exports.virtualMachineOsProfileLinuxConfigToTerraform = virtualMachineOsProfileLinuxConfigToTerraform; function virtualMachineOsProfileLinuxConfigToHclTerraform(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 = { disable_password_authentication: { value: cdktf.booleanToHclTerraform(struct.disablePasswordAuthentication), isBlock: false, type: "simple", storageClassType: "boolean", }, ssh_keys: { value: cdktf.listMapperHcl(virtualMachineOsProfileLinuxConfigSshKeysToHclTerraform, true)(struct.sshKeys), isBlock: true, type: "list", storageClassType: "VirtualMachineOsProfileLinuxConfigSshKeysList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileLinuxConfigToHclTerraform = virtualMachineOsProfileLinuxConfigToHclTerraform; class VirtualMachineOsProfileLinuxConfigOutputReference 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; // ssh_keys - computed: false, optional: true, required: false this._sshKeys = new VirtualMachineOsProfileLinuxConfigSshKeysList(this, "ssh_keys", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._disablePasswordAuthentication !== undefined) { hasAnyValues = true; internalValueResult.disablePasswordAuthentication = this._disablePasswordAuthentication; } if (this._sshKeys?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sshKeys = this._sshKeys?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._disablePasswordAuthentication = undefined; this._sshKeys.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._disablePasswordAuthentication = value.disablePasswordAuthentication; this._sshKeys.internalValue = value.sshKeys; } } get disablePasswordAuthentication() { return this.getBooleanAttribute('disable_password_authentication'); } set disablePasswordAuthentication(value) { this._disablePasswordAuthentication = value; } // Temporarily expose input value. Use with caution. get disablePasswordAuthenticationInput() { return this._disablePasswordAuthentication; } get sshKeys() { return this._sshKeys; } putSshKeys(value) { this._sshKeys.internalValue = value; } resetSshKeys() { this._sshKeys.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sshKeysInput() { return this._sshKeys.internalValue; } } exports.VirtualMachineOsProfileLinuxConfigOutputReference = VirtualMachineOsProfileLinuxConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileLinuxConfigOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileLinuxConfigOutputReference", version: "12.27.0" }; function virtualMachineOsProfileSecretsVaultCertificatesToTerraform(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 { certificate_store: cdktf.stringToTerraform(struct.certificateStore), certificate_url: cdktf.stringToTerraform(struct.certificateUrl), }; } exports.virtualMachineOsProfileSecretsVaultCertificatesToTerraform = virtualMachineOsProfileSecretsVaultCertificatesToTerraform; function virtualMachineOsProfileSecretsVaultCertificatesToHclTerraform(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 = { certificate_store: { value: cdktf.stringToHclTerraform(struct.certificateStore), isBlock: false, type: "simple", storageClassType: "string", }, certificate_url: { value: cdktf.stringToHclTerraform(struct.certificateUrl), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileSecretsVaultCertificatesToHclTerraform = virtualMachineOsProfileSecretsVaultCertificatesToHclTerraform; class VirtualMachineOsProfileSecretsVaultCertificatesOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._certificateStore !== undefined) { hasAnyValues = true; internalValueResult.certificateStore = this._certificateStore; } if (this._certificateUrl !== undefined) { hasAnyValues = true; internalValueResult.certificateUrl = this._certificateUrl; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._certificateStore = undefined; this._certificateUrl = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._certificateStore = value.certificateStore; this._certificateUrl = value.certificateUrl; } } get certificateStore() { return this.getStringAttribute('certificate_store'); } set certificateStore(value) { this._certificateStore = value; } resetCertificateStore() { this._certificateStore = undefined; } // Temporarily expose input value. Use with caution. get certificateStoreInput() { return this._certificateStore; } get certificateUrl() { return this.getStringAttribute('certificate_url'); } set certificateUrl(value) { this._certificateUrl = value; } // Temporarily expose input value. Use with caution. get certificateUrlInput() { return this._certificateUrl; } } exports.VirtualMachineOsProfileSecretsVaultCertificatesOutputReference = VirtualMachineOsProfileSecretsVaultCertificatesOutputReference; _h = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileSecretsVaultCertificatesOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileSecretsVaultCertificatesOutputReference", version: "12.27.0" }; class VirtualMachineOsProfileSecretsVaultCertificatesList 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 VirtualMachineOsProfileSecretsVaultCertificatesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineOsProfileSecretsVaultCertificatesList = VirtualMachineOsProfileSecretsVaultCertificatesList; _j = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileSecretsVaultCertificatesList[_j] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileSecretsVaultCertificatesList", version: "12.27.0" }; function virtualMachineOsProfileSecretsToTerraform(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 { source_vault_id: cdktf.stringToTerraform(struct.sourceVaultId), vault_certificates: cdktf.listMapper(virtualMachineOsProfileSecretsVaultCertificatesToTerraform, true)(struct.vaultCertificates), }; } exports.virtualMachineOsProfileSecretsToTerraform = virtualMachineOsProfileSecretsToTerraform; function virtualMachineOsProfileSecretsToHclTerraform(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 = { source_vault_id: { value: cdktf.stringToHclTerraform(struct.sourceVaultId), isBlock: false, type: "simple", storageClassType: "string", }, vault_certificates: { value: cdktf.listMapperHcl(virtualMachineOsProfileSecretsVaultCertificatesToHclTerraform, true)(struct.vaultCertificates), isBlock: true, type: "list", storageClassType: "VirtualMachineOsProfileSecretsVaultCertificatesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileSecretsToHclTerraform = virtualMachineOsProfileSecretsToHclTerraform; class VirtualMachineOsProfileSecretsOutputReference 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; // vault_certificates - computed: false, optional: true, required: false this._vaultCertificates = new VirtualMachineOsProfileSecretsVaultCertificatesList(this, "vault_certificates", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._sourceVaultId !== undefined) { hasAnyValues = true; internalValueResult.sourceVaultId = this._sourceVaultId; } if (this._vaultCertificates?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.vaultCertificates = this._vaultCertificates?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._sourceVaultId = undefined; this._vaultCertificates.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._sourceVaultId = value.sourceVaultId; this._vaultCertificates.internalValue = value.vaultCertificates; } } get sourceVaultId() { return this.getStringAttribute('source_vault_id'); } set sourceVaultId(value) { this._sourceVaultId = value; } // Temporarily expose input value. Use with caution. get sourceVaultIdInput() { return this._sourceVaultId; } get vaultCertificates() { return this._vaultCertificates; } putVaultCertificates(value) { this._vaultCertificates.internalValue = value; } resetVaultCertificates() { this._vaultCertificates.internalValue = undefined; } // Temporarily expose input value. Use with caution. get vaultCertificatesInput() { return this._vaultCertificates.internalValue; } } exports.VirtualMachineOsProfileSecretsOutputReference = VirtualMachineOsProfileSecretsOutputReference; _k = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileSecretsOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileSecretsOutputReference", version: "12.27.0" }; class VirtualMachineOsProfileSecretsList 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 VirtualMachineOsProfileSecretsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineOsProfileSecretsList = VirtualMachineOsProfileSecretsList; _l = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileSecretsList[_l] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileSecretsList", version: "12.27.0" }; function virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToTerraform(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 { component: cdktf.stringToTerraform(struct.component), content: cdktf.stringToTerraform(struct.content), pass: cdktf.stringToTerraform(struct.pass), setting_name: cdktf.stringToTerraform(struct.settingName), }; } exports.virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToTerraform = virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToTerraform; function virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToHclTerraform(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 = { component: { value: cdktf.stringToHclTerraform(struct.component), isBlock: false, type: "simple", storageClassType: "string", }, content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, pass: { value: cdktf.stringToHclTerraform(struct.pass), isBlock: false, type: "simple", storageClassType: "string", }, setting_name: { value: cdktf.stringToHclTerraform(struct.settingName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToHclTerraform = virtualMachineOsProfileWindowsConfigAdditionalUnattendConfigToHclTerraform; class VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._component !== undefined) { hasAnyValues = true; internalValueResult.component = this._component; } if (this._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._pass !== undefined) { hasAnyValues = true; internalValueResult.pass = this._pass; } if (this._settingName !== undefined) { hasAnyValues = true; internalValueResult.settingName = this._settingName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._component = undefined; this._content = undefined; this._pass = undefined; this._settingName = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._component = value.component; this._content = value.content; this._pass = value.pass; this._settingName = value.settingName; } } get component() { return this.getStringAttribute('component'); } set component(value) { this._component = value; } // Temporarily expose input value. Use with caution. get componentInput() { return this._component; } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get pass() { return this.getStringAttribute('pass'); } set pass(value) { this._pass = value; } // Temporarily expose input value. Use with caution. get passInput() { return this._pass; } get settingName() { return this.getStringAttribute('setting_name'); } set settingName(value) { this._settingName = value; } // Temporarily expose input value. Use with caution. get settingNameInput() { return this._settingName; } } exports.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference = VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference; _m = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference[_m] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference", version: "12.27.0" }; class VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList 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 VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList = VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList; _o = JSII_RTTI_SYMBOL_1; VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList[_o] = { fqn: "@cdktf/provider-azurerm.virtualMachine.VirtualMachineOsProfileWindowsConfigAdditionalUnattendConfigList", version: "12.27.0" }; function virtualMachineOsProfileWindowsConfigWinrmToTerraform(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: htt