UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,038 lines 680 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, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10; Object.defineProperty(exports, "__esModule", { value: true }); exports.HdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityToTerraform = exports.HdinsightInteractiveQueryClusterRolesHeadNodeOutputReference = exports.hdinsightInteractiveQueryClusterRolesHeadNodeToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesHeadNodeToTerraform = exports.HdinsightInteractiveQueryClusterRolesHeadNodeScriptActionsList = exports.HdinsightInteractiveQueryClusterRolesHeadNodeScriptActionsOutputReference = exports.hdinsightInteractiveQueryClusterRolesHeadNodeScriptActionsToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesHeadNodeScriptActionsToTerraform = exports.HdinsightInteractiveQueryClusterPrivateLinkConfigurationOutputReference = exports.hdinsightInteractiveQueryClusterPrivateLinkConfigurationToHclTerraform = exports.hdinsightInteractiveQueryClusterPrivateLinkConfigurationToTerraform = exports.HdinsightInteractiveQueryClusterPrivateLinkConfigurationIpConfigurationOutputReference = exports.hdinsightInteractiveQueryClusterPrivateLinkConfigurationIpConfigurationToHclTerraform = exports.hdinsightInteractiveQueryClusterPrivateLinkConfigurationIpConfigurationToTerraform = exports.HdinsightInteractiveQueryClusterNetworkOutputReference = exports.hdinsightInteractiveQueryClusterNetworkToHclTerraform = exports.hdinsightInteractiveQueryClusterNetworkToTerraform = exports.HdinsightInteractiveQueryClusterMonitorOutputReference = exports.hdinsightInteractiveQueryClusterMonitorToHclTerraform = exports.hdinsightInteractiveQueryClusterMonitorToTerraform = exports.HdinsightInteractiveQueryClusterMetastoresOutputReference = exports.hdinsightInteractiveQueryClusterMetastoresToHclTerraform = exports.hdinsightInteractiveQueryClusterMetastoresToTerraform = exports.HdinsightInteractiveQueryClusterMetastoresOozieOutputReference = exports.hdinsightInteractiveQueryClusterMetastoresOozieToHclTerraform = exports.hdinsightInteractiveQueryClusterMetastoresOozieToTerraform = exports.HdinsightInteractiveQueryClusterMetastoresHiveOutputReference = exports.hdinsightInteractiveQueryClusterMetastoresHiveToHclTerraform = exports.hdinsightInteractiveQueryClusterMetastoresHiveToTerraform = exports.HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference = exports.hdinsightInteractiveQueryClusterMetastoresAmbariToHclTerraform = exports.hdinsightInteractiveQueryClusterMetastoresAmbariToTerraform = exports.HdinsightInteractiveQueryClusterGatewayOutputReference = exports.hdinsightInteractiveQueryClusterGatewayToHclTerraform = exports.hdinsightInteractiveQueryClusterGatewayToTerraform = exports.HdinsightInteractiveQueryClusterExtensionOutputReference = exports.hdinsightInteractiveQueryClusterExtensionToHclTerraform = exports.hdinsightInteractiveQueryClusterExtensionToTerraform = exports.HdinsightInteractiveQueryClusterDiskEncryptionList = exports.HdinsightInteractiveQueryClusterDiskEncryptionOutputReference = exports.hdinsightInteractiveQueryClusterDiskEncryptionToHclTerraform = exports.hdinsightInteractiveQueryClusterDiskEncryptionToTerraform = exports.HdinsightInteractiveQueryClusterComputeIsolationOutputReference = exports.hdinsightInteractiveQueryClusterComputeIsolationToHclTerraform = exports.hdinsightInteractiveQueryClusterComputeIsolationToTerraform = exports.HdinsightInteractiveQueryClusterComponentVersionOutputReference = exports.hdinsightInteractiveQueryClusterComponentVersionToHclTerraform = exports.hdinsightInteractiveQueryClusterComponentVersionToTerraform = void 0; exports.HdinsightInteractiveQueryCluster = exports.HdinsightInteractiveQueryClusterTimeoutsOutputReference = exports.hdinsightInteractiveQueryClusterTimeoutsToHclTerraform = exports.hdinsightInteractiveQueryClusterTimeoutsToTerraform = exports.HdinsightInteractiveQueryClusterStorageAccountGen2OutputReference = exports.hdinsightInteractiveQueryClusterStorageAccountGen2ToHclTerraform = exports.hdinsightInteractiveQueryClusterStorageAccountGen2ToTerraform = exports.HdinsightInteractiveQueryClusterStorageAccountList = exports.HdinsightInteractiveQueryClusterStorageAccountOutputReference = exports.hdinsightInteractiveQueryClusterStorageAccountToHclTerraform = exports.hdinsightInteractiveQueryClusterStorageAccountToTerraform = exports.HdinsightInteractiveQueryClusterSecurityProfileOutputReference = exports.hdinsightInteractiveQueryClusterSecurityProfileToHclTerraform = exports.hdinsightInteractiveQueryClusterSecurityProfileToTerraform = exports.HdinsightInteractiveQueryClusterRolesOutputReference = exports.hdinsightInteractiveQueryClusterRolesToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesToTerraform = exports.HdinsightInteractiveQueryClusterRolesZookeeperNodeOutputReference = exports.hdinsightInteractiveQueryClusterRolesZookeeperNodeToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesZookeeperNodeToTerraform = exports.HdinsightInteractiveQueryClusterRolesZookeeperNodeScriptActionsList = exports.HdinsightInteractiveQueryClusterRolesZookeeperNodeScriptActionsOutputReference = exports.hdinsightInteractiveQueryClusterRolesZookeeperNodeScriptActionsToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesZookeeperNodeScriptActionsToTerraform = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeToTerraform = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeScriptActionsList = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeScriptActionsOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeScriptActionsToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeScriptActionsToTerraform = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleToTerraform = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceToTerraform = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceScheduleList = exports.HdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceScheduleOutputReference = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceScheduleToHclTerraform = exports.hdinsightInteractiveQueryClusterRolesWorkerNodeAutoscaleRecurrenceScheduleToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function hdinsightInteractiveQueryClusterComponentVersionToTerraform(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 { interactive_hive: cdktf.stringToTerraform(struct.interactiveHive), }; } exports.hdinsightInteractiveQueryClusterComponentVersionToTerraform = hdinsightInteractiveQueryClusterComponentVersionToTerraform; function hdinsightInteractiveQueryClusterComponentVersionToHclTerraform(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 = { interactive_hive: { value: cdktf.stringToHclTerraform(struct.interactiveHive), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterComponentVersionToHclTerraform = hdinsightInteractiveQueryClusterComponentVersionToHclTerraform; class HdinsightInteractiveQueryClusterComponentVersionOutputReference 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._interactiveHive !== undefined) { hasAnyValues = true; internalValueResult.interactiveHive = this._interactiveHive; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._interactiveHive = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._interactiveHive = value.interactiveHive; } } get interactiveHive() { return this.getStringAttribute('interactive_hive'); } set interactiveHive(value) { this._interactiveHive = value; } // Temporarily expose input value. Use with caution. get interactiveHiveInput() { return this._interactiveHive; } } exports.HdinsightInteractiveQueryClusterComponentVersionOutputReference = HdinsightInteractiveQueryClusterComponentVersionOutputReference; _a = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterComponentVersionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterComponentVersionOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterComputeIsolationToTerraform(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 { compute_isolation_enabled: cdktf.booleanToTerraform(struct.computeIsolationEnabled), host_sku: cdktf.stringToTerraform(struct.hostSku), }; } exports.hdinsightInteractiveQueryClusterComputeIsolationToTerraform = hdinsightInteractiveQueryClusterComputeIsolationToTerraform; function hdinsightInteractiveQueryClusterComputeIsolationToHclTerraform(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 = { compute_isolation_enabled: { value: cdktf.booleanToHclTerraform(struct.computeIsolationEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, host_sku: { value: cdktf.stringToHclTerraform(struct.hostSku), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterComputeIsolationToHclTerraform = hdinsightInteractiveQueryClusterComputeIsolationToHclTerraform; class HdinsightInteractiveQueryClusterComputeIsolationOutputReference 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._computeIsolationEnabled !== undefined) { hasAnyValues = true; internalValueResult.computeIsolationEnabled = this._computeIsolationEnabled; } if (this._hostSku !== undefined) { hasAnyValues = true; internalValueResult.hostSku = this._hostSku; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._computeIsolationEnabled = undefined; this._hostSku = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._computeIsolationEnabled = value.computeIsolationEnabled; this._hostSku = value.hostSku; } } get computeIsolationEnabled() { return this.getBooleanAttribute('compute_isolation_enabled'); } set computeIsolationEnabled(value) { this._computeIsolationEnabled = value; } resetComputeIsolationEnabled() { this._computeIsolationEnabled = undefined; } // Temporarily expose input value. Use with caution. get computeIsolationEnabledInput() { return this._computeIsolationEnabled; } get hostSku() { return this.getStringAttribute('host_sku'); } set hostSku(value) { this._hostSku = value; } resetHostSku() { this._hostSku = undefined; } // Temporarily expose input value. Use with caution. get hostSkuInput() { return this._hostSku; } } exports.HdinsightInteractiveQueryClusterComputeIsolationOutputReference = HdinsightInteractiveQueryClusterComputeIsolationOutputReference; _b = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterComputeIsolationOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterComputeIsolationOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterDiskEncryptionToTerraform(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 { encryption_algorithm: cdktf.stringToTerraform(struct.encryptionAlgorithm), encryption_at_host_enabled: cdktf.booleanToTerraform(struct.encryptionAtHostEnabled), key_vault_key_id: cdktf.stringToTerraform(struct.keyVaultKeyId), key_vault_managed_identity_id: cdktf.stringToTerraform(struct.keyVaultManagedIdentityId), }; } exports.hdinsightInteractiveQueryClusterDiskEncryptionToTerraform = hdinsightInteractiveQueryClusterDiskEncryptionToTerraform; function hdinsightInteractiveQueryClusterDiskEncryptionToHclTerraform(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 = { encryption_algorithm: { value: cdktf.stringToHclTerraform(struct.encryptionAlgorithm), isBlock: false, type: "simple", storageClassType: "string", }, encryption_at_host_enabled: { value: cdktf.booleanToHclTerraform(struct.encryptionAtHostEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, key_vault_key_id: { value: cdktf.stringToHclTerraform(struct.keyVaultKeyId), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_managed_identity_id: { value: cdktf.stringToHclTerraform(struct.keyVaultManagedIdentityId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterDiskEncryptionToHclTerraform = hdinsightInteractiveQueryClusterDiskEncryptionToHclTerraform; class HdinsightInteractiveQueryClusterDiskEncryptionOutputReference 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._encryptionAlgorithm !== undefined) { hasAnyValues = true; internalValueResult.encryptionAlgorithm = this._encryptionAlgorithm; } if (this._encryptionAtHostEnabled !== undefined) { hasAnyValues = true; internalValueResult.encryptionAtHostEnabled = this._encryptionAtHostEnabled; } if (this._keyVaultKeyId !== undefined) { hasAnyValues = true; internalValueResult.keyVaultKeyId = this._keyVaultKeyId; } if (this._keyVaultManagedIdentityId !== undefined) { hasAnyValues = true; internalValueResult.keyVaultManagedIdentityId = this._keyVaultManagedIdentityId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._encryptionAlgorithm = undefined; this._encryptionAtHostEnabled = undefined; this._keyVaultKeyId = undefined; this._keyVaultManagedIdentityId = 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._encryptionAlgorithm = value.encryptionAlgorithm; this._encryptionAtHostEnabled = value.encryptionAtHostEnabled; this._keyVaultKeyId = value.keyVaultKeyId; this._keyVaultManagedIdentityId = value.keyVaultManagedIdentityId; } } get encryptionAlgorithm() { return this.getStringAttribute('encryption_algorithm'); } set encryptionAlgorithm(value) { this._encryptionAlgorithm = value; } resetEncryptionAlgorithm() { this._encryptionAlgorithm = undefined; } // Temporarily expose input value. Use with caution. get encryptionAlgorithmInput() { return this._encryptionAlgorithm; } get encryptionAtHostEnabled() { return this.getBooleanAttribute('encryption_at_host_enabled'); } set encryptionAtHostEnabled(value) { this._encryptionAtHostEnabled = value; } resetEncryptionAtHostEnabled() { this._encryptionAtHostEnabled = undefined; } // Temporarily expose input value. Use with caution. get encryptionAtHostEnabledInput() { return this._encryptionAtHostEnabled; } get keyVaultKeyId() { return this.getStringAttribute('key_vault_key_id'); } set keyVaultKeyId(value) { this._keyVaultKeyId = value; } resetKeyVaultKeyId() { this._keyVaultKeyId = undefined; } // Temporarily expose input value. Use with caution. get keyVaultKeyIdInput() { return this._keyVaultKeyId; } get keyVaultManagedIdentityId() { return this.getStringAttribute('key_vault_managed_identity_id'); } set keyVaultManagedIdentityId(value) { this._keyVaultManagedIdentityId = value; } resetKeyVaultManagedIdentityId() { this._keyVaultManagedIdentityId = undefined; } // Temporarily expose input value. Use with caution. get keyVaultManagedIdentityIdInput() { return this._keyVaultManagedIdentityId; } } exports.HdinsightInteractiveQueryClusterDiskEncryptionOutputReference = HdinsightInteractiveQueryClusterDiskEncryptionOutputReference; _c = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterDiskEncryptionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterDiskEncryptionOutputReference", version: "12.27.0" }; class HdinsightInteractiveQueryClusterDiskEncryptionList 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 HdinsightInteractiveQueryClusterDiskEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.HdinsightInteractiveQueryClusterDiskEncryptionList = HdinsightInteractiveQueryClusterDiskEncryptionList; _d = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterDiskEncryptionList[_d] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterDiskEncryptionList", version: "12.27.0" }; function hdinsightInteractiveQueryClusterExtensionToTerraform(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 { log_analytics_workspace_id: cdktf.stringToTerraform(struct.logAnalyticsWorkspaceId), primary_key: cdktf.stringToTerraform(struct.primaryKey), }; } exports.hdinsightInteractiveQueryClusterExtensionToTerraform = hdinsightInteractiveQueryClusterExtensionToTerraform; function hdinsightInteractiveQueryClusterExtensionToHclTerraform(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 = { log_analytics_workspace_id: { value: cdktf.stringToHclTerraform(struct.logAnalyticsWorkspaceId), isBlock: false, type: "simple", storageClassType: "string", }, primary_key: { value: cdktf.stringToHclTerraform(struct.primaryKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterExtensionToHclTerraform = hdinsightInteractiveQueryClusterExtensionToHclTerraform; class HdinsightInteractiveQueryClusterExtensionOutputReference 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._logAnalyticsWorkspaceId !== undefined) { hasAnyValues = true; internalValueResult.logAnalyticsWorkspaceId = this._logAnalyticsWorkspaceId; } if (this._primaryKey !== undefined) { hasAnyValues = true; internalValueResult.primaryKey = this._primaryKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._logAnalyticsWorkspaceId = undefined; this._primaryKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._logAnalyticsWorkspaceId = value.logAnalyticsWorkspaceId; this._primaryKey = value.primaryKey; } } get logAnalyticsWorkspaceId() { return this.getStringAttribute('log_analytics_workspace_id'); } set logAnalyticsWorkspaceId(value) { this._logAnalyticsWorkspaceId = value; } // Temporarily expose input value. Use with caution. get logAnalyticsWorkspaceIdInput() { return this._logAnalyticsWorkspaceId; } get primaryKey() { return this.getStringAttribute('primary_key'); } set primaryKey(value) { this._primaryKey = value; } // Temporarily expose input value. Use with caution. get primaryKeyInput() { return this._primaryKey; } } exports.HdinsightInteractiveQueryClusterExtensionOutputReference = HdinsightInteractiveQueryClusterExtensionOutputReference; _e = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterExtensionOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterExtensionOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterGatewayToTerraform(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 { password: cdktf.stringToTerraform(struct.password), username: cdktf.stringToTerraform(struct.username), }; } exports.hdinsightInteractiveQueryClusterGatewayToTerraform = hdinsightInteractiveQueryClusterGatewayToTerraform; function hdinsightInteractiveQueryClusterGatewayToHclTerraform(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 = { password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterGatewayToHclTerraform = hdinsightInteractiveQueryClusterGatewayToHclTerraform; class HdinsightInteractiveQueryClusterGatewayOutputReference 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._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._username = value.username; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.HdinsightInteractiveQueryClusterGatewayOutputReference = HdinsightInteractiveQueryClusterGatewayOutputReference; _f = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterGatewayOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterGatewayOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterMetastoresAmbariToTerraform(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 { database_name: cdktf.stringToTerraform(struct.databaseName), password: cdktf.stringToTerraform(struct.password), server: cdktf.stringToTerraform(struct.server), username: cdktf.stringToTerraform(struct.username), }; } exports.hdinsightInteractiveQueryClusterMetastoresAmbariToTerraform = hdinsightInteractiveQueryClusterMetastoresAmbariToTerraform; function hdinsightInteractiveQueryClusterMetastoresAmbariToHclTerraform(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 = { database_name: { value: cdktf.stringToHclTerraform(struct.databaseName), isBlock: false, type: "simple", storageClassType: "string", }, password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, server: { value: cdktf.stringToHclTerraform(struct.server), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterMetastoresAmbariToHclTerraform = hdinsightInteractiveQueryClusterMetastoresAmbariToHclTerraform; class HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference 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._databaseName !== undefined) { hasAnyValues = true; internalValueResult.databaseName = this._databaseName; } if (this._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._server !== undefined) { hasAnyValues = true; internalValueResult.server = this._server; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._databaseName = undefined; this._password = undefined; this._server = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._databaseName = value.databaseName; this._password = value.password; this._server = value.server; this._username = value.username; } } get databaseName() { return this.getStringAttribute('database_name'); } set databaseName(value) { this._databaseName = value; } // Temporarily expose input value. Use with caution. get databaseNameInput() { return this._databaseName; } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get server() { return this.getStringAttribute('server'); } set server(value) { this._server = value; } // Temporarily expose input value. Use with caution. get serverInput() { return this._server; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference = HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference; _g = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterMetastoresAmbariOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterMetastoresHiveToTerraform(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 { database_name: cdktf.stringToTerraform(struct.databaseName), password: cdktf.stringToTerraform(struct.password), server: cdktf.stringToTerraform(struct.server), username: cdktf.stringToTerraform(struct.username), }; } exports.hdinsightInteractiveQueryClusterMetastoresHiveToTerraform = hdinsightInteractiveQueryClusterMetastoresHiveToTerraform; function hdinsightInteractiveQueryClusterMetastoresHiveToHclTerraform(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 = { database_name: { value: cdktf.stringToHclTerraform(struct.databaseName), isBlock: false, type: "simple", storageClassType: "string", }, password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, server: { value: cdktf.stringToHclTerraform(struct.server), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterMetastoresHiveToHclTerraform = hdinsightInteractiveQueryClusterMetastoresHiveToHclTerraform; class HdinsightInteractiveQueryClusterMetastoresHiveOutputReference 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._databaseName !== undefined) { hasAnyValues = true; internalValueResult.databaseName = this._databaseName; } if (this._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._server !== undefined) { hasAnyValues = true; internalValueResult.server = this._server; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._databaseName = undefined; this._password = undefined; this._server = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._databaseName = value.databaseName; this._password = value.password; this._server = value.server; this._username = value.username; } } get databaseName() { return this.getStringAttribute('database_name'); } set databaseName(value) { this._databaseName = value; } // Temporarily expose input value. Use with caution. get databaseNameInput() { return this._databaseName; } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get server() { return this.getStringAttribute('server'); } set server(value) { this._server = value; } // Temporarily expose input value. Use with caution. get serverInput() { return this._server; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.HdinsightInteractiveQueryClusterMetastoresHiveOutputReference = HdinsightInteractiveQueryClusterMetastoresHiveOutputReference; _h = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterMetastoresHiveOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterMetastoresHiveOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterMetastoresOozieToTerraform(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 { database_name: cdktf.stringToTerraform(struct.databaseName), password: cdktf.stringToTerraform(struct.password), server: cdktf.stringToTerraform(struct.server), username: cdktf.stringToTerraform(struct.username), }; } exports.hdinsightInteractiveQueryClusterMetastoresOozieToTerraform = hdinsightInteractiveQueryClusterMetastoresOozieToTerraform; function hdinsightInteractiveQueryClusterMetastoresOozieToHclTerraform(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 = { database_name: { value: cdktf.stringToHclTerraform(struct.databaseName), isBlock: false, type: "simple", storageClassType: "string", }, password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, server: { value: cdktf.stringToHclTerraform(struct.server), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterMetastoresOozieToHclTerraform = hdinsightInteractiveQueryClusterMetastoresOozieToHclTerraform; class HdinsightInteractiveQueryClusterMetastoresOozieOutputReference 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._databaseName !== undefined) { hasAnyValues = true; internalValueResult.databaseName = this._databaseName; } if (this._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._server !== undefined) { hasAnyValues = true; internalValueResult.server = this._server; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._databaseName = undefined; this._password = undefined; this._server = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._databaseName = value.databaseName; this._password = value.password; this._server = value.server; this._username = value.username; } } get databaseName() { return this.getStringAttribute('database_name'); } set databaseName(value) { this._databaseName = value; } // Temporarily expose input value. Use with caution. get databaseNameInput() { return this._databaseName; } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get server() { return this.getStringAttribute('server'); } set server(value) { this._server = value; } // Temporarily expose input value. Use with caution. get serverInput() { return this._server; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.HdinsightInteractiveQueryClusterMetastoresOozieOutputReference = HdinsightInteractiveQueryClusterMetastoresOozieOutputReference; _j = JSII_RTTI_SYMBOL_1; HdinsightInteractiveQueryClusterMetastoresOozieOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.hdinsightInteractiveQueryCluster.HdinsightInteractiveQueryClusterMetastoresOozieOutputReference", version: "12.27.0" }; function hdinsightInteractiveQueryClusterMetastoresToTerraform(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 { ambari: hdinsightInteractiveQueryClusterMetastoresAmbariToTerraform(struct.ambari), hive: hdinsightInteractiveQueryClusterMetastoresHiveToTerraform(struct.hive), oozie: hdinsightInteractiveQueryClusterMetastoresOozieToTerraform(struct.oozie), }; } exports.hdinsightInteractiveQueryClusterMetastoresToTerraform = hdinsightInteractiveQueryClusterMetastoresToTerraform; function hdinsightInteractiveQueryClusterMetastoresToHclTerraform(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 = { ambari: { value: hdinsightInteractiveQueryClusterMetastoresAmbariToHclTerraform(struct.ambari), isBlock: true, type: "list", storageClassType: "HdinsightInteractiveQueryClusterMetastoresAmbariList", }, hive: { value: hdinsightInteractiveQueryClusterMetastoresHiveToHclTerraform(struct.hive), isBlock: true, type: "list", storageClassType: "HdinsightInteractiveQueryClusterMetastoresHiveList", }, oozie: { value: hdinsightInteractiveQueryClusterMetastoresOozieToHclTerraform(struct.oozie), isBlock: true, type: "list", storageClassType: "HdinsightInteractiveQueryClusterMetastoresOozieList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightInteractiveQueryClusterMetastoresToHclTerraform = hdinsightInteractiveQueryClusterMetastoresToHclTerraform; class HdinsightInteractiveQueryClusterMetastoresOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructo