UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,109 lines 162 kB
"use strict"; var _a, _b, _c, _d, _e, _f; Object.defineProperty(exports, "__esModule", { value: true }); exports.SiteRecoveryVmwareReplicatedVm = exports.SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference = exports.siteRecoveryVmwareReplicatedVmTimeoutsToHclTerraform = exports.siteRecoveryVmwareReplicatedVmTimeoutsToTerraform = exports.SiteRecoveryVmwareReplicatedVmNetworkInterfaceList = exports.SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference = exports.siteRecoveryVmwareReplicatedVmNetworkInterfaceToHclTerraform = exports.siteRecoveryVmwareReplicatedVmNetworkInterfaceToTerraform = exports.SiteRecoveryVmwareReplicatedVmManagedDiskList = exports.SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference = exports.siteRecoveryVmwareReplicatedVmManagedDiskToHclTerraform = exports.siteRecoveryVmwareReplicatedVmManagedDiskToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function siteRecoveryVmwareReplicatedVmManagedDiskToTerraform(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 { disk_id: cdktf.stringToTerraform(struct.diskId), log_storage_account_id: cdktf.stringToTerraform(struct.logStorageAccountId), target_disk_encryption_set_id: cdktf.stringToTerraform(struct.targetDiskEncryptionSetId), target_disk_type: cdktf.stringToTerraform(struct.targetDiskType), }; } exports.siteRecoveryVmwareReplicatedVmManagedDiskToTerraform = siteRecoveryVmwareReplicatedVmManagedDiskToTerraform; function siteRecoveryVmwareReplicatedVmManagedDiskToHclTerraform(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 = { disk_id: { value: cdktf.stringToHclTerraform(struct.diskId), isBlock: false, type: "simple", storageClassType: "string", }, log_storage_account_id: { value: cdktf.stringToHclTerraform(struct.logStorageAccountId), isBlock: false, type: "simple", storageClassType: "string", }, target_disk_encryption_set_id: { value: cdktf.stringToHclTerraform(struct.targetDiskEncryptionSetId), isBlock: false, type: "simple", storageClassType: "string", }, target_disk_type: { value: cdktf.stringToHclTerraform(struct.targetDiskType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.siteRecoveryVmwareReplicatedVmManagedDiskToHclTerraform = siteRecoveryVmwareReplicatedVmManagedDiskToHclTerraform; class SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference 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._diskId !== undefined) { hasAnyValues = true; internalValueResult.diskId = this._diskId; } if (this._logStorageAccountId !== undefined) { hasAnyValues = true; internalValueResult.logStorageAccountId = this._logStorageAccountId; } if (this._targetDiskEncryptionSetId !== undefined) { hasAnyValues = true; internalValueResult.targetDiskEncryptionSetId = this._targetDiskEncryptionSetId; } if (this._targetDiskType !== undefined) { hasAnyValues = true; internalValueResult.targetDiskType = this._targetDiskType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._diskId = undefined; this._logStorageAccountId = undefined; this._targetDiskEncryptionSetId = undefined; this._targetDiskType = 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._diskId = value.diskId; this._logStorageAccountId = value.logStorageAccountId; this._targetDiskEncryptionSetId = value.targetDiskEncryptionSetId; this._targetDiskType = value.targetDiskType; } } get diskId() { return this.getStringAttribute('disk_id'); } set diskId(value) { this._diskId = value; } // Temporarily expose input value. Use with caution. get diskIdInput() { return this._diskId; } get logStorageAccountId() { return this.getStringAttribute('log_storage_account_id'); } set logStorageAccountId(value) { this._logStorageAccountId = value; } resetLogStorageAccountId() { this._logStorageAccountId = undefined; } // Temporarily expose input value. Use with caution. get logStorageAccountIdInput() { return this._logStorageAccountId; } get targetDiskEncryptionSetId() { return this.getStringAttribute('target_disk_encryption_set_id'); } set targetDiskEncryptionSetId(value) { this._targetDiskEncryptionSetId = value; } resetTargetDiskEncryptionSetId() { this._targetDiskEncryptionSetId = undefined; } // Temporarily expose input value. Use with caution. get targetDiskEncryptionSetIdInput() { return this._targetDiskEncryptionSetId; } get targetDiskType() { return this.getStringAttribute('target_disk_type'); } set targetDiskType(value) { this._targetDiskType = value; } // Temporarily expose input value. Use with caution. get targetDiskTypeInput() { return this._targetDiskType; } } exports.SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference = SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference; _a = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference", version: "12.27.0" }; class SiteRecoveryVmwareReplicatedVmManagedDiskList 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 SiteRecoveryVmwareReplicatedVmManagedDiskOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SiteRecoveryVmwareReplicatedVmManagedDiskList = SiteRecoveryVmwareReplicatedVmManagedDiskList; _b = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVmManagedDiskList[_b] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVmManagedDiskList", version: "12.27.0" }; function siteRecoveryVmwareReplicatedVmNetworkInterfaceToTerraform(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 { is_primary: cdktf.booleanToTerraform(struct.isPrimary), source_mac_address: cdktf.stringToTerraform(struct.sourceMacAddress), target_static_ip: cdktf.stringToTerraform(struct.targetStaticIp), target_subnet_name: cdktf.stringToTerraform(struct.targetSubnetName), test_subnet_name: cdktf.stringToTerraform(struct.testSubnetName), }; } exports.siteRecoveryVmwareReplicatedVmNetworkInterfaceToTerraform = siteRecoveryVmwareReplicatedVmNetworkInterfaceToTerraform; function siteRecoveryVmwareReplicatedVmNetworkInterfaceToHclTerraform(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 = { is_primary: { value: cdktf.booleanToHclTerraform(struct.isPrimary), isBlock: false, type: "simple", storageClassType: "boolean", }, source_mac_address: { value: cdktf.stringToHclTerraform(struct.sourceMacAddress), isBlock: false, type: "simple", storageClassType: "string", }, target_static_ip: { value: cdktf.stringToHclTerraform(struct.targetStaticIp), isBlock: false, type: "simple", storageClassType: "string", }, target_subnet_name: { value: cdktf.stringToHclTerraform(struct.targetSubnetName), isBlock: false, type: "simple", storageClassType: "string", }, test_subnet_name: { value: cdktf.stringToHclTerraform(struct.testSubnetName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.siteRecoveryVmwareReplicatedVmNetworkInterfaceToHclTerraform = siteRecoveryVmwareReplicatedVmNetworkInterfaceToHclTerraform; class SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference 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._isPrimary !== undefined) { hasAnyValues = true; internalValueResult.isPrimary = this._isPrimary; } if (this._sourceMacAddress !== undefined) { hasAnyValues = true; internalValueResult.sourceMacAddress = this._sourceMacAddress; } if (this._targetStaticIp !== undefined) { hasAnyValues = true; internalValueResult.targetStaticIp = this._targetStaticIp; } if (this._targetSubnetName !== undefined) { hasAnyValues = true; internalValueResult.targetSubnetName = this._targetSubnetName; } if (this._testSubnetName !== undefined) { hasAnyValues = true; internalValueResult.testSubnetName = this._testSubnetName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isPrimary = undefined; this._sourceMacAddress = undefined; this._targetStaticIp = undefined; this._targetSubnetName = undefined; this._testSubnetName = 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._isPrimary = value.isPrimary; this._sourceMacAddress = value.sourceMacAddress; this._targetStaticIp = value.targetStaticIp; this._targetSubnetName = value.targetSubnetName; this._testSubnetName = value.testSubnetName; } } get isPrimary() { return this.getBooleanAttribute('is_primary'); } set isPrimary(value) { this._isPrimary = value; } // Temporarily expose input value. Use with caution. get isPrimaryInput() { return this._isPrimary; } get sourceMacAddress() { return this.getStringAttribute('source_mac_address'); } set sourceMacAddress(value) { this._sourceMacAddress = value; } // Temporarily expose input value. Use with caution. get sourceMacAddressInput() { return this._sourceMacAddress; } get targetStaticIp() { return this.getStringAttribute('target_static_ip'); } set targetStaticIp(value) { this._targetStaticIp = value; } resetTargetStaticIp() { this._targetStaticIp = undefined; } // Temporarily expose input value. Use with caution. get targetStaticIpInput() { return this._targetStaticIp; } get targetSubnetName() { return this.getStringAttribute('target_subnet_name'); } set targetSubnetName(value) { this._targetSubnetName = value; } resetTargetSubnetName() { this._targetSubnetName = undefined; } // Temporarily expose input value. Use with caution. get targetSubnetNameInput() { return this._targetSubnetName; } get testSubnetName() { return this.getStringAttribute('test_subnet_name'); } set testSubnetName(value) { this._testSubnetName = value; } resetTestSubnetName() { this._testSubnetName = undefined; } // Temporarily expose input value. Use with caution. get testSubnetNameInput() { return this._testSubnetName; } } exports.SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference = SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference; _c = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference", version: "12.27.0" }; class SiteRecoveryVmwareReplicatedVmNetworkInterfaceList 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 SiteRecoveryVmwareReplicatedVmNetworkInterfaceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SiteRecoveryVmwareReplicatedVmNetworkInterfaceList = SiteRecoveryVmwareReplicatedVmNetworkInterfaceList; _d = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVmNetworkInterfaceList[_d] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVmNetworkInterfaceList", version: "12.27.0" }; function siteRecoveryVmwareReplicatedVmTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.siteRecoveryVmwareReplicatedVmTimeoutsToTerraform = siteRecoveryVmwareReplicatedVmTimeoutsToTerraform; function siteRecoveryVmwareReplicatedVmTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, read: { value: cdktf.stringToHclTerraform(struct.read), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.siteRecoveryVmwareReplicatedVmTimeoutsToHclTerraform = siteRecoveryVmwareReplicatedVmTimeoutsToHclTerraform; class SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._read = undefined; this._update = 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._create = value.create; this._delete = value.delete; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference = SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference; _e = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/site_recovery_vmware_replicated_vm azurerm_site_recovery_vmware_replicated_vm} */ class SiteRecoveryVmwareReplicatedVm extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a SiteRecoveryVmwareReplicatedVm 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 SiteRecoveryVmwareReplicatedVm to import * @param importFromId The id of the existing SiteRecoveryVmwareReplicatedVm that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/site_recovery_vmware_replicated_vm#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the SiteRecoveryVmwareReplicatedVm to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_site_recovery_vmware_replicated_vm", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/site_recovery_vmware_replicated_vm azurerm_site_recovery_vmware_replicated_vm} Resource * * @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 SiteRecoveryVmwareReplicatedVmConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_site_recovery_vmware_replicated_vm', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // managed_disk - computed: false, optional: true, required: false this._managedDisk = new SiteRecoveryVmwareReplicatedVmManagedDiskList(this, "managed_disk", false); // network_interface - computed: false, optional: true, required: false this._networkInterface = new SiteRecoveryVmwareReplicatedVmNetworkInterfaceList(this, "network_interface", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new SiteRecoveryVmwareReplicatedVmTimeoutsOutputReference(this, "timeouts"); this._applianceName = config.applianceName; this._defaultLogStorageAccountId = config.defaultLogStorageAccountId; this._defaultRecoveryDiskType = config.defaultRecoveryDiskType; this._defaultTargetDiskEncryptionSetId = config.defaultTargetDiskEncryptionSetId; this._id = config.id; this._licenseType = config.licenseType; this._multiVmGroupName = config.multiVmGroupName; this._name = config.name; this._physicalServerCredentialName = config.physicalServerCredentialName; this._recoveryReplicationPolicyId = config.recoveryReplicationPolicyId; this._recoveryVaultId = config.recoveryVaultId; this._sourceVmName = config.sourceVmName; this._targetAvailabilitySetId = config.targetAvailabilitySetId; this._targetBootDiagnosticsStorageAccountId = config.targetBootDiagnosticsStorageAccountId; this._targetNetworkId = config.targetNetworkId; this._targetProximityPlacementGroupId = config.targetProximityPlacementGroupId; this._targetResourceGroupId = config.targetResourceGroupId; this._targetVmName = config.targetVmName; this._targetVmSize = config.targetVmSize; this._targetZone = config.targetZone; this._testNetworkId = config.testNetworkId; this._managedDisk.internalValue = config.managedDisk; this._networkInterface.internalValue = config.networkInterface; this._timeouts.internalValue = config.timeouts; } get applianceName() { return this.getStringAttribute('appliance_name'); } set applianceName(value) { this._applianceName = value; } // Temporarily expose input value. Use with caution. get applianceNameInput() { return this._applianceName; } get defaultLogStorageAccountId() { return this.getStringAttribute('default_log_storage_account_id'); } set defaultLogStorageAccountId(value) { this._defaultLogStorageAccountId = value; } resetDefaultLogStorageAccountId() { this._defaultLogStorageAccountId = undefined; } // Temporarily expose input value. Use with caution. get defaultLogStorageAccountIdInput() { return this._defaultLogStorageAccountId; } get defaultRecoveryDiskType() { return this.getStringAttribute('default_recovery_disk_type'); } set defaultRecoveryDiskType(value) { this._defaultRecoveryDiskType = value; } resetDefaultRecoveryDiskType() { this._defaultRecoveryDiskType = undefined; } // Temporarily expose input value. Use with caution. get defaultRecoveryDiskTypeInput() { return this._defaultRecoveryDiskType; } get defaultTargetDiskEncryptionSetId() { return this.getStringAttribute('default_target_disk_encryption_set_id'); } set defaultTargetDiskEncryptionSetId(value) { this._defaultTargetDiskEncryptionSetId = value; } resetDefaultTargetDiskEncryptionSetId() { this._defaultTargetDiskEncryptionSetId = undefined; } // Temporarily expose input value. Use with caution. get defaultTargetDiskEncryptionSetIdInput() { return this._defaultTargetDiskEncryptionSetId; } 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 licenseType() { return this.getStringAttribute('license_type'); } set licenseType(value) { this._licenseType = value; } resetLicenseType() { this._licenseType = undefined; } // Temporarily expose input value. Use with caution. get licenseTypeInput() { return this._licenseType; } get multiVmGroupName() { return this.getStringAttribute('multi_vm_group_name'); } set multiVmGroupName(value) { this._multiVmGroupName = value; } resetMultiVmGroupName() { this._multiVmGroupName = undefined; } // Temporarily expose input value. Use with caution. get multiVmGroupNameInput() { return this._multiVmGroupName; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get physicalServerCredentialName() { return this.getStringAttribute('physical_server_credential_name'); } set physicalServerCredentialName(value) { this._physicalServerCredentialName = value; } // Temporarily expose input value. Use with caution. get physicalServerCredentialNameInput() { return this._physicalServerCredentialName; } get recoveryReplicationPolicyId() { return this.getStringAttribute('recovery_replication_policy_id'); } set recoveryReplicationPolicyId(value) { this._recoveryReplicationPolicyId = value; } // Temporarily expose input value. Use with caution. get recoveryReplicationPolicyIdInput() { return this._recoveryReplicationPolicyId; } get recoveryVaultId() { return this.getStringAttribute('recovery_vault_id'); } set recoveryVaultId(value) { this._recoveryVaultId = value; } // Temporarily expose input value. Use with caution. get recoveryVaultIdInput() { return this._recoveryVaultId; } get sourceVmName() { return this.getStringAttribute('source_vm_name'); } set sourceVmName(value) { this._sourceVmName = value; } // Temporarily expose input value. Use with caution. get sourceVmNameInput() { return this._sourceVmName; } get targetAvailabilitySetId() { return this.getStringAttribute('target_availability_set_id'); } set targetAvailabilitySetId(value) { this._targetAvailabilitySetId = value; } resetTargetAvailabilitySetId() { this._targetAvailabilitySetId = undefined; } // Temporarily expose input value. Use with caution. get targetAvailabilitySetIdInput() { return this._targetAvailabilitySetId; } get targetBootDiagnosticsStorageAccountId() { return this.getStringAttribute('target_boot_diagnostics_storage_account_id'); } set targetBootDiagnosticsStorageAccountId(value) { this._targetBootDiagnosticsStorageAccountId = value; } resetTargetBootDiagnosticsStorageAccountId() { this._targetBootDiagnosticsStorageAccountId = undefined; } // Temporarily expose input value. Use with caution. get targetBootDiagnosticsStorageAccountIdInput() { return this._targetBootDiagnosticsStorageAccountId; } get targetNetworkId() { return this.getStringAttribute('target_network_id'); } set targetNetworkId(value) { this._targetNetworkId = value; } resetTargetNetworkId() { this._targetNetworkId = undefined; } // Temporarily expose input value. Use with caution. get targetNetworkIdInput() { return this._targetNetworkId; } get targetProximityPlacementGroupId() { return this.getStringAttribute('target_proximity_placement_group_id'); } set targetProximityPlacementGroupId(value) { this._targetProximityPlacementGroupId = value; } resetTargetProximityPlacementGroupId() { this._targetProximityPlacementGroupId = undefined; } // Temporarily expose input value. Use with caution. get targetProximityPlacementGroupIdInput() { return this._targetProximityPlacementGroupId; } get targetResourceGroupId() { return this.getStringAttribute('target_resource_group_id'); } set targetResourceGroupId(value) { this._targetResourceGroupId = value; } // Temporarily expose input value. Use with caution. get targetResourceGroupIdInput() { return this._targetResourceGroupId; } get targetVmName() { return this.getStringAttribute('target_vm_name'); } set targetVmName(value) { this._targetVmName = value; } // Temporarily expose input value. Use with caution. get targetVmNameInput() { return this._targetVmName; } get targetVmSize() { return this.getStringAttribute('target_vm_size'); } set targetVmSize(value) { this._targetVmSize = value; } resetTargetVmSize() { this._targetVmSize = undefined; } // Temporarily expose input value. Use with caution. get targetVmSizeInput() { return this._targetVmSize; } get targetZone() { return this.getStringAttribute('target_zone'); } set targetZone(value) { this._targetZone = value; } resetTargetZone() { this._targetZone = undefined; } // Temporarily expose input value. Use with caution. get targetZoneInput() { return this._targetZone; } get testNetworkId() { return this.getStringAttribute('test_network_id'); } set testNetworkId(value) { this._testNetworkId = value; } resetTestNetworkId() { this._testNetworkId = undefined; } // Temporarily expose input value. Use with caution. get testNetworkIdInput() { return this._testNetworkId; } get managedDisk() { return this._managedDisk; } putManagedDisk(value) { this._managedDisk.internalValue = value; } resetManagedDisk() { this._managedDisk.internalValue = undefined; } // Temporarily expose input value. Use with caution. get managedDiskInput() { return this._managedDisk.internalValue; } get networkInterface() { return this._networkInterface; } putNetworkInterface(value) { this._networkInterface.internalValue = value; } resetNetworkInterface() { this._networkInterface.internalValue = undefined; } // Temporarily expose input value. Use with caution. get networkInterfaceInput() { return this._networkInterface.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { appliance_name: cdktf.stringToTerraform(this._applianceName), default_log_storage_account_id: cdktf.stringToTerraform(this._defaultLogStorageAccountId), default_recovery_disk_type: cdktf.stringToTerraform(this._defaultRecoveryDiskType), default_target_disk_encryption_set_id: cdktf.stringToTerraform(this._defaultTargetDiskEncryptionSetId), id: cdktf.stringToTerraform(this._id), license_type: cdktf.stringToTerraform(this._licenseType), multi_vm_group_name: cdktf.stringToTerraform(this._multiVmGroupName), name: cdktf.stringToTerraform(this._name), physical_server_credential_name: cdktf.stringToTerraform(this._physicalServerCredentialName), recovery_replication_policy_id: cdktf.stringToTerraform(this._recoveryReplicationPolicyId), recovery_vault_id: cdktf.stringToTerraform(this._recoveryVaultId), source_vm_name: cdktf.stringToTerraform(this._sourceVmName), target_availability_set_id: cdktf.stringToTerraform(this._targetAvailabilitySetId), target_boot_diagnostics_storage_account_id: cdktf.stringToTerraform(this._targetBootDiagnosticsStorageAccountId), target_network_id: cdktf.stringToTerraform(this._targetNetworkId), target_proximity_placement_group_id: cdktf.stringToTerraform(this._targetProximityPlacementGroupId), target_resource_group_id: cdktf.stringToTerraform(this._targetResourceGroupId), target_vm_name: cdktf.stringToTerraform(this._targetVmName), target_vm_size: cdktf.stringToTerraform(this._targetVmSize), target_zone: cdktf.stringToTerraform(this._targetZone), test_network_id: cdktf.stringToTerraform(this._testNetworkId), managed_disk: cdktf.listMapper(siteRecoveryVmwareReplicatedVmManagedDiskToTerraform, true)(this._managedDisk.internalValue), network_interface: cdktf.listMapper(siteRecoveryVmwareReplicatedVmNetworkInterfaceToTerraform, true)(this._networkInterface.internalValue), timeouts: siteRecoveryVmwareReplicatedVmTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { appliance_name: { value: cdktf.stringToHclTerraform(this._applianceName), isBlock: false, type: "simple", storageClassType: "string", }, default_log_storage_account_id: { value: cdktf.stringToHclTerraform(this._defaultLogStorageAccountId), isBlock: false, type: "simple", storageClassType: "string", }, default_recovery_disk_type: { value: cdktf.stringToHclTerraform(this._defaultRecoveryDiskType), isBlock: false, type: "simple", storageClassType: "string", }, default_target_disk_encryption_set_id: { value: cdktf.stringToHclTerraform(this._defaultTargetDiskEncryptionSetId), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, license_type: { value: cdktf.stringToHclTerraform(this._licenseType), isBlock: false, type: "simple", storageClassType: "string", }, multi_vm_group_name: { value: cdktf.stringToHclTerraform(this._multiVmGroupName), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, physical_server_credential_name: { value: cdktf.stringToHclTerraform(this._physicalServerCredentialName), isBlock: false, type: "simple", storageClassType: "string", }, recovery_replication_policy_id: { value: cdktf.stringToHclTerraform(this._recoveryReplicationPolicyId), isBlock: false, type: "simple", storageClassType: "string", }, recovery_vault_id: { value: cdktf.stringToHclTerraform(this._recoveryVaultId), isBlock: false, type: "simple", storageClassType: "string", }, source_vm_name: { value: cdktf.stringToHclTerraform(this._sourceVmName), isBlock: false, type: "simple", storageClassType: "string", }, target_availability_set_id: { value: cdktf.stringToHclTerraform(this._targetAvailabilitySetId), isBlock: false, type: "simple", storageClassType: "string", }, target_boot_diagnostics_storage_account_id: { value: cdktf.stringToHclTerraform(this._targetBootDiagnosticsStorageAccountId), isBlock: false, type: "simple", storageClassType: "string", }, target_network_id: { value: cdktf.stringToHclTerraform(this._targetNetworkId), isBlock: false, type: "simple", storageClassType: "string", }, target_proximity_placement_group_id: { value: cdktf.stringToHclTerraform(this._targetProximityPlacementGroupId), isBlock: false, type: "simple", storageClassType: "string", }, target_resource_group_id: { value: cdktf.stringToHclTerraform(this._targetResourceGroupId), isBlock: false, type: "simple", storageClassType: "string", }, target_vm_name: { value: cdktf.stringToHclTerraform(this._targetVmName), isBlock: false, type: "simple", storageClassType: "string", }, target_vm_size: { value: cdktf.stringToHclTerraform(this._targetVmSize), isBlock: false, type: "simple", storageClassType: "string", }, target_zone: { value: cdktf.stringToHclTerraform(this._targetZone), isBlock: false, type: "simple", storageClassType: "string", }, test_network_id: { value: cdktf.stringToHclTerraform(this._testNetworkId), isBlock: false, type: "simple", storageClassType: "string", }, managed_disk: { value: cdktf.listMapperHcl(siteRecoveryVmwareReplicatedVmManagedDiskToHclTerraform, true)(this._managedDisk.internalValue), isBlock: true, type: "list", storageClassType: "SiteRecoveryVmwareReplicatedVmManagedDiskList", }, network_interface: { value: cdktf.listMapperHcl(siteRecoveryVmwareReplicatedVmNetworkInterfaceToHclTerraform, true)(this._networkInterface.internalValue), isBlock: true, type: "list", storageClassType: "SiteRecoveryVmwareReplicatedVmNetworkInterfaceList", }, timeouts: { value: siteRecoveryVmwareReplicatedVmTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "SiteRecoveryVmwareReplicatedVmTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.SiteRecoveryVmwareReplicatedVm = SiteRecoveryVmwareReplicatedVm; _f = JSII_RTTI_SYMBOL_1; SiteRecoveryVmwareReplicatedVm[_f] = { fqn: "@cdktf/provider-azurerm.siteRecoveryVmwareReplicatedVm.SiteRecoveryVmwareReplicatedVm", version: "12.27.0" }; // ================= // STATIC PROPERTIES // ================= SiteRecoveryVmwareReplicatedVm.tfResourceType = "azurerm_site_recovery_vmware_replicated_vm"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2l0ZS1yZWNvdmVyeS12bXdhcmUtcmVwbGljYXRlZC12bS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQVNBLCtCQUErQjtBQWtJL0IsU0FBZ0Isb0RBQW9ELENBQUMsTUFBc0U7SUFDekksSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTztRQUNMLE9BQU8s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