UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,166 lines 162 kB
"use strict"; var _a, _b, _c, _d, _e, _f; Object.defineProperty(exports, "__esModule", { value: true }); exports.KustoCluster = exports.KustoClusterVirtualNetworkConfigurationOutputReference = exports.kustoClusterVirtualNetworkConfigurationToHclTerraform = exports.kustoClusterVirtualNetworkConfigurationToTerraform = exports.KustoClusterTimeoutsOutputReference = exports.kustoClusterTimeoutsToHclTerraform = exports.kustoClusterTimeoutsToTerraform = exports.KustoClusterSkuOutputReference = exports.kustoClusterSkuToHclTerraform = exports.kustoClusterSkuToTerraform = exports.KustoClusterOptimizedAutoScaleOutputReference = exports.kustoClusterOptimizedAutoScaleToHclTerraform = exports.kustoClusterOptimizedAutoScaleToTerraform = exports.KustoClusterIdentityOutputReference = exports.kustoClusterIdentityToHclTerraform = exports.kustoClusterIdentityToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function kustoClusterIdentityToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.identityIds), type: cdktf.stringToTerraform(struct.type), }; } exports.kustoClusterIdentityToTerraform = kustoClusterIdentityToTerraform; function kustoClusterIdentityToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { identity_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.identityIds), isBlock: false, type: "set", storageClassType: "stringList", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.kustoClusterIdentityToHclTerraform = kustoClusterIdentityToHclTerraform; class KustoClusterIdentityOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._identityIds !== undefined) { hasAnyValues = true; internalValueResult.identityIds = this._identityIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityIds = value.identityIds; this._type = value.type; } } get identityIds() { return cdktf.Fn.tolist(this.getListAttribute('identity_ids')); } set identityIds(value) { this._identityIds = value; } resetIdentityIds() { this._identityIds = undefined; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } // principal_id - computed: true, optional: false, required: false get principalId() { return this.getStringAttribute('principal_id'); } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.KustoClusterIdentityOutputReference = KustoClusterIdentityOutputReference; _a = JSII_RTTI_SYMBOL_1; KustoClusterIdentityOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoClusterIdentityOutputReference", version: "12.27.0" }; function kustoClusterOptimizedAutoScaleToTerraform(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 { maximum_instances: cdktf.numberToTerraform(struct.maximumInstances), minimum_instances: cdktf.numberToTerraform(struct.minimumInstances), }; } exports.kustoClusterOptimizedAutoScaleToTerraform = kustoClusterOptimizedAutoScaleToTerraform; function kustoClusterOptimizedAutoScaleToHclTerraform(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 = { maximum_instances: { value: cdktf.numberToHclTerraform(struct.maximumInstances), isBlock: false, type: "simple", storageClassType: "number", }, minimum_instances: { value: cdktf.numberToHclTerraform(struct.minimumInstances), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.kustoClusterOptimizedAutoScaleToHclTerraform = kustoClusterOptimizedAutoScaleToHclTerraform; class KustoClusterOptimizedAutoScaleOutputReference 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._maximumInstances !== undefined) { hasAnyValues = true; internalValueResult.maximumInstances = this._maximumInstances; } if (this._minimumInstances !== undefined) { hasAnyValues = true; internalValueResult.minimumInstances = this._minimumInstances; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._maximumInstances = undefined; this._minimumInstances = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maximumInstances = value.maximumInstances; this._minimumInstances = value.minimumInstances; } } get maximumInstances() { return this.getNumberAttribute('maximum_instances'); } set maximumInstances(value) { this._maximumInstances = value; } // Temporarily expose input value. Use with caution. get maximumInstancesInput() { return this._maximumInstances; } get minimumInstances() { return this.getNumberAttribute('minimum_instances'); } set minimumInstances(value) { this._minimumInstances = value; } // Temporarily expose input value. Use with caution. get minimumInstancesInput() { return this._minimumInstances; } } exports.KustoClusterOptimizedAutoScaleOutputReference = KustoClusterOptimizedAutoScaleOutputReference; _b = JSII_RTTI_SYMBOL_1; KustoClusterOptimizedAutoScaleOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoClusterOptimizedAutoScaleOutputReference", version: "12.27.0" }; function kustoClusterSkuToTerraform(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 { capacity: cdktf.numberToTerraform(struct.capacity), name: cdktf.stringToTerraform(struct.name), }; } exports.kustoClusterSkuToTerraform = kustoClusterSkuToTerraform; function kustoClusterSkuToHclTerraform(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 = { capacity: { value: cdktf.numberToHclTerraform(struct.capacity), isBlock: false, type: "simple", storageClassType: "number", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.kustoClusterSkuToHclTerraform = kustoClusterSkuToHclTerraform; class KustoClusterSkuOutputReference 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._capacity !== undefined) { hasAnyValues = true; internalValueResult.capacity = this._capacity; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._capacity = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._capacity = value.capacity; this._name = value.name; } } get capacity() { return this.getNumberAttribute('capacity'); } set capacity(value) { this._capacity = value; } resetCapacity() { this._capacity = undefined; } // Temporarily expose input value. Use with caution. get capacityInput() { return this._capacity; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.KustoClusterSkuOutputReference = KustoClusterSkuOutputReference; _c = JSII_RTTI_SYMBOL_1; KustoClusterSkuOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoClusterSkuOutputReference", version: "12.27.0" }; function kustoClusterTimeoutsToTerraform(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.kustoClusterTimeoutsToTerraform = kustoClusterTimeoutsToTerraform; function kustoClusterTimeoutsToHclTerraform(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.kustoClusterTimeoutsToHclTerraform = kustoClusterTimeoutsToHclTerraform; class KustoClusterTimeoutsOutputReference 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.KustoClusterTimeoutsOutputReference = KustoClusterTimeoutsOutputReference; _d = JSII_RTTI_SYMBOL_1; KustoClusterTimeoutsOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoClusterTimeoutsOutputReference", version: "12.27.0" }; function kustoClusterVirtualNetworkConfigurationToTerraform(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 { data_management_public_ip_id: cdktf.stringToTerraform(struct.dataManagementPublicIpId), engine_public_ip_id: cdktf.stringToTerraform(struct.enginePublicIpId), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.kustoClusterVirtualNetworkConfigurationToTerraform = kustoClusterVirtualNetworkConfigurationToTerraform; function kustoClusterVirtualNetworkConfigurationToHclTerraform(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 = { data_management_public_ip_id: { value: cdktf.stringToHclTerraform(struct.dataManagementPublicIpId), isBlock: false, type: "simple", storageClassType: "string", }, engine_public_ip_id: { value: cdktf.stringToHclTerraform(struct.enginePublicIpId), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.kustoClusterVirtualNetworkConfigurationToHclTerraform = kustoClusterVirtualNetworkConfigurationToHclTerraform; class KustoClusterVirtualNetworkConfigurationOutputReference 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._dataManagementPublicIpId !== undefined) { hasAnyValues = true; internalValueResult.dataManagementPublicIpId = this._dataManagementPublicIpId; } if (this._enginePublicIpId !== undefined) { hasAnyValues = true; internalValueResult.enginePublicIpId = this._enginePublicIpId; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dataManagementPublicIpId = undefined; this._enginePublicIpId = undefined; this._subnetId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dataManagementPublicIpId = value.dataManagementPublicIpId; this._enginePublicIpId = value.enginePublicIpId; this._subnetId = value.subnetId; } } get dataManagementPublicIpId() { return this.getStringAttribute('data_management_public_ip_id'); } set dataManagementPublicIpId(value) { this._dataManagementPublicIpId = value; } // Temporarily expose input value. Use with caution. get dataManagementPublicIpIdInput() { return this._dataManagementPublicIpId; } get enginePublicIpId() { return this.getStringAttribute('engine_public_ip_id'); } set enginePublicIpId(value) { this._enginePublicIpId = value; } // Temporarily expose input value. Use with caution. get enginePublicIpIdInput() { return this._enginePublicIpId; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.KustoClusterVirtualNetworkConfigurationOutputReference = KustoClusterVirtualNetworkConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; KustoClusterVirtualNetworkConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoClusterVirtualNetworkConfigurationOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/kusto_cluster azurerm_kusto_cluster} */ class KustoCluster extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a KustoCluster 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 KustoCluster to import * @param importFromId The id of the existing KustoCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/kusto_cluster#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the KustoCluster to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_kusto_cluster", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/kusto_cluster azurerm_kusto_cluster} 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 KustoClusterConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_kusto_cluster', 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 }); // identity - computed: false, optional: true, required: false this._identity = new KustoClusterIdentityOutputReference(this, "identity"); // optimized_auto_scale - computed: false, optional: true, required: false this._optimizedAutoScale = new KustoClusterOptimizedAutoScaleOutputReference(this, "optimized_auto_scale"); // sku - computed: false, optional: false, required: true this._sku = new KustoClusterSkuOutputReference(this, "sku"); // timeouts - computed: false, optional: true, required: false this._timeouts = new KustoClusterTimeoutsOutputReference(this, "timeouts"); // virtual_network_configuration - computed: false, optional: true, required: false this._virtualNetworkConfiguration = new KustoClusterVirtualNetworkConfigurationOutputReference(this, "virtual_network_configuration"); this._allowedFqdns = config.allowedFqdns; this._allowedIpRanges = config.allowedIpRanges; this._autoStopEnabled = config.autoStopEnabled; this._diskEncryptionEnabled = config.diskEncryptionEnabled; this._doubleEncryptionEnabled = config.doubleEncryptionEnabled; this._engine = config.engine; this._id = config.id; this._languageExtensions = config.languageExtensions; this._location = config.location; this._name = config.name; this._outboundNetworkAccessRestricted = config.outboundNetworkAccessRestricted; this._publicIpType = config.publicIpType; this._publicNetworkAccessEnabled = config.publicNetworkAccessEnabled; this._purgeEnabled = config.purgeEnabled; this._resourceGroupName = config.resourceGroupName; this._streamingIngestionEnabled = config.streamingIngestionEnabled; this._tags = config.tags; this._trustedExternalTenants = config.trustedExternalTenants; this._zones = config.zones; this._identity.internalValue = config.identity; this._optimizedAutoScale.internalValue = config.optimizedAutoScale; this._sku.internalValue = config.sku; this._timeouts.internalValue = config.timeouts; this._virtualNetworkConfiguration.internalValue = config.virtualNetworkConfiguration; } get allowedFqdns() { return this.getListAttribute('allowed_fqdns'); } set allowedFqdns(value) { this._allowedFqdns = value; } resetAllowedFqdns() { this._allowedFqdns = undefined; } // Temporarily expose input value. Use with caution. get allowedFqdnsInput() { return this._allowedFqdns; } get allowedIpRanges() { return this.getListAttribute('allowed_ip_ranges'); } set allowedIpRanges(value) { this._allowedIpRanges = value; } resetAllowedIpRanges() { this._allowedIpRanges = undefined; } // Temporarily expose input value. Use with caution. get allowedIpRangesInput() { return this._allowedIpRanges; } get autoStopEnabled() { return this.getBooleanAttribute('auto_stop_enabled'); } set autoStopEnabled(value) { this._autoStopEnabled = value; } resetAutoStopEnabled() { this._autoStopEnabled = undefined; } // Temporarily expose input value. Use with caution. get autoStopEnabledInput() { return this._autoStopEnabled; } // data_ingestion_uri - computed: true, optional: false, required: false get dataIngestionUri() { return this.getStringAttribute('data_ingestion_uri'); } get diskEncryptionEnabled() { return this.getBooleanAttribute('disk_encryption_enabled'); } set diskEncryptionEnabled(value) { this._diskEncryptionEnabled = value; } resetDiskEncryptionEnabled() { this._diskEncryptionEnabled = undefined; } // Temporarily expose input value. Use with caution. get diskEncryptionEnabledInput() { return this._diskEncryptionEnabled; } get doubleEncryptionEnabled() { return this.getBooleanAttribute('double_encryption_enabled'); } set doubleEncryptionEnabled(value) { this._doubleEncryptionEnabled = value; } resetDoubleEncryptionEnabled() { this._doubleEncryptionEnabled = undefined; } // Temporarily expose input value. Use with caution. get doubleEncryptionEnabledInput() { return this._doubleEncryptionEnabled; } get engine() { return this.getStringAttribute('engine'); } set engine(value) { this._engine = value; } resetEngine() { this._engine = undefined; } // Temporarily expose input value. Use with caution. get engineInput() { return this._engine; } 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 languageExtensions() { return cdktf.Fn.tolist(this.getListAttribute('language_extensions')); } set languageExtensions(value) { this._languageExtensions = value; } resetLanguageExtensions() { this._languageExtensions = undefined; } // Temporarily expose input value. Use with caution. get languageExtensionsInput() { return this._languageExtensions; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } 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 outboundNetworkAccessRestricted() { return this.getBooleanAttribute('outbound_network_access_restricted'); } set outboundNetworkAccessRestricted(value) { this._outboundNetworkAccessRestricted = value; } resetOutboundNetworkAccessRestricted() { this._outboundNetworkAccessRestricted = undefined; } // Temporarily expose input value. Use with caution. get outboundNetworkAccessRestrictedInput() { return this._outboundNetworkAccessRestricted; } get publicIpType() { return this.getStringAttribute('public_ip_type'); } set publicIpType(value) { this._publicIpType = value; } resetPublicIpType() { this._publicIpType = undefined; } // Temporarily expose input value. Use with caution. get publicIpTypeInput() { return this._publicIpType; } get publicNetworkAccessEnabled() { return this.getBooleanAttribute('public_network_access_enabled'); } set publicNetworkAccessEnabled(value) { this._publicNetworkAccessEnabled = value; } resetPublicNetworkAccessEnabled() { this._publicNetworkAccessEnabled = undefined; } // Temporarily expose input value. Use with caution. get publicNetworkAccessEnabledInput() { return this._publicNetworkAccessEnabled; } get purgeEnabled() { return this.getBooleanAttribute('purge_enabled'); } set purgeEnabled(value) { this._purgeEnabled = value; } resetPurgeEnabled() { this._purgeEnabled = undefined; } // Temporarily expose input value. Use with caution. get purgeEnabledInput() { return this._purgeEnabled; } get resourceGroupName() { return this.getStringAttribute('resource_group_name'); } set resourceGroupName(value) { this._resourceGroupName = value; } // Temporarily expose input value. Use with caution. get resourceGroupNameInput() { return this._resourceGroupName; } get streamingIngestionEnabled() { return this.getBooleanAttribute('streaming_ingestion_enabled'); } set streamingIngestionEnabled(value) { this._streamingIngestionEnabled = value; } resetStreamingIngestionEnabled() { this._streamingIngestionEnabled = undefined; } // Temporarily expose input value. Use with caution. get streamingIngestionEnabledInput() { return this._streamingIngestionEnabled; } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get trustedExternalTenants() { return this.getListAttribute('trusted_external_tenants'); } set trustedExternalTenants(value) { this._trustedExternalTenants = value; } resetTrustedExternalTenants() { this._trustedExternalTenants = undefined; } // Temporarily expose input value. Use with caution. get trustedExternalTenantsInput() { return this._trustedExternalTenants; } // uri - computed: true, optional: false, required: false get uri() { return this.getStringAttribute('uri'); } get zones() { return cdktf.Fn.tolist(this.getListAttribute('zones')); } set zones(value) { this._zones = value; } resetZones() { this._zones = undefined; } // Temporarily expose input value. Use with caution. get zonesInput() { return this._zones; } get identity() { return this._identity; } putIdentity(value) { this._identity.internalValue = value; } resetIdentity() { this._identity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity.internalValue; } get optimizedAutoScale() { return this._optimizedAutoScale; } putOptimizedAutoScale(value) { this._optimizedAutoScale.internalValue = value; } resetOptimizedAutoScale() { this._optimizedAutoScale.internalValue = undefined; } // Temporarily expose input value. Use with caution. get optimizedAutoScaleInput() { return this._optimizedAutoScale.internalValue; } get sku() { return this._sku; } putSku(value) { this._sku.internalValue = value; } // Temporarily expose input value. Use with caution. get skuInput() { return this._sku.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; } get virtualNetworkConfiguration() { return this._virtualNetworkConfiguration; } putVirtualNetworkConfiguration(value) { this._virtualNetworkConfiguration.internalValue = value; } resetVirtualNetworkConfiguration() { this._virtualNetworkConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get virtualNetworkConfigurationInput() { return this._virtualNetworkConfiguration.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { allowed_fqdns: cdktf.listMapper(cdktf.stringToTerraform, false)(this._allowedFqdns), allowed_ip_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(this._allowedIpRanges), auto_stop_enabled: cdktf.booleanToTerraform(this._autoStopEnabled), disk_encryption_enabled: cdktf.booleanToTerraform(this._diskEncryptionEnabled), double_encryption_enabled: cdktf.booleanToTerraform(this._doubleEncryptionEnabled), engine: cdktf.stringToTerraform(this._engine), id: cdktf.stringToTerraform(this._id), language_extensions: cdktf.listMapper(cdktf.stringToTerraform, false)(this._languageExtensions), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), outbound_network_access_restricted: cdktf.booleanToTerraform(this._outboundNetworkAccessRestricted), public_ip_type: cdktf.stringToTerraform(this._publicIpType), public_network_access_enabled: cdktf.booleanToTerraform(this._publicNetworkAccessEnabled), purge_enabled: cdktf.booleanToTerraform(this._purgeEnabled), resource_group_name: cdktf.stringToTerraform(this._resourceGroupName), streaming_ingestion_enabled: cdktf.booleanToTerraform(this._streamingIngestionEnabled), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), trusted_external_tenants: cdktf.listMapper(cdktf.stringToTerraform, false)(this._trustedExternalTenants), zones: cdktf.listMapper(cdktf.stringToTerraform, false)(this._zones), identity: kustoClusterIdentityToTerraform(this._identity.internalValue), optimized_auto_scale: kustoClusterOptimizedAutoScaleToTerraform(this._optimizedAutoScale.internalValue), sku: kustoClusterSkuToTerraform(this._sku.internalValue), timeouts: kustoClusterTimeoutsToTerraform(this._timeouts.internalValue), virtual_network_configuration: kustoClusterVirtualNetworkConfigurationToTerraform(this._virtualNetworkConfiguration.internalValue), }; } synthesizeHclAttributes() { const attrs = { allowed_fqdns: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._allowedFqdns), isBlock: false, type: "list", storageClassType: "stringList", }, allowed_ip_ranges: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._allowedIpRanges), isBlock: false, type: "list", storageClassType: "stringList", }, auto_stop_enabled: { value: cdktf.booleanToHclTerraform(this._autoStopEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, disk_encryption_enabled: { value: cdktf.booleanToHclTerraform(this._diskEncryptionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, double_encryption_enabled: { value: cdktf.booleanToHclTerraform(this._doubleEncryptionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, engine: { value: cdktf.stringToHclTerraform(this._engine), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, language_extensions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._languageExtensions), isBlock: false, type: "set", storageClassType: "stringList", }, location: { value: cdktf.stringToHclTerraform(this._location), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, outbound_network_access_restricted: { value: cdktf.booleanToHclTerraform(this._outboundNetworkAccessRestricted), isBlock: false, type: "simple", storageClassType: "boolean", }, public_ip_type: { value: cdktf.stringToHclTerraform(this._publicIpType), isBlock: false, type: "simple", storageClassType: "string", }, public_network_access_enabled: { value: cdktf.booleanToHclTerraform(this._publicNetworkAccessEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, purge_enabled: { value: cdktf.booleanToHclTerraform(this._purgeEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, resource_group_name: { value: cdktf.stringToHclTerraform(this._resourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, streaming_ingestion_enabled: { value: cdktf.booleanToHclTerraform(this._streamingIngestionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, trusted_external_tenants: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._trustedExternalTenants), isBlock: false, type: "list", storageClassType: "stringList", }, zones: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._zones), isBlock: false, type: "set", storageClassType: "stringList", }, identity: { value: kustoClusterIdentityToHclTerraform(this._identity.internalValue), isBlock: true, type: "list", storageClassType: "KustoClusterIdentityList", }, optimized_auto_scale: { value: kustoClusterOptimizedAutoScaleToHclTerraform(this._optimizedAutoScale.internalValue), isBlock: true, type: "list", storageClassType: "KustoClusterOptimizedAutoScaleList", }, sku: { value: kustoClusterSkuToHclTerraform(this._sku.internalValue), isBlock: true, type: "list", storageClassType: "KustoClusterSkuList", }, timeouts: { value: kustoClusterTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "KustoClusterTimeouts", }, virtual_network_configuration: { value: kustoClusterVirtualNetworkConfigurationToHclTerraform(this._virtualNetworkConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "KustoClusterVirtualNetworkConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.KustoCluster = KustoCluster; _f = JSII_RTTI_SYMBOL_1; KustoCluster[_f] = { fqn: "@cdktf/provider-azurerm.kustoCluster.KustoCluster", version: "12.27.0" }; // ================= // STATIC PROPERTIES // ================= KustoCluster.tfResourceType = "azurerm_kusto_cluster"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva3VzdG8tY2x1c3Rlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQVNBLCtCQUErQjtBQThIL0IsU0FBZ0IsK0JBQStCLENBQUMsTUFBbUU7SUFDakgsSUFBSSxDQUFDLEt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