UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,025 lines 269 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseCloudVmCluster = exports.DatabaseCloudVmClusterTimeoutsOutputReference = exports.databaseCloudVmClusterTimeoutsToHclTerraform = exports.databaseCloudVmClusterTimeoutsToTerraform = exports.DatabaseCloudVmClusterFileSystemConfigurationDetailsList = exports.DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference = exports.databaseCloudVmClusterFileSystemConfigurationDetailsToHclTerraform = exports.databaseCloudVmClusterFileSystemConfigurationDetailsToTerraform = exports.DatabaseCloudVmClusterDataCollectionOptionsOutputReference = exports.databaseCloudVmClusterDataCollectionOptionsToHclTerraform = exports.databaseCloudVmClusterDataCollectionOptionsToTerraform = exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsToHclTerraform = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsToTerraform = exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToHclTerraform = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToTerraform = exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform = exports.databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform = exports.DatabaseCloudVmClusterIormConfigCacheList = exports.DatabaseCloudVmClusterIormConfigCacheOutputReference = exports.databaseCloudVmClusterIormConfigCacheToHclTerraform = exports.databaseCloudVmClusterIormConfigCacheToTerraform = exports.DatabaseCloudVmClusterIormConfigCacheDbPlansList = exports.DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference = exports.databaseCloudVmClusterIormConfigCacheDbPlansToHclTerraform = exports.databaseCloudVmClusterIormConfigCacheDbPlansToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseCloudVmClusterIormConfigCacheDbPlansToTerraform(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 {}; } exports.databaseCloudVmClusterIormConfigCacheDbPlansToTerraform = databaseCloudVmClusterIormConfigCacheDbPlansToTerraform; function databaseCloudVmClusterIormConfigCacheDbPlansToHclTerraform(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; } exports.databaseCloudVmClusterIormConfigCacheDbPlansToHclTerraform = databaseCloudVmClusterIormConfigCacheDbPlansToHclTerraform; class DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference 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; } } // db_name - computed: true, optional: false, required: false get dbName() { return this.getStringAttribute('db_name'); } // flash_cache_limit - computed: true, optional: false, required: false get flashCacheLimit() { return this.getStringAttribute('flash_cache_limit'); } // share - computed: true, optional: false, required: false get share() { return this.getNumberAttribute('share'); } } exports.DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference = DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference", version: "1.0.0" }; class DatabaseCloudVmClusterIormConfigCacheDbPlansList 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 DatabaseCloudVmClusterIormConfigCacheDbPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudVmClusterIormConfigCacheDbPlansList = DatabaseCloudVmClusterIormConfigCacheDbPlansList; _b = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterIormConfigCacheDbPlansList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterIormConfigCacheDbPlansList", version: "1.0.0" }; function databaseCloudVmClusterIormConfigCacheToTerraform(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 {}; } exports.databaseCloudVmClusterIormConfigCacheToTerraform = databaseCloudVmClusterIormConfigCacheToTerraform; function databaseCloudVmClusterIormConfigCacheToHclTerraform(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; } exports.databaseCloudVmClusterIormConfigCacheToHclTerraform = databaseCloudVmClusterIormConfigCacheToHclTerraform; class DatabaseCloudVmClusterIormConfigCacheOutputReference 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; // db_plans - computed: true, optional: false, required: false this._dbPlans = new DatabaseCloudVmClusterIormConfigCacheDbPlansList(this, "db_plans", 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; } } get dbPlans() { return this._dbPlans; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // objective - computed: true, optional: false, required: false get objective() { return this.getStringAttribute('objective'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.DatabaseCloudVmClusterIormConfigCacheOutputReference = DatabaseCloudVmClusterIormConfigCacheOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterIormConfigCacheOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterIormConfigCacheOutputReference", version: "1.0.0" }; class DatabaseCloudVmClusterIormConfigCacheList 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 DatabaseCloudVmClusterIormConfigCacheOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudVmClusterIormConfigCacheList = DatabaseCloudVmClusterIormConfigCacheList; _d = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterIormConfigCacheList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterIormConfigCacheList", version: "1.0.0" }; function databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform(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 { apply_update_preferred_end_time: cdktf.stringToTerraform(struct.applyUpdatePreferredEndTime), apply_update_preferred_start_time: cdktf.stringToTerraform(struct.applyUpdatePreferredStartTime), }; } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform; function databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform(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 = { apply_update_preferred_end_time: { value: cdktf.stringToHclTerraform(struct.applyUpdatePreferredEndTime), isBlock: false, type: "simple", storageClassType: "string", }, apply_update_preferred_start_time: { value: cdktf.stringToHclTerraform(struct.applyUpdatePreferredStartTime), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform; class DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference 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._applyUpdatePreferredEndTime !== undefined) { hasAnyValues = true; internalValueResult.applyUpdatePreferredEndTime = this._applyUpdatePreferredEndTime; } if (this._applyUpdatePreferredStartTime !== undefined) { hasAnyValues = true; internalValueResult.applyUpdatePreferredStartTime = this._applyUpdatePreferredStartTime; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._applyUpdatePreferredEndTime = undefined; this._applyUpdatePreferredStartTime = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._applyUpdatePreferredEndTime = value.applyUpdatePreferredEndTime; this._applyUpdatePreferredStartTime = value.applyUpdatePreferredStartTime; } } get applyUpdatePreferredEndTime() { return this.getStringAttribute('apply_update_preferred_end_time'); } set applyUpdatePreferredEndTime(value) { this._applyUpdatePreferredEndTime = value; } resetApplyUpdatePreferredEndTime() { this._applyUpdatePreferredEndTime = undefined; } // Temporarily expose input value. Use with caution. get applyUpdatePreferredEndTimeInput() { return this._applyUpdatePreferredEndTime; } get applyUpdatePreferredStartTime() { return this.getStringAttribute('apply_update_preferred_start_time'); } set applyUpdatePreferredStartTime(value) { this._applyUpdatePreferredStartTime = value; } resetApplyUpdatePreferredStartTime() { this._applyUpdatePreferredStartTime = undefined; } // Temporarily expose input value. Use with caution. get applyUpdatePreferredStartTimeInput() { return this._applyUpdatePreferredStartTime; } } exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference = DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference", version: "1.0.0" }; function databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToTerraform(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 { freeze_period_end_time: cdktf.stringToTerraform(struct.freezePeriodEndTime), freeze_period_start_time: cdktf.stringToTerraform(struct.freezePeriodStartTime), }; } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToTerraform; function databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToHclTerraform(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 = { freeze_period_end_time: { value: cdktf.stringToHclTerraform(struct.freezePeriodEndTime), isBlock: false, type: "simple", storageClassType: "string", }, freeze_period_start_time: { value: cdktf.stringToHclTerraform(struct.freezePeriodStartTime), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToHclTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToHclTerraform; class DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference 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._freezePeriodEndTime !== undefined) { hasAnyValues = true; internalValueResult.freezePeriodEndTime = this._freezePeriodEndTime; } if (this._freezePeriodStartTime !== undefined) { hasAnyValues = true; internalValueResult.freezePeriodStartTime = this._freezePeriodStartTime; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._freezePeriodEndTime = undefined; this._freezePeriodStartTime = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._freezePeriodEndTime = value.freezePeriodEndTime; this._freezePeriodStartTime = value.freezePeriodStartTime; } } get freezePeriodEndTime() { return this.getStringAttribute('freeze_period_end_time'); } set freezePeriodEndTime(value) { this._freezePeriodEndTime = value; } resetFreezePeriodEndTime() { this._freezePeriodEndTime = undefined; } // Temporarily expose input value. Use with caution. get freezePeriodEndTimeInput() { return this._freezePeriodEndTime; } get freezePeriodStartTime() { return this.getStringAttribute('freeze_period_start_time'); } set freezePeriodStartTime(value) { this._freezePeriodStartTime = value; } resetFreezePeriodStartTime() { this._freezePeriodStartTime = undefined; } // Temporarily expose input value. Use with caution. get freezePeriodStartTimeInput() { return this._freezePeriodStartTime; } } exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference = DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference; _f = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference", version: "1.0.0" }; function databaseCloudVmClusterCloudAutomationUpdateDetailsToTerraform(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 { is_early_adoption_enabled: cdktf.booleanToTerraform(struct.isEarlyAdoptionEnabled), is_freeze_period_enabled: cdktf.booleanToTerraform(struct.isFreezePeriodEnabled), apply_update_time_preference: databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform(struct.applyUpdateTimePreference), freeze_period: databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToTerraform(struct.freezePeriod), }; } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsToTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsToTerraform; function databaseCloudVmClusterCloudAutomationUpdateDetailsToHclTerraform(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 = { is_early_adoption_enabled: { value: cdktf.booleanToHclTerraform(struct.isEarlyAdoptionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_freeze_period_enabled: { value: cdktf.booleanToHclTerraform(struct.isFreezePeriodEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, apply_update_time_preference: { value: databaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform(struct.applyUpdateTimePreference), isBlock: true, type: "list", storageClassType: "DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList", }, freeze_period: { value: databaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodToHclTerraform(struct.freezePeriod), isBlock: true, type: "list", storageClassType: "DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudVmClusterCloudAutomationUpdateDetailsToHclTerraform = databaseCloudVmClusterCloudAutomationUpdateDetailsToHclTerraform; class DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference 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; // apply_update_time_preference - computed: false, optional: true, required: false this._applyUpdateTimePreference = new DatabaseCloudVmClusterCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference(this, "apply_update_time_preference"); // freeze_period - computed: false, optional: true, required: false this._freezePeriod = new DatabaseCloudVmClusterCloudAutomationUpdateDetailsFreezePeriodOutputReference(this, "freeze_period"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isEarlyAdoptionEnabled !== undefined) { hasAnyValues = true; internalValueResult.isEarlyAdoptionEnabled = this._isEarlyAdoptionEnabled; } if (this._isFreezePeriodEnabled !== undefined) { hasAnyValues = true; internalValueResult.isFreezePeriodEnabled = this._isFreezePeriodEnabled; } if (this._applyUpdateTimePreference?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.applyUpdateTimePreference = this._applyUpdateTimePreference?.internalValue; } if (this._freezePeriod?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.freezePeriod = this._freezePeriod?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isEarlyAdoptionEnabled = undefined; this._isFreezePeriodEnabled = undefined; this._applyUpdateTimePreference.internalValue = undefined; this._freezePeriod.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isEarlyAdoptionEnabled = value.isEarlyAdoptionEnabled; this._isFreezePeriodEnabled = value.isFreezePeriodEnabled; this._applyUpdateTimePreference.internalValue = value.applyUpdateTimePreference; this._freezePeriod.internalValue = value.freezePeriod; } } get isEarlyAdoptionEnabled() { return this.getBooleanAttribute('is_early_adoption_enabled'); } set isEarlyAdoptionEnabled(value) { this._isEarlyAdoptionEnabled = value; } resetIsEarlyAdoptionEnabled() { this._isEarlyAdoptionEnabled = undefined; } // Temporarily expose input value. Use with caution. get isEarlyAdoptionEnabledInput() { return this._isEarlyAdoptionEnabled; } get isFreezePeriodEnabled() { return this.getBooleanAttribute('is_freeze_period_enabled'); } set isFreezePeriodEnabled(value) { this._isFreezePeriodEnabled = value; } resetIsFreezePeriodEnabled() { this._isFreezePeriodEnabled = undefined; } // Temporarily expose input value. Use with caution. get isFreezePeriodEnabledInput() { return this._isFreezePeriodEnabled; } get applyUpdateTimePreference() { return this._applyUpdateTimePreference; } putApplyUpdateTimePreference(value) { this._applyUpdateTimePreference.internalValue = value; } resetApplyUpdateTimePreference() { this._applyUpdateTimePreference.internalValue = undefined; } // Temporarily expose input value. Use with caution. get applyUpdateTimePreferenceInput() { return this._applyUpdateTimePreference.internalValue; } get freezePeriod() { return this._freezePeriod; } putFreezePeriod(value) { this._freezePeriod.internalValue = value; } resetFreezePeriod() { this._freezePeriod.internalValue = undefined; } // Temporarily expose input value. Use with caution. get freezePeriodInput() { return this._freezePeriod.internalValue; } } exports.DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference = DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference", version: "1.0.0" }; function databaseCloudVmClusterDataCollectionOptionsToTerraform(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 { is_diagnostics_events_enabled: cdktf.booleanToTerraform(struct.isDiagnosticsEventsEnabled), is_health_monitoring_enabled: cdktf.booleanToTerraform(struct.isHealthMonitoringEnabled), is_incident_logs_enabled: cdktf.booleanToTerraform(struct.isIncidentLogsEnabled), }; } exports.databaseCloudVmClusterDataCollectionOptionsToTerraform = databaseCloudVmClusterDataCollectionOptionsToTerraform; function databaseCloudVmClusterDataCollectionOptionsToHclTerraform(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 = { is_diagnostics_events_enabled: { value: cdktf.booleanToHclTerraform(struct.isDiagnosticsEventsEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_health_monitoring_enabled: { value: cdktf.booleanToHclTerraform(struct.isHealthMonitoringEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_incident_logs_enabled: { value: cdktf.booleanToHclTerraform(struct.isIncidentLogsEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudVmClusterDataCollectionOptionsToHclTerraform = databaseCloudVmClusterDataCollectionOptionsToHclTerraform; class DatabaseCloudVmClusterDataCollectionOptionsOutputReference 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._isDiagnosticsEventsEnabled !== undefined) { hasAnyValues = true; internalValueResult.isDiagnosticsEventsEnabled = this._isDiagnosticsEventsEnabled; } if (this._isHealthMonitoringEnabled !== undefined) { hasAnyValues = true; internalValueResult.isHealthMonitoringEnabled = this._isHealthMonitoringEnabled; } if (this._isIncidentLogsEnabled !== undefined) { hasAnyValues = true; internalValueResult.isIncidentLogsEnabled = this._isIncidentLogsEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isDiagnosticsEventsEnabled = undefined; this._isHealthMonitoringEnabled = undefined; this._isIncidentLogsEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isDiagnosticsEventsEnabled = value.isDiagnosticsEventsEnabled; this._isHealthMonitoringEnabled = value.isHealthMonitoringEnabled; this._isIncidentLogsEnabled = value.isIncidentLogsEnabled; } } get isDiagnosticsEventsEnabled() { return this.getBooleanAttribute('is_diagnostics_events_enabled'); } set isDiagnosticsEventsEnabled(value) { this._isDiagnosticsEventsEnabled = value; } resetIsDiagnosticsEventsEnabled() { this._isDiagnosticsEventsEnabled = undefined; } // Temporarily expose input value. Use with caution. get isDiagnosticsEventsEnabledInput() { return this._isDiagnosticsEventsEnabled; } get isHealthMonitoringEnabled() { return this.getBooleanAttribute('is_health_monitoring_enabled'); } set isHealthMonitoringEnabled(value) { this._isHealthMonitoringEnabled = value; } resetIsHealthMonitoringEnabled() { this._isHealthMonitoringEnabled = undefined; } // Temporarily expose input value. Use with caution. get isHealthMonitoringEnabledInput() { return this._isHealthMonitoringEnabled; } get isIncidentLogsEnabled() { return this.getBooleanAttribute('is_incident_logs_enabled'); } set isIncidentLogsEnabled(value) { this._isIncidentLogsEnabled = value; } resetIsIncidentLogsEnabled() { this._isIncidentLogsEnabled = undefined; } // Temporarily expose input value. Use with caution. get isIncidentLogsEnabledInput() { return this._isIncidentLogsEnabled; } } exports.DatabaseCloudVmClusterDataCollectionOptionsOutputReference = DatabaseCloudVmClusterDataCollectionOptionsOutputReference; _h = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterDataCollectionOptionsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterDataCollectionOptionsOutputReference", version: "1.0.0" }; function databaseCloudVmClusterFileSystemConfigurationDetailsToTerraform(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 { file_system_size_gb: cdktf.numberToTerraform(struct.fileSystemSizeGb), mount_point: cdktf.stringToTerraform(struct.mountPoint), }; } exports.databaseCloudVmClusterFileSystemConfigurationDetailsToTerraform = databaseCloudVmClusterFileSystemConfigurationDetailsToTerraform; function databaseCloudVmClusterFileSystemConfigurationDetailsToHclTerraform(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 = { file_system_size_gb: { value: cdktf.numberToHclTerraform(struct.fileSystemSizeGb), isBlock: false, type: "simple", storageClassType: "number", }, mount_point: { value: cdktf.stringToHclTerraform(struct.mountPoint), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudVmClusterFileSystemConfigurationDetailsToHclTerraform = databaseCloudVmClusterFileSystemConfigurationDetailsToHclTerraform; class DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference 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._fileSystemSizeGb !== undefined) { hasAnyValues = true; internalValueResult.fileSystemSizeGb = this._fileSystemSizeGb; } if (this._mountPoint !== undefined) { hasAnyValues = true; internalValueResult.mountPoint = this._mountPoint; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._fileSystemSizeGb = undefined; this._mountPoint = 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._fileSystemSizeGb = value.fileSystemSizeGb; this._mountPoint = value.mountPoint; } } get fileSystemSizeGb() { return this.getNumberAttribute('file_system_size_gb'); } set fileSystemSizeGb(value) { this._fileSystemSizeGb = value; } resetFileSystemSizeGb() { this._fileSystemSizeGb = undefined; } // Temporarily expose input value. Use with caution. get fileSystemSizeGbInput() { return this._fileSystemSizeGb; } get mountPoint() { return this.getStringAttribute('mount_point'); } set mountPoint(value) { this._mountPoint = value; } resetMountPoint() { this._mountPoint = undefined; } // Temporarily expose input value. Use with caution. get mountPointInput() { return this._mountPoint; } } exports.DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference = DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference", version: "1.0.0" }; class DatabaseCloudVmClusterFileSystemConfigurationDetailsList 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 DatabaseCloudVmClusterFileSystemConfigurationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudVmClusterFileSystemConfigurationDetailsList = DatabaseCloudVmClusterFileSystemConfigurationDetailsList; _k = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterFileSystemConfigurationDetailsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterFileSystemConfigurationDetailsList", version: "1.0.0" }; function databaseCloudVmClusterTimeoutsToTerraform(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), update: cdktf.stringToTerraform(struct.update), }; } exports.databaseCloudVmClusterTimeoutsToTerraform = databaseCloudVmClusterTimeoutsToTerraform; function databaseCloudVmClusterTimeoutsToHclTerraform(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", }, 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.databaseCloudVmClusterTimeoutsToHclTerraform = databaseCloudVmClusterTimeoutsToHclTerraform; class DatabaseCloudVmClusterTimeoutsOutputReference 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._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._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._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 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.DatabaseCloudVmClusterTimeoutsOutputReference = DatabaseCloudVmClusterTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseCloudVmClusterTimeoutsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudVmCluster.DatabaseCloudVmClusterTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_vm_cluster oci_database_cloud_vm_cluster} */ class DatabaseCloudVmCluster extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseCloudVmCluster 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 DatabaseCloudVmCluster to import * @param importFromId The id of the existing DatabaseCloudVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_vm_cluster#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseCloudVmCluster to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_cloud_vm_cluster", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_vm_cluster oci_database_cloud_vm_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 DatabaseCloudVmClusterConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_cloud_vm_cluster', terraformGeneratorMetadata: { providerName: 'oci', providerVersion: '6.18.0', providerVersionConstraint: '~> 6.18.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // iorm_config_cache - computed: true, optional: false, required: false this._iormConfigCache = new DatabaseCloudVmClusterIormConfigCacheList(this, "iorm_config_cache", false); // system_tags - computed: true, optional: false, required: false this._systemTags = new cdktf.StringMap(this, "system_tags"); // cloud_automation_update_details - computed: false, optional: true, required: false this._cloudAutomationUpdateDetails = new DatabaseCloudVmClusterCloudAutomationUpdateDetailsOutputReference(this, "cloud_automation_update_details"); // data_collection_options - computed: false, optional: true, required: false this._dataCollectionOptions = new DatabaseCloudVmClusterDataCollectionOptionsOutputReference(this, "data_collection_options"); // file_system_configuration_details - computed: false, optional: true, required: false this._fileSystemConfigurationDetails = new DatabaseCloudVmClusterFileSystemConfigurationDetailsList(this, "file_system_configuration_details", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseCloudVmClusterTimeoutsOutputReference(this, "timeouts"); this._backupNetworkNsgIds = config.backupNetworkNsgIds; this._backupSubnetId = config.backupSubnetId; this._cloudExadataInfrastructureId = config.cloudExadataInfrastructureId; this._clusterName = config.clusterName; this._compartmentId = config.compartmentId; this._cpuCoreCount = config.cpuCoreCount; this._createAsync = config.createAsync; this._dataStoragePercentage = config.dataStoragePercentage; this._dataStorageSizeInTbs = config.dataStorageSizeInTbs; this._dbNodeStorageSizeInGbs = config.dbNodeStorageSizeInGbs; this._dbServers = config.dbServers; this._definedTags = config.definedTags; this._displayName = config.displayName; this._domain = config.domain; this._freeformTags = config.freeformTags; this._giVersion = config.giVersion; this._hostname = config.hostname; this._id = config.id; this._isLocalBackupEnabled = config.isLocalBackupEnabled; this._isSparseDiskgroupEnabled = config.isSparseDiskgroupEnabled; this._licenseModel = config.licenseModel; this._memorySizeInGbs = config.memorySizeInGbs; this._nsgIds = config.nsgIds; this._ocpuCount = config.ocpuCount; this._privateZoneId = config.privateZoneId; this._scanListenerPortTcp = config.scanListenerPortTcp; this._scanListenerPortTcpSsl = config.scanListenerPortTcpSsl; this._securityAttributes = config.securityAttributes; this._sshPublicKeys = config.sshPublicKeys; this._subnetId = config.subnetId; this._subscriptionId = config.su