UNPKG

@cdktf/provider-upcloud

Version:

Prebuilt upcloud Provider for Terraform CDK (cdktf)

1,001 lines (1,000 loc) 972 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.ManagedDatabaseOpensearch = exports.ManagedDatabaseOpensearchPropertiesOutputReference = exports.ManagedDatabaseOpensearchPropertiesShardIndexingPressureOutputReference = exports.ManagedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterOutputReference = exports.ManagedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterShardOutputReference = exports.ManagedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterNodeOutputReference = exports.ManagedDatabaseOpensearchPropertiesShardIndexingPressureOperatingFactorOutputReference = exports.ManagedDatabaseOpensearchPropertiesSegrepOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchInsightsTopQueriesOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchInsightsTopQueriesMemoryOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchInsightsTopQueriesLatencyOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchInsightsTopQueriesCpuOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchBackpressureOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchBackpressureSearchTaskOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchBackpressureSearchShardTaskOutputReference = exports.ManagedDatabaseOpensearchPropertiesSearchBackpressureNodeDuressOutputReference = exports.ManagedDatabaseOpensearchPropertiesSamlOutputReference = exports.ManagedDatabaseOpensearchPropertiesOpensearchDashboardsOutputReference = exports.ManagedDatabaseOpensearchPropertiesOpenidOutputReference = exports.ManagedDatabaseOpensearchPropertiesIndexTemplateOutputReference = exports.ManagedDatabaseOpensearchPropertiesIndexRollupOutputReference = exports.ManagedDatabaseOpensearchPropertiesDiskWatermarksOutputReference = exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference = exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference = exports.ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference = exports.ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference = exports.ManagedDatabaseOpensearchNetworkList = exports.ManagedDatabaseOpensearchNetworkOutputReference = exports.ManagedDatabaseOpensearchNodeStatesList = exports.ManagedDatabaseOpensearchNodeStatesOutputReference = exports.ManagedDatabaseOpensearchComponentsList = exports.ManagedDatabaseOpensearchComponentsOutputReference = void 0; exports.managedDatabaseOpensearchComponentsToTerraform = managedDatabaseOpensearchComponentsToTerraform; exports.managedDatabaseOpensearchComponentsToHclTerraform = managedDatabaseOpensearchComponentsToHclTerraform; exports.managedDatabaseOpensearchNodeStatesToTerraform = managedDatabaseOpensearchNodeStatesToTerraform; exports.managedDatabaseOpensearchNodeStatesToHclTerraform = managedDatabaseOpensearchNodeStatesToHclTerraform; exports.managedDatabaseOpensearchNetworkToTerraform = managedDatabaseOpensearchNetworkToTerraform; exports.managedDatabaseOpensearchNetworkToHclTerraform = managedDatabaseOpensearchNetworkToHclTerraform; exports.managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToTerraform = managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToTerraform; exports.managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToHclTerraform = managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToHclTerraform; exports.managedDatabaseOpensearchPropertiesAuthFailureListenersToTerraform = managedDatabaseOpensearchPropertiesAuthFailureListenersToTerraform; exports.managedDatabaseOpensearchPropertiesAuthFailureListenersToHclTerraform = managedDatabaseOpensearchPropertiesAuthFailureListenersToHclTerraform; exports.managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToTerraform = managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToTerraform; exports.managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToHclTerraform = managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToHclTerraform; exports.managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToTerraform = managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToTerraform; exports.managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToHclTerraform = managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToHclTerraform; exports.managedDatabaseOpensearchPropertiesDiskWatermarksToTerraform = managedDatabaseOpensearchPropertiesDiskWatermarksToTerraform; exports.managedDatabaseOpensearchPropertiesDiskWatermarksToHclTerraform = managedDatabaseOpensearchPropertiesDiskWatermarksToHclTerraform; exports.managedDatabaseOpensearchPropertiesIndexRollupToTerraform = managedDatabaseOpensearchPropertiesIndexRollupToTerraform; exports.managedDatabaseOpensearchPropertiesIndexRollupToHclTerraform = managedDatabaseOpensearchPropertiesIndexRollupToHclTerraform; exports.managedDatabaseOpensearchPropertiesIndexTemplateToTerraform = managedDatabaseOpensearchPropertiesIndexTemplateToTerraform; exports.managedDatabaseOpensearchPropertiesIndexTemplateToHclTerraform = managedDatabaseOpensearchPropertiesIndexTemplateToHclTerraform; exports.managedDatabaseOpensearchPropertiesOpenidToTerraform = managedDatabaseOpensearchPropertiesOpenidToTerraform; exports.managedDatabaseOpensearchPropertiesOpenidToHclTerraform = managedDatabaseOpensearchPropertiesOpenidToHclTerraform; exports.managedDatabaseOpensearchPropertiesOpensearchDashboardsToTerraform = managedDatabaseOpensearchPropertiesOpensearchDashboardsToTerraform; exports.managedDatabaseOpensearchPropertiesOpensearchDashboardsToHclTerraform = managedDatabaseOpensearchPropertiesOpensearchDashboardsToHclTerraform; exports.managedDatabaseOpensearchPropertiesSamlToTerraform = managedDatabaseOpensearchPropertiesSamlToTerraform; exports.managedDatabaseOpensearchPropertiesSamlToHclTerraform = managedDatabaseOpensearchPropertiesSamlToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureNodeDuressToTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureNodeDuressToTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureNodeDuressToHclTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureNodeDuressToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureSearchShardTaskToTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureSearchShardTaskToTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureSearchShardTaskToHclTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureSearchShardTaskToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureSearchTaskToTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureSearchTaskToTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureSearchTaskToHclTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureSearchTaskToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureToTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureToTerraform; exports.managedDatabaseOpensearchPropertiesSearchBackpressureToHclTerraform = managedDatabaseOpensearchPropertiesSearchBackpressureToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesCpuToTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesCpuToTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesCpuToHclTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesCpuToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesLatencyToTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesLatencyToTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesLatencyToHclTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesLatencyToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesMemoryToTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesMemoryToTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesMemoryToHclTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesMemoryToHclTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesToTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesToTerraform; exports.managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesToHclTerraform = managedDatabaseOpensearchPropertiesSearchInsightsTopQueriesToHclTerraform; exports.managedDatabaseOpensearchPropertiesSegrepToTerraform = managedDatabaseOpensearchPropertiesSegrepToTerraform; exports.managedDatabaseOpensearchPropertiesSegrepToHclTerraform = managedDatabaseOpensearchPropertiesSegrepToHclTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressureOperatingFactorToTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressureOperatingFactorToTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressureOperatingFactorToHclTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressureOperatingFactorToHclTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterNodeToTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterNodeToTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterNodeToHclTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterNodeToHclTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterShardToTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterShardToTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterShardToHclTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterShardToHclTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterToTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterToTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterToHclTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressurePrimaryParameterToHclTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressureToTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressureToTerraform; exports.managedDatabaseOpensearchPropertiesShardIndexingPressureToHclTerraform = managedDatabaseOpensearchPropertiesShardIndexingPressureToHclTerraform; exports.managedDatabaseOpensearchPropertiesToTerraform = managedDatabaseOpensearchPropertiesToTerraform; exports.managedDatabaseOpensearchPropertiesToHclTerraform = managedDatabaseOpensearchPropertiesToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function managedDatabaseOpensearchComponentsToTerraform(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 {}; } function managedDatabaseOpensearchComponentsToHclTerraform(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 = {}; return attrs; } class ManagedDatabaseOpensearchComponentsOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // component - computed: true, optional: false, required: false get component() { return this.getStringAttribute('component'); } // host - computed: true, optional: false, required: false get host() { return this.getStringAttribute('host'); } // port - computed: true, optional: false, required: false get port() { return this.getNumberAttribute('port'); } // route - computed: true, optional: false, required: false get route() { return this.getStringAttribute('route'); } // usage - computed: true, optional: false, required: false get usage() { return this.getStringAttribute('usage'); } } exports.ManagedDatabaseOpensearchComponentsOutputReference = ManagedDatabaseOpensearchComponentsOutputReference; _a = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchComponentsOutputReference[_a] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchComponentsOutputReference", version: "14.20.5" }; class ManagedDatabaseOpensearchComponentsList 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 ManagedDatabaseOpensearchComponentsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ManagedDatabaseOpensearchComponentsList = ManagedDatabaseOpensearchComponentsList; _b = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchComponentsList[_b] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchComponentsList", version: "14.20.5" }; function managedDatabaseOpensearchNodeStatesToTerraform(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 {}; } function managedDatabaseOpensearchNodeStatesToHclTerraform(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 = {}; return attrs; } class ManagedDatabaseOpensearchNodeStatesOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // role - computed: true, optional: false, required: false get role() { return this.getStringAttribute('role'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.ManagedDatabaseOpensearchNodeStatesOutputReference = ManagedDatabaseOpensearchNodeStatesOutputReference; _c = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchNodeStatesOutputReference[_c] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchNodeStatesOutputReference", version: "14.20.5" }; class ManagedDatabaseOpensearchNodeStatesList 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 ManagedDatabaseOpensearchNodeStatesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ManagedDatabaseOpensearchNodeStatesList = ManagedDatabaseOpensearchNodeStatesList; _d = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchNodeStatesList[_d] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchNodeStatesList", version: "14.20.5" }; function managedDatabaseOpensearchNetworkToTerraform(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 { family: cdktf.stringToTerraform(struct.family), name: cdktf.stringToTerraform(struct.name), type: cdktf.stringToTerraform(struct.type), uuid: cdktf.stringToTerraform(struct.uuid), }; } function managedDatabaseOpensearchNetworkToHclTerraform(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 = { family: { value: cdktf.stringToHclTerraform(struct.family), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, uuid: { value: cdktf.stringToHclTerraform(struct.uuid), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ManagedDatabaseOpensearchNetworkOutputReference 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._family !== undefined) { hasAnyValues = true; internalValueResult.family = this._family; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._uuid !== undefined) { hasAnyValues = true; internalValueResult.uuid = this._uuid; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._family = undefined; this._name = undefined; this._type = undefined; this._uuid = 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._family = value.family; this._name = value.name; this._type = value.type; this._uuid = value.uuid; } } get family() { return this.getStringAttribute('family'); } set family(value) { this._family = value; } // Temporarily expose input value. Use with caution. get familyInput() { return this._family; } 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 type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get uuid() { return this.getStringAttribute('uuid'); } set uuid(value) { this._uuid = value; } // Temporarily expose input value. Use with caution. get uuidInput() { return this._uuid; } } exports.ManagedDatabaseOpensearchNetworkOutputReference = ManagedDatabaseOpensearchNetworkOutputReference; _e = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchNetworkOutputReference[_e] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchNetworkOutputReference", version: "14.20.5" }; class ManagedDatabaseOpensearchNetworkList 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 ManagedDatabaseOpensearchNetworkOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ManagedDatabaseOpensearchNetworkList = ManagedDatabaseOpensearchNetworkList; _f = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchNetworkList[_f] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchNetworkList", version: "14.20.5" }; function managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToTerraform(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 { allowed_tries: cdktf.numberToTerraform(struct.allowedTries), authentication_backend: cdktf.stringToTerraform(struct.authenticationBackend), block_expiry_seconds: cdktf.numberToTerraform(struct.blockExpirySeconds), max_blocked_clients: cdktf.numberToTerraform(struct.maxBlockedClients), max_tracked_clients: cdktf.numberToTerraform(struct.maxTrackedClients), time_window_seconds: cdktf.numberToTerraform(struct.timeWindowSeconds), type: cdktf.stringToTerraform(struct.type), }; } function managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToHclTerraform(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 = { allowed_tries: { value: cdktf.numberToHclTerraform(struct.allowedTries), isBlock: false, type: "simple", storageClassType: "number", }, authentication_backend: { value: cdktf.stringToHclTerraform(struct.authenticationBackend), isBlock: false, type: "simple", storageClassType: "string", }, block_expiry_seconds: { value: cdktf.numberToHclTerraform(struct.blockExpirySeconds), isBlock: false, type: "simple", storageClassType: "number", }, max_blocked_clients: { value: cdktf.numberToHclTerraform(struct.maxBlockedClients), isBlock: false, type: "simple", storageClassType: "number", }, max_tracked_clients: { value: cdktf.numberToHclTerraform(struct.maxTrackedClients), isBlock: false, type: "simple", storageClassType: "number", }, time_window_seconds: { value: cdktf.numberToHclTerraform(struct.timeWindowSeconds), isBlock: false, type: "simple", storageClassType: "number", }, 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)); } class ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference 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._allowedTries !== undefined) { hasAnyValues = true; internalValueResult.allowedTries = this._allowedTries; } if (this._authenticationBackend !== undefined) { hasAnyValues = true; internalValueResult.authenticationBackend = this._authenticationBackend; } if (this._blockExpirySeconds !== undefined) { hasAnyValues = true; internalValueResult.blockExpirySeconds = this._blockExpirySeconds; } if (this._maxBlockedClients !== undefined) { hasAnyValues = true; internalValueResult.maxBlockedClients = this._maxBlockedClients; } if (this._maxTrackedClients !== undefined) { hasAnyValues = true; internalValueResult.maxTrackedClients = this._maxTrackedClients; } if (this._timeWindowSeconds !== undefined) { hasAnyValues = true; internalValueResult.timeWindowSeconds = this._timeWindowSeconds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedTries = undefined; this._authenticationBackend = undefined; this._blockExpirySeconds = undefined; this._maxBlockedClients = undefined; this._maxTrackedClients = undefined; this._timeWindowSeconds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedTries = value.allowedTries; this._authenticationBackend = value.authenticationBackend; this._blockExpirySeconds = value.blockExpirySeconds; this._maxBlockedClients = value.maxBlockedClients; this._maxTrackedClients = value.maxTrackedClients; this._timeWindowSeconds = value.timeWindowSeconds; this._type = value.type; } } get allowedTries() { return this.getNumberAttribute('allowed_tries'); } set allowedTries(value) { this._allowedTries = value; } resetAllowedTries() { this._allowedTries = undefined; } // Temporarily expose input value. Use with caution. get allowedTriesInput() { return this._allowedTries; } get authenticationBackend() { return this.getStringAttribute('authentication_backend'); } set authenticationBackend(value) { this._authenticationBackend = value; } resetAuthenticationBackend() { this._authenticationBackend = undefined; } // Temporarily expose input value. Use with caution. get authenticationBackendInput() { return this._authenticationBackend; } get blockExpirySeconds() { return this.getNumberAttribute('block_expiry_seconds'); } set blockExpirySeconds(value) { this._blockExpirySeconds = value; } resetBlockExpirySeconds() { this._blockExpirySeconds = undefined; } // Temporarily expose input value. Use with caution. get blockExpirySecondsInput() { return this._blockExpirySeconds; } get maxBlockedClients() { return this.getNumberAttribute('max_blocked_clients'); } set maxBlockedClients(value) { this._maxBlockedClients = value; } resetMaxBlockedClients() { this._maxBlockedClients = undefined; } // Temporarily expose input value. Use with caution. get maxBlockedClientsInput() { return this._maxBlockedClients; } get maxTrackedClients() { return this.getNumberAttribute('max_tracked_clients'); } set maxTrackedClients(value) { this._maxTrackedClients = value; } resetMaxTrackedClients() { this._maxTrackedClients = undefined; } // Temporarily expose input value. Use with caution. get maxTrackedClientsInput() { return this._maxTrackedClients; } get timeWindowSeconds() { return this.getNumberAttribute('time_window_seconds'); } set timeWindowSeconds(value) { this._timeWindowSeconds = value; } resetTimeWindowSeconds() { this._timeWindowSeconds = undefined; } // Temporarily expose input value. Use with caution. get timeWindowSecondsInput() { return this._timeWindowSeconds; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference = ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference; _g = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference[_g] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference", version: "14.20.5" }; function managedDatabaseOpensearchPropertiesAuthFailureListenersToTerraform(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 { internal_authentication_backend_limiting: managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToTerraform(struct.internalAuthenticationBackendLimiting), }; } function managedDatabaseOpensearchPropertiesAuthFailureListenersToHclTerraform(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 = { internal_authentication_backend_limiting: { value: managedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingToHclTerraform(struct.internalAuthenticationBackendLimiting), isBlock: true, type: "list", storageClassType: "ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference 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; // internal_authentication_backend_limiting - computed: false, optional: true, required: false this._internalAuthenticationBackendLimiting = new ManagedDatabaseOpensearchPropertiesAuthFailureListenersInternalAuthenticationBackendLimitingOutputReference(this, "internal_authentication_backend_limiting"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._internalAuthenticationBackendLimiting?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.internalAuthenticationBackendLimiting = this._internalAuthenticationBackendLimiting?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._internalAuthenticationBackendLimiting.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._internalAuthenticationBackendLimiting.internalValue = value.internalAuthenticationBackendLimiting; } } get internalAuthenticationBackendLimiting() { return this._internalAuthenticationBackendLimiting; } putInternalAuthenticationBackendLimiting(value) { this._internalAuthenticationBackendLimiting.internalValue = value; } resetInternalAuthenticationBackendLimiting() { this._internalAuthenticationBackendLimiting.internalValue = undefined; } // Temporarily expose input value. Use with caution. get internalAuthenticationBackendLimitingInput() { return this._internalAuthenticationBackendLimiting.internalValue; } } exports.ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference = ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference; _h = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference[_h] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchPropertiesAuthFailureListenersOutputReference", version: "14.20.5" }; function managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToTerraform(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 { debug: cdktf.stringToTerraform(struct.debug), info: cdktf.stringToTerraform(struct.info), trace: cdktf.stringToTerraform(struct.trace), warn: cdktf.stringToTerraform(struct.warn), }; } function managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToHclTerraform(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 = { debug: { value: cdktf.stringToHclTerraform(struct.debug), isBlock: false, type: "simple", storageClassType: "string", }, info: { value: cdktf.stringToHclTerraform(struct.info), isBlock: false, type: "simple", storageClassType: "string", }, trace: { value: cdktf.stringToHclTerraform(struct.trace), isBlock: false, type: "simple", storageClassType: "string", }, warn: { value: cdktf.stringToHclTerraform(struct.warn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference 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._debug !== undefined) { hasAnyValues = true; internalValueResult.debug = this._debug; } if (this._info !== undefined) { hasAnyValues = true; internalValueResult.info = this._info; } if (this._trace !== undefined) { hasAnyValues = true; internalValueResult.trace = this._trace; } if (this._warn !== undefined) { hasAnyValues = true; internalValueResult.warn = this._warn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._debug = undefined; this._info = undefined; this._trace = undefined; this._warn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._debug = value.debug; this._info = value.info; this._trace = value.trace; this._warn = value.warn; } } get debug() { return this.getStringAttribute('debug'); } set debug(value) { this._debug = value; } resetDebug() { this._debug = undefined; } // Temporarily expose input value. Use with caution. get debugInput() { return this._debug; } get info() { return this.getStringAttribute('info'); } set info(value) { this._info = value; } resetInfo() { this._info = undefined; } // Temporarily expose input value. Use with caution. get infoInput() { return this._info; } get trace() { return this.getStringAttribute('trace'); } set trace(value) { this._trace = value; } resetTrace() { this._trace = undefined; } // Temporarily expose input value. Use with caution. get traceInput() { return this._trace; } get warn() { return this.getStringAttribute('warn'); } set warn(value) { this._warn = value; } resetWarn() { this._warn = undefined; } // Temporarily expose input value. Use with caution. get warnInput() { return this._warn; } } exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference = ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference; _j = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference[_j] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference", version: "14.20.5" }; function managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToTerraform(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 { level: cdktf.stringToTerraform(struct.level), threshold: managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToTerraform(struct.threshold), }; } function managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogToHclTerraform(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 = { level: { value: cdktf.stringToHclTerraform(struct.level), isBlock: false, type: "simple", storageClassType: "string", }, threshold: { value: managedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdToHclTerraform(struct.threshold), isBlock: true, type: "list", storageClassType: "ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference 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; // threshold - computed: false, optional: true, required: false this._threshold = new ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference(this, "threshold"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._level !== undefined) { hasAnyValues = true; internalValueResult.level = this._level; } if (this._threshold?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.threshold = this._threshold?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._level = undefined; this._threshold.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._level = value.level; this._threshold.internalValue = value.threshold; } } get level() { return this.getStringAttribute('level'); } set level(value) { this._level = value; } resetLevel() { this._level = undefined; } // Temporarily expose input value. Use with caution. get levelInput() { return this._level; } get threshold() { return this._threshold; } putThreshold(value) { this._threshold.internalValue = value; } resetThreshold() { this._threshold.internalValue = undefined; } // Temporarily expose input value. Use with caution. get thresholdInput() { return this._threshold.internalValue; } } exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference = ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference; _k = JSII_RTTI_SYMBOL_1; ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference[_k] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference", version: "14.20.5" }; function managedDatabaseOpensearchPropertiesDiskWatermarksToTerraform(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 { flood_stage: cdktf.numberToTerraform(struct.floodStage), high: cdktf.numberToTerraform(struct.high), low: cdktf.numberToTerraform(struct.low), }; } function managedDatabaseOpensearchPropertiesDiskWatermarksToHclTerraform(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 = { flood_stage: { value: cdktf.numberToHclTerraform(struct.floodStage), isBlock: false, type: "simple", storageClassType: "number", }, high: { value: cdktf.numberToHclTerraform(struct.high), isBlock: false, type: "simple", storageClassType: "number", }, low: { value: cdktf.numberToHclTerraform(struct.low),