UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,012 lines 258 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkloadsSapSingleNodeVirtualInstance = exports.WorkloadsSapSingleNodeVirtualInstanceTimeoutsOutputReference = exports.workloadsSapSingleNodeVirtualInstanceTimeoutsToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceTimeoutsToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList = exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToTerraform = exports.WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference = exports.workloadsSapSingleNodeVirtualInstanceIdentityToHclTerraform = exports.workloadsSapSingleNodeVirtualInstanceIdentityToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function workloadsSapSingleNodeVirtualInstanceIdentityToTerraform(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.workloadsSapSingleNodeVirtualInstanceIdentityToTerraform = workloadsSapSingleNodeVirtualInstanceIdentityToTerraform; function workloadsSapSingleNodeVirtualInstanceIdentityToHclTerraform(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.workloadsSapSingleNodeVirtualInstanceIdentityToHclTerraform = workloadsSapSingleNodeVirtualInstanceIdentityToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference 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; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } 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.WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference = WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference; _a = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceIdentityOutputReference", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToTerraform(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 { number_of_disks: cdktf.numberToTerraform(struct.numberOfDisks), size_in_gb: cdktf.numberToTerraform(struct.sizeInGb), sku_name: cdktf.stringToTerraform(struct.skuName), volume_name: cdktf.stringToTerraform(struct.volumeName), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToHclTerraform(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 = { number_of_disks: { value: cdktf.numberToHclTerraform(struct.numberOfDisks), isBlock: false, type: "simple", storageClassType: "number", }, size_in_gb: { value: cdktf.numberToHclTerraform(struct.sizeInGb), isBlock: false, type: "simple", storageClassType: "number", }, sku_name: { value: cdktf.stringToHclTerraform(struct.skuName), isBlock: false, type: "simple", storageClassType: "string", }, volume_name: { value: cdktf.stringToHclTerraform(struct.volumeName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference 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._numberOfDisks !== undefined) { hasAnyValues = true; internalValueResult.numberOfDisks = this._numberOfDisks; } if (this._sizeInGb !== undefined) { hasAnyValues = true; internalValueResult.sizeInGb = this._sizeInGb; } if (this._skuName !== undefined) { hasAnyValues = true; internalValueResult.skuName = this._skuName; } if (this._volumeName !== undefined) { hasAnyValues = true; internalValueResult.volumeName = this._volumeName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._numberOfDisks = undefined; this._sizeInGb = undefined; this._skuName = undefined; this._volumeName = 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._numberOfDisks = value.numberOfDisks; this._sizeInGb = value.sizeInGb; this._skuName = value.skuName; this._volumeName = value.volumeName; } } get numberOfDisks() { return this.getNumberAttribute('number_of_disks'); } set numberOfDisks(value) { this._numberOfDisks = value; } // Temporarily expose input value. Use with caution. get numberOfDisksInput() { return this._numberOfDisks; } get sizeInGb() { return this.getNumberAttribute('size_in_gb'); } set sizeInGb(value) { this._sizeInGb = value; } // Temporarily expose input value. Use with caution. get sizeInGbInput() { return this._sizeInGb; } get skuName() { return this.getStringAttribute('sku_name'); } set skuName(value) { this._skuName = value; } // Temporarily expose input value. Use with caution. get skuNameInput() { return this._skuName; } get volumeName() { return this.getStringAttribute('volume_name'); } set volumeName(value) { this._volumeName = value; } // Temporarily expose input value. Use with caution. get volumeNameInput() { return this._volumeName; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference; _b = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference", version: "12.27.0" }; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList 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 WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList; _c = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList[_c] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationList", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToTerraform(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 { offer: cdktf.stringToTerraform(struct.offer), publisher: cdktf.stringToTerraform(struct.publisher), sku: cdktf.stringToTerraform(struct.sku), version: cdktf.stringToTerraform(struct.version), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToHclTerraform(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 = { offer: { value: cdktf.stringToHclTerraform(struct.offer), isBlock: false, type: "simple", storageClassType: "string", }, publisher: { value: cdktf.stringToHclTerraform(struct.publisher), isBlock: false, type: "simple", storageClassType: "string", }, sku: { value: cdktf.stringToHclTerraform(struct.sku), isBlock: false, type: "simple", storageClassType: "string", }, version: { value: cdktf.stringToHclTerraform(struct.version), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference 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._offer !== undefined) { hasAnyValues = true; internalValueResult.offer = this._offer; } if (this._publisher !== undefined) { hasAnyValues = true; internalValueResult.publisher = this._publisher; } if (this._sku !== undefined) { hasAnyValues = true; internalValueResult.sku = this._sku; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._offer = undefined; this._publisher = undefined; this._sku = undefined; this._version = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._offer = value.offer; this._publisher = value.publisher; this._sku = value.sku; this._version = value.version; } } get offer() { return this.getStringAttribute('offer'); } set offer(value) { this._offer = value; } // Temporarily expose input value. Use with caution. get offerInput() { return this._offer; } get publisher() { return this.getStringAttribute('publisher'); } set publisher(value) { this._publisher = value; } // Temporarily expose input value. Use with caution. get publisherInput() { return this._publisher; } get sku() { return this.getStringAttribute('sku'); } set sku(value) { this._sku = value; } // Temporarily expose input value. Use with caution. get skuInput() { return this._sku; } get version() { return this.getStringAttribute('version'); } set version(value) { this._version = value; } // Temporarily expose input value. Use with caution. get versionInput() { return this._version; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference; _d = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToTerraform(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_username: cdktf.stringToTerraform(struct.adminUsername), ssh_private_key: cdktf.stringToTerraform(struct.sshPrivateKey), ssh_public_key: cdktf.stringToTerraform(struct.sshPublicKey), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToHclTerraform(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_username: { value: cdktf.stringToHclTerraform(struct.adminUsername), isBlock: false, type: "simple", storageClassType: "string", }, ssh_private_key: { value: cdktf.stringToHclTerraform(struct.sshPrivateKey), isBlock: false, type: "simple", storageClassType: "string", }, ssh_public_key: { value: cdktf.stringToHclTerraform(struct.sshPublicKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference 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._adminUsername !== undefined) { hasAnyValues = true; internalValueResult.adminUsername = this._adminUsername; } if (this._sshPrivateKey !== undefined) { hasAnyValues = true; internalValueResult.sshPrivateKey = this._sshPrivateKey; } if (this._sshPublicKey !== undefined) { hasAnyValues = true; internalValueResult.sshPublicKey = this._sshPublicKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._adminUsername = undefined; this._sshPrivateKey = undefined; this._sshPublicKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adminUsername = value.adminUsername; this._sshPrivateKey = value.sshPrivateKey; this._sshPublicKey = value.sshPublicKey; } } 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 sshPrivateKey() { return this.getStringAttribute('ssh_private_key'); } set sshPrivateKey(value) { this._sshPrivateKey = value; } // Temporarily expose input value. Use with caution. get sshPrivateKeyInput() { return this._sshPrivateKey; } get sshPublicKey() { return this.getStringAttribute('ssh_public_key'); } set sshPublicKey(value) { this._sshPublicKey = value; } // Temporarily expose input value. Use with caution. get sshPublicKeyInput() { return this._sshPublicKey; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference; _e = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToTerraform(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 { virtual_machine_size: cdktf.stringToTerraform(struct.virtualMachineSize), image: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToTerraform(struct.image), os_profile: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToTerraform(struct.osProfile), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToHclTerraform(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 = { virtual_machine_size: { value: cdktf.stringToHclTerraform(struct.virtualMachineSize), isBlock: false, type: "simple", storageClassType: "string", }, image: { value: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageToHclTerraform(struct.image), isBlock: true, type: "list", storageClassType: "WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageList", }, os_profile: { value: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileToHclTerraform(struct.osProfile), isBlock: true, type: "list", storageClassType: "WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference 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; // image - computed: false, optional: false, required: true this._image = new WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationImageOutputReference(this, "image"); // os_profile - computed: false, optional: false, required: true this._osProfile = new WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOsProfileOutputReference(this, "os_profile"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._virtualMachineSize !== undefined) { hasAnyValues = true; internalValueResult.virtualMachineSize = this._virtualMachineSize; } if (this._image?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.image = this._image?.internalValue; } if (this._osProfile?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.osProfile = this._osProfile?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._virtualMachineSize = undefined; this._image.internalValue = undefined; this._osProfile.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._virtualMachineSize = value.virtualMachineSize; this._image.internalValue = value.image; this._osProfile.internalValue = value.osProfile; } } get virtualMachineSize() { return this.getStringAttribute('virtual_machine_size'); } set virtualMachineSize(value) { this._virtualMachineSize = value; } // Temporarily expose input value. Use with caution. get virtualMachineSizeInput() { return this._virtualMachineSize; } get image() { return this._image; } putImage(value) { this._image.internalValue = value; } // Temporarily expose input value. Use with caution. get imageInput() { return this._image.internalValue; } get osProfile() { return this._osProfile; } putOsProfile(value) { this._osProfile.internalValue = value; } // Temporarily expose input value. Use with caution. get osProfileInput() { return this._osProfile.internalValue; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference; _f = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationOutputReference", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToTerraform(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 { names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.names), volume_name: cdktf.stringToTerraform(struct.volumeName), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToHclTerraform(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 = { names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.names), isBlock: false, type: "list", storageClassType: "stringList", }, volume_name: { value: cdktf.stringToHclTerraform(struct.volumeName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference 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._names !== undefined) { hasAnyValues = true; internalValueResult.names = this._names; } if (this._volumeName !== undefined) { hasAnyValues = true; internalValueResult.volumeName = this._volumeName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._names = undefined; this._volumeName = 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._names = value.names; this._volumeName = value.volumeName; } } get names() { return this.getListAttribute('names'); } set names(value) { this._names = value; } // Temporarily expose input value. Use with caution. get namesInput() { return this._names; } get volumeName() { return this.getStringAttribute('volume_name'); } set volumeName(value) { this._volumeName = value; } // Temporarily expose input value. Use with caution. get volumeNameInput() { return this._volumeName; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference; _g = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference", version: "12.27.0" }; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList 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 WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList; _h = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList[_h] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToTerraform(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 { host_name: cdktf.stringToTerraform(struct.hostName), network_interface_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.networkInterfaceNames), os_disk_name: cdktf.stringToTerraform(struct.osDiskName), virtual_machine_name: cdktf.stringToTerraform(struct.virtualMachineName), data_disk: cdktf.listMapper(workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToTerraform, true)(struct.dataDisk), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToHclTerraform(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 = { host_name: { value: cdktf.stringToHclTerraform(struct.hostName), isBlock: false, type: "simple", storageClassType: "string", }, network_interface_names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.networkInterfaceNames), isBlock: false, type: "list", storageClassType: "stringList", }, os_disk_name: { value: cdktf.stringToHclTerraform(struct.osDiskName), isBlock: false, type: "simple", storageClassType: "string", }, virtual_machine_name: { value: cdktf.stringToHclTerraform(struct.virtualMachineName), isBlock: false, type: "simple", storageClassType: "string", }, data_disk: { value: cdktf.listMapperHcl(workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskToHclTerraform, true)(struct.dataDisk), isBlock: true, type: "set", storageClassType: "WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToHclTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToHclTerraform; class WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference 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; // data_disk - computed: false, optional: true, required: false this._dataDisk = new WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesDataDiskList(this, "data_disk", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._hostName !== undefined) { hasAnyValues = true; internalValueResult.hostName = this._hostName; } if (this._networkInterfaceNames !== undefined) { hasAnyValues = true; internalValueResult.networkInterfaceNames = this._networkInterfaceNames; } if (this._osDiskName !== undefined) { hasAnyValues = true; internalValueResult.osDiskName = this._osDiskName; } if (this._virtualMachineName !== undefined) { hasAnyValues = true; internalValueResult.virtualMachineName = this._virtualMachineName; } if (this._dataDisk?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dataDisk = this._dataDisk?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._hostName = undefined; this._networkInterfaceNames = undefined; this._osDiskName = undefined; this._virtualMachineName = undefined; this._dataDisk.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._hostName = value.hostName; this._networkInterfaceNames = value.networkInterfaceNames; this._osDiskName = value.osDiskName; this._virtualMachineName = value.virtualMachineName; this._dataDisk.internalValue = value.dataDisk; } } get hostName() { return this.getStringAttribute('host_name'); } set hostName(value) { this._hostName = value; } resetHostName() { this._hostName = undefined; } // Temporarily expose input value. Use with caution. get hostNameInput() { return this._hostName; } get networkInterfaceNames() { return this.getListAttribute('network_interface_names'); } set networkInterfaceNames(value) { this._networkInterfaceNames = value; } resetNetworkInterfaceNames() { this._networkInterfaceNames = undefined; } // Temporarily expose input value. Use with caution. get networkInterfaceNamesInput() { return this._networkInterfaceNames; } get osDiskName() { return this.getStringAttribute('os_disk_name'); } set osDiskName(value) { this._osDiskName = value; } resetOsDiskName() { this._osDiskName = undefined; } // Temporarily expose input value. Use with caution. get osDiskNameInput() { return this._osDiskName; } get virtualMachineName() { return this.getStringAttribute('virtual_machine_name'); } set virtualMachineName(value) { this._virtualMachineName = value; } resetVirtualMachineName() { this._virtualMachineName = undefined; } // Temporarily expose input value. Use with caution. get virtualMachineNameInput() { return this._virtualMachineName; } get dataDisk() { return this._dataDisk; } putDataDisk(value) { this._dataDisk.internalValue = value; } resetDataDisk() { this._dataDisk.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dataDiskInput() { return this._dataDisk.internalValue; } } exports.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference = WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference; _j = JSII_RTTI_SYMBOL_1; WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.workloadsSapSingleNodeVirtualInstance.WorkloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesOutputReference", version: "12.27.0" }; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToTerraform(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 { app_resource_group_name: cdktf.stringToTerraform(struct.appResourceGroupName), database_type: cdktf.stringToTerraform(struct.databaseType), secondary_ip_enabled: cdktf.booleanToTerraform(struct.secondaryIpEnabled), subnet_id: cdktf.stringToTerraform(struct.subnetId), disk_volume_configuration: cdktf.listMapper(workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationDiskVolumeConfigurationToTerraform, true)(struct.diskVolumeConfiguration), virtual_machine_configuration: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineConfigurationToTerraform(struct.virtualMachineConfiguration), virtual_machine_resource_names: workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationVirtualMachineResourceNamesToTerraform(struct.virtualMachineResourceNames), }; } exports.workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToTerraform = workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToTerraform; function workloadsSapSingleNodeVirtualInstanceSingleServerConfigurationToHclTerraform(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 = { app_resource_group_name: { value: cdktf.stringToHclTerraform(struct.appResourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, database_type: { value: cdktf.stringToHclTerraform(struct.databaseType), isBlock: false, type: "simple", storageClassType: "string", }, secondary_ip_enabled: { value: cdktf.booleanToHclTerr