UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,103 lines 662 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.HdinsightSparkClusterRolesWorkerNodeAutoscaleCapacityOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleCapacityToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleCapacityToTerraform = exports.HdinsightSparkClusterRolesHeadNodeOutputReference = exports.hdinsightSparkClusterRolesHeadNodeToHclTerraform = exports.hdinsightSparkClusterRolesHeadNodeToTerraform = exports.HdinsightSparkClusterRolesHeadNodeScriptActionsList = exports.HdinsightSparkClusterRolesHeadNodeScriptActionsOutputReference = exports.hdinsightSparkClusterRolesHeadNodeScriptActionsToHclTerraform = exports.hdinsightSparkClusterRolesHeadNodeScriptActionsToTerraform = exports.HdinsightSparkClusterPrivateLinkConfigurationOutputReference = exports.hdinsightSparkClusterPrivateLinkConfigurationToHclTerraform = exports.hdinsightSparkClusterPrivateLinkConfigurationToTerraform = exports.HdinsightSparkClusterPrivateLinkConfigurationIpConfigurationOutputReference = exports.hdinsightSparkClusterPrivateLinkConfigurationIpConfigurationToHclTerraform = exports.hdinsightSparkClusterPrivateLinkConfigurationIpConfigurationToTerraform = exports.HdinsightSparkClusterNetworkOutputReference = exports.hdinsightSparkClusterNetworkToHclTerraform = exports.hdinsightSparkClusterNetworkToTerraform = exports.HdinsightSparkClusterMonitorOutputReference = exports.hdinsightSparkClusterMonitorToHclTerraform = exports.hdinsightSparkClusterMonitorToTerraform = exports.HdinsightSparkClusterMetastoresOutputReference = exports.hdinsightSparkClusterMetastoresToHclTerraform = exports.hdinsightSparkClusterMetastoresToTerraform = exports.HdinsightSparkClusterMetastoresOozieOutputReference = exports.hdinsightSparkClusterMetastoresOozieToHclTerraform = exports.hdinsightSparkClusterMetastoresOozieToTerraform = exports.HdinsightSparkClusterMetastoresHiveOutputReference = exports.hdinsightSparkClusterMetastoresHiveToHclTerraform = exports.hdinsightSparkClusterMetastoresHiveToTerraform = exports.HdinsightSparkClusterMetastoresAmbariOutputReference = exports.hdinsightSparkClusterMetastoresAmbariToHclTerraform = exports.hdinsightSparkClusterMetastoresAmbariToTerraform = exports.HdinsightSparkClusterGatewayOutputReference = exports.hdinsightSparkClusterGatewayToHclTerraform = exports.hdinsightSparkClusterGatewayToTerraform = exports.HdinsightSparkClusterExtensionOutputReference = exports.hdinsightSparkClusterExtensionToHclTerraform = exports.hdinsightSparkClusterExtensionToTerraform = exports.HdinsightSparkClusterDiskEncryptionList = exports.HdinsightSparkClusterDiskEncryptionOutputReference = exports.hdinsightSparkClusterDiskEncryptionToHclTerraform = exports.hdinsightSparkClusterDiskEncryptionToTerraform = exports.HdinsightSparkClusterComputeIsolationOutputReference = exports.hdinsightSparkClusterComputeIsolationToHclTerraform = exports.hdinsightSparkClusterComputeIsolationToTerraform = exports.HdinsightSparkClusterComponentVersionOutputReference = exports.hdinsightSparkClusterComponentVersionToHclTerraform = exports.hdinsightSparkClusterComponentVersionToTerraform = void 0; exports.HdinsightSparkCluster = exports.HdinsightSparkClusterTimeoutsOutputReference = exports.hdinsightSparkClusterTimeoutsToHclTerraform = exports.hdinsightSparkClusterTimeoutsToTerraform = exports.HdinsightSparkClusterStorageAccountGen2OutputReference = exports.hdinsightSparkClusterStorageAccountGen2ToHclTerraform = exports.hdinsightSparkClusterStorageAccountGen2ToTerraform = exports.HdinsightSparkClusterStorageAccountList = exports.HdinsightSparkClusterStorageAccountOutputReference = exports.hdinsightSparkClusterStorageAccountToHclTerraform = exports.hdinsightSparkClusterStorageAccountToTerraform = exports.HdinsightSparkClusterSecurityProfileOutputReference = exports.hdinsightSparkClusterSecurityProfileToHclTerraform = exports.hdinsightSparkClusterSecurityProfileToTerraform = exports.HdinsightSparkClusterRolesOutputReference = exports.hdinsightSparkClusterRolesToHclTerraform = exports.hdinsightSparkClusterRolesToTerraform = exports.HdinsightSparkClusterRolesZookeeperNodeOutputReference = exports.hdinsightSparkClusterRolesZookeeperNodeToHclTerraform = exports.hdinsightSparkClusterRolesZookeeperNodeToTerraform = exports.HdinsightSparkClusterRolesZookeeperNodeScriptActionsList = exports.HdinsightSparkClusterRolesZookeeperNodeScriptActionsOutputReference = exports.hdinsightSparkClusterRolesZookeeperNodeScriptActionsToHclTerraform = exports.hdinsightSparkClusterRolesZookeeperNodeScriptActionsToTerraform = exports.HdinsightSparkClusterRolesWorkerNodeOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeToTerraform = exports.HdinsightSparkClusterRolesWorkerNodeScriptActionsList = exports.HdinsightSparkClusterRolesWorkerNodeScriptActionsOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeScriptActionsToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeScriptActionsToTerraform = exports.HdinsightSparkClusterRolesWorkerNodeAutoscaleOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleToTerraform = exports.HdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceToTerraform = exports.HdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceScheduleList = exports.HdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceScheduleOutputReference = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceScheduleToHclTerraform = exports.hdinsightSparkClusterRolesWorkerNodeAutoscaleRecurrenceScheduleToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function hdinsightSparkClusterComponentVersionToTerraform(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 { spark: cdktf.stringToTerraform(struct.spark), }; } exports.hdinsightSparkClusterComponentVersionToTerraform = hdinsightSparkClusterComponentVersionToTerraform; function hdinsightSparkClusterComponentVersionToHclTerraform(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 = { spark: { value: cdktf.stringToHclTerraform(struct.spark), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightSparkClusterComponentVersionToHclTerraform = hdinsightSparkClusterComponentVersionToHclTerraform; class HdinsightSparkClusterComponentVersionOutputReference 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._spark !== undefined) { hasAnyValues = true; internalValueResult.spark = this._spark; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._spark = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._spark = value.spark; } } get spark() { return this.getStringAttribute('spark'); } set spark(value) { this._spark = value; } // Temporarily expose input value. Use with caution. get sparkInput() { return this._spark; } } exports.HdinsightSparkClusterComponentVersionOutputReference = HdinsightSparkClusterComponentVersionOutputReference; _a = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterComponentVersionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterComponentVersionOutputReference", version: "12.27.0" }; function hdinsightSparkClusterComputeIsolationToTerraform(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.hdinsightSparkClusterComputeIsolationToTerraform = hdinsightSparkClusterComputeIsolationToTerraform; function hdinsightSparkClusterComputeIsolationToHclTerraform(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.hdinsightSparkClusterComputeIsolationToHclTerraform = hdinsightSparkClusterComputeIsolationToHclTerraform; class HdinsightSparkClusterComputeIsolationOutputReference 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.HdinsightSparkClusterComputeIsolationOutputReference = HdinsightSparkClusterComputeIsolationOutputReference; _b = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterComputeIsolationOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterComputeIsolationOutputReference", version: "12.27.0" }; function hdinsightSparkClusterDiskEncryptionToTerraform(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.hdinsightSparkClusterDiskEncryptionToTerraform = hdinsightSparkClusterDiskEncryptionToTerraform; function hdinsightSparkClusterDiskEncryptionToHclTerraform(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.hdinsightSparkClusterDiskEncryptionToHclTerraform = hdinsightSparkClusterDiskEncryptionToHclTerraform; class HdinsightSparkClusterDiskEncryptionOutputReference 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.HdinsightSparkClusterDiskEncryptionOutputReference = HdinsightSparkClusterDiskEncryptionOutputReference; _c = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterDiskEncryptionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterDiskEncryptionOutputReference", version: "12.27.0" }; class HdinsightSparkClusterDiskEncryptionList 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 HdinsightSparkClusterDiskEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.HdinsightSparkClusterDiskEncryptionList = HdinsightSparkClusterDiskEncryptionList; _d = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterDiskEncryptionList[_d] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterDiskEncryptionList", version: "12.27.0" }; function hdinsightSparkClusterExtensionToTerraform(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.hdinsightSparkClusterExtensionToTerraform = hdinsightSparkClusterExtensionToTerraform; function hdinsightSparkClusterExtensionToHclTerraform(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.hdinsightSparkClusterExtensionToHclTerraform = hdinsightSparkClusterExtensionToHclTerraform; class HdinsightSparkClusterExtensionOutputReference 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.HdinsightSparkClusterExtensionOutputReference = HdinsightSparkClusterExtensionOutputReference; _e = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterExtensionOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterExtensionOutputReference", version: "12.27.0" }; function hdinsightSparkClusterGatewayToTerraform(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.hdinsightSparkClusterGatewayToTerraform = hdinsightSparkClusterGatewayToTerraform; function hdinsightSparkClusterGatewayToHclTerraform(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.hdinsightSparkClusterGatewayToHclTerraform = hdinsightSparkClusterGatewayToHclTerraform; class HdinsightSparkClusterGatewayOutputReference 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.HdinsightSparkClusterGatewayOutputReference = HdinsightSparkClusterGatewayOutputReference; _f = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterGatewayOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterGatewayOutputReference", version: "12.27.0" }; function hdinsightSparkClusterMetastoresAmbariToTerraform(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.hdinsightSparkClusterMetastoresAmbariToTerraform = hdinsightSparkClusterMetastoresAmbariToTerraform; function hdinsightSparkClusterMetastoresAmbariToHclTerraform(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.hdinsightSparkClusterMetastoresAmbariToHclTerraform = hdinsightSparkClusterMetastoresAmbariToHclTerraform; class HdinsightSparkClusterMetastoresAmbariOutputReference 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.HdinsightSparkClusterMetastoresAmbariOutputReference = HdinsightSparkClusterMetastoresAmbariOutputReference; _g = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterMetastoresAmbariOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterMetastoresAmbariOutputReference", version: "12.27.0" }; function hdinsightSparkClusterMetastoresHiveToTerraform(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.hdinsightSparkClusterMetastoresHiveToTerraform = hdinsightSparkClusterMetastoresHiveToTerraform; function hdinsightSparkClusterMetastoresHiveToHclTerraform(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.hdinsightSparkClusterMetastoresHiveToHclTerraform = hdinsightSparkClusterMetastoresHiveToHclTerraform; class HdinsightSparkClusterMetastoresHiveOutputReference 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.HdinsightSparkClusterMetastoresHiveOutputReference = HdinsightSparkClusterMetastoresHiveOutputReference; _h = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterMetastoresHiveOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterMetastoresHiveOutputReference", version: "12.27.0" }; function hdinsightSparkClusterMetastoresOozieToTerraform(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.hdinsightSparkClusterMetastoresOozieToTerraform = hdinsightSparkClusterMetastoresOozieToTerraform; function hdinsightSparkClusterMetastoresOozieToHclTerraform(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.hdinsightSparkClusterMetastoresOozieToHclTerraform = hdinsightSparkClusterMetastoresOozieToHclTerraform; class HdinsightSparkClusterMetastoresOozieOutputReference 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.HdinsightSparkClusterMetastoresOozieOutputReference = HdinsightSparkClusterMetastoresOozieOutputReference; _j = JSII_RTTI_SYMBOL_1; HdinsightSparkClusterMetastoresOozieOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.hdinsightSparkCluster.HdinsightSparkClusterMetastoresOozieOutputReference", version: "12.27.0" }; function hdinsightSparkClusterMetastoresToTerraform(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: hdinsightSparkClusterMetastoresAmbariToTerraform(struct.ambari), hive: hdinsightSparkClusterMetastoresHiveToTerraform(struct.hive), oozie: hdinsightSparkClusterMetastoresOozieToTerraform(struct.oozie), }; } exports.hdinsightSparkClusterMetastoresToTerraform = hdinsightSparkClusterMetastoresToTerraform; function hdinsightSparkClusterMetastoresToHclTerraform(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: hdinsightSparkClusterMetastoresAmbariToHclTerraform(struct.ambari), isBlock: true, type: "list", storageClassType: "HdinsightSparkClusterMetastoresAmbariList", }, hive: { value: hdinsightSparkClusterMetastoresHiveToHclTerraform(struct.hive), isBlock: true, type: "list", storageClassType: "HdinsightSparkClusterMetastoresHiveList", }, oozie: { value: hdinsightSparkClusterMetastoresOozieToHclTerraform(struct.oozie), isBlock: true, type: "list", storageClassType: "HdinsightSparkClusterMetastoresOozieList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.hdinsightSparkClusterMetastoresToHclTerraform = hdinsightSparkClusterMetastoresToHclTerraform; class HdinsightSparkClusterMetastoresOutputReference 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; // ambari - computed: false, optional: true, required: false this._ambari = new HdinsightSparkClusterMetastoresAmbariOutputReference(this, "ambari"); // hive - computed: false, optional: true, required: false this._hive = new HdinsightSparkClusterMetastoresHiveOutputReference(this, "hive"); // oozie - computed: false, optional: true, required: false this._oozie = new HdinsightSparkClusterMetastoresOozieOutputReference(this, "oozie"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._ambari?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ambari = this._ambari?.internalValue; } if (this._hive?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.hive = this._hive?.internalValue; } if (this._oozie?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.oozie = this._oozie?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._ambari.internalValue = undefined; this._hive.internalValue = undefined; this._oozie.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._ambari.internalValue = value.ambari; this._hive.internalValue = value.hive; this._oozie.internalValue = value.oozie; } } get ambari() { return this._ambari; } putAmbari(value) { this._ambari.internalValue = value; } resetAmbari() { this._ambari.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ambariInput() { return this._ambari.internalValue; } get hive() { return this._hive; } putHive(value) { this._hive.internalValue = value; } resetHive() { this._hive.internalValue = undefined; } // Temporarily expose input value. Use with caution. get hiveInput() { return this._hive.inter