@cdktf/provider-upcloud
Version:
Prebuilt upcloud Provider for Terraform CDK (cdktf)
960 lines (959 loc) • 1.05 MB
JavaScript
"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;
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.ManagedDatabaseOpensearchPropertiesRemoteStoreOutputReference = exports.ManagedDatabaseOpensearchPropertiesOpensearchDashboardsOutputReference = exports.ManagedDatabaseOpensearchPropertiesOpenidOutputReference = exports.ManagedDatabaseOpensearchPropertiesIndexTemplateOutputReference = exports.ManagedDatabaseOpensearchPropertiesIndexRollupOutputReference = exports.ManagedDatabaseOpensearchPropertiesDiskWatermarksOutputReference = exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogOutputReference = exports.ManagedDatabaseOpensearchPropertiesClusterSearchRequestSlowlogThresholdOutputReference = exports.ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference = 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.managedDatabaseOpensearchPropertiesClusterRemoteStoreToTerraform = managedDatabaseOpensearchPropertiesClusterRemoteStoreToTerraform;
exports.managedDatabaseOpensearchPropertiesClusterRemoteStoreToHclTerraform = managedDatabaseOpensearchPropertiesClusterRemoteStoreToHclTerraform;
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.managedDatabaseOpensearchPropertiesRemoteStoreToTerraform = managedDatabaseOpensearchPropertiesRemoteStoreToTerraform;
exports.managedDatabaseOpensearchPropertiesRemoteStoreToHclTerraform = managedDatabaseOpensearchPropertiesRemoteStoreToHclTerraform;
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
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: "15.1.3" };
function managedDatabaseOpensearchPropertiesClusterRemoteStoreToTerraform(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 {
state_global_metadata_upload_timeout: cdktf.stringToTerraform(struct.stateGlobalMetadataUploadTimeout),
state_metadata_manifest_upload_timeout: cdktf.stringToTerraform(struct.stateMetadataManifestUploadTimeout),
translog_buffer_interval: cdktf.stringToTerraform(struct.translogBufferInterval),
translog_max_readers: cdktf.numberToTerraform(struct.translogMaxReaders),
};
}
function managedDatabaseOpensearchPropertiesClusterRemoteStoreToHclTerraform(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 = {
state_global_metadata_upload_timeout: {
value: cdktf.stringToHclTerraform(struct.stateGlobalMetadataUploadTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
state_metadata_manifest_upload_timeout: {
value: cdktf.stringToHclTerraform(struct.stateMetadataManifestUploadTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
translog_buffer_interval: {
value: cdktf.stringToHclTerraform(struct.translogBufferInterval),
isBlock: false,
type: "simple",
storageClassType: "string",
},
translog_max_readers: {
value: cdktf.numberToHclTerraform(struct.translogMaxReaders),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference 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._stateGlobalMetadataUploadTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.stateGlobalMetadataUploadTimeout = this._stateGlobalMetadataUploadTimeout;
}
if (this._stateMetadataManifestUploadTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.stateMetadataManifestUploadTimeout = this._stateMetadataManifestUploadTimeout;
}
if (this._translogBufferInterval !== undefined) {
hasAnyValues = true;
internalValueResult.translogBufferInterval = this._translogBufferInterval;
}
if (this._translogMaxReaders !== undefined) {
hasAnyValues = true;
internalValueResult.translogMaxReaders = this._translogMaxReaders;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._stateGlobalMetadataUploadTimeout = undefined;
this._stateMetadataManifestUploadTimeout = undefined;
this._translogBufferInterval = undefined;
this._translogMaxReaders = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._stateGlobalMetadataUploadTimeout = value.stateGlobalMetadataUploadTimeout;
this._stateMetadataManifestUploadTimeout = value.stateMetadataManifestUploadTimeout;
this._translogBufferInterval = value.translogBufferInterval;
this._translogMaxReaders = value.translogMaxReaders;
}
}
get stateGlobalMetadataUploadTimeout() {
return this.getStringAttribute('state_global_metadata_upload_timeout');
}
set stateGlobalMetadataUploadTimeout(value) {
this._stateGlobalMetadataUploadTimeout = value;
}
resetStateGlobalMetadataUploadTimeout() {
this._stateGlobalMetadataUploadTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get stateGlobalMetadataUploadTimeoutInput() {
return this._stateGlobalMetadataUploadTimeout;
}
get stateMetadataManifestUploadTimeout() {
return this.getStringAttribute('state_metadata_manifest_upload_timeout');
}
set stateMetadataManifestUploadTimeout(value) {
this._stateMetadataManifestUploadTimeout = value;
}
resetStateMetadataManifestUploadTimeout() {
this._stateMetadataManifestUploadTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get stateMetadataManifestUploadTimeoutInput() {
return this._stateMetadataManifestUploadTimeout;
}
get translogBufferInterval() {
return this.getStringAttribute('translog_buffer_interval');
}
set translogBufferInterval(value) {
this._translogBufferInterval = value;
}
resetTranslogBufferInterval() {
this._translogBufferInterval = undefined;
}
// Temporarily expose input value. Use with caution.
get translogBufferIntervalInput() {
return this._translogBufferInterval;
}
get translogMaxReaders() {
return this.getNumberAttribute('translog_max_readers');
}
set translogMaxReaders(value) {
this._translogMaxReaders = value;
}
resetTranslogMaxReaders() {
this._translogMaxReaders = undefined;
}
// Temporarily expose input value. Use with caution.
get translogMaxReadersInput() {
return this._translogMaxReaders;
}
}
exports.ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference = ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference;
_j = JSII_RTTI_SYMBOL_1;
ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference[_j] = { fqn: "@cdktf/provider-upcloud.managedDatabaseOpensearch.ManagedDatabaseOpensearchPropertiesClusterRemoteStoreOutputReference", version: "15.1.3" };
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;