UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,030 lines 245 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseCloudAutonomousVmCluster = exports.DatabaseCloudAutonomousVmClusterTimeoutsOutputReference = exports.databaseCloudAutonomousVmClusterTimeoutsToHclTerraform = exports.databaseCloudAutonomousVmClusterTimeoutsToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowList = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList = exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference 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'); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList 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 DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList = DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList; _b = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference 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'); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList 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 DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList = DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList; _d = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseCloudAutonomousVmClusterMaintenanceWindowToTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowToHclTerraform(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.databaseCloudAutonomousVmClusterMaintenanceWindowToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference 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; // days_of_week - computed: true, optional: false, required: false this._daysOfWeek = new DatabaseCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: true, optional: false, required: false this._months = new DatabaseCloudAutonomousVmClusterMaintenanceWindowMonthsList(this, "months", false); // skip_ru - computed: true, optional: false, required: false this._skipRu = new cdktf.BooleanList(this, "skip_ru", 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; } } // custom_action_timeout_in_mins - computed: true, optional: false, required: false get customActionTimeoutInMins() { return this.getNumberAttribute('custom_action_timeout_in_mins'); } get daysOfWeek() { return this._daysOfWeek; } // hours_of_day - computed: true, optional: false, required: false get hoursOfDay() { return this.getNumberListAttribute('hours_of_day'); } // is_custom_action_timeout_enabled - computed: true, optional: false, required: false get isCustomActionTimeoutEnabled() { return this.getBooleanAttribute('is_custom_action_timeout_enabled'); } // is_monthly_patching_enabled - computed: true, optional: false, required: false get isMonthlyPatchingEnabled() { return this.getBooleanAttribute('is_monthly_patching_enabled'); } // lead_time_in_weeks - computed: true, optional: false, required: false get leadTimeInWeeks() { return this.getNumberAttribute('lead_time_in_weeks'); } get months() { return this._months; } // patching_mode - computed: true, optional: false, required: false get patchingMode() { return this.getStringAttribute('patching_mode'); } // preference - computed: true, optional: false, required: false get preference() { return this.getStringAttribute('preference'); } get skipRu() { return this._skipRu; } // weeks_of_month - computed: true, optional: false, required: false get weeksOfMonth() { return this.getNumberListAttribute('weeks_of_month'); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference", version: "1.0.0" }; class DatabaseCloudAutonomousVmClusterMaintenanceWindowList 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 DatabaseCloudAutonomousVmClusterMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowList = DatabaseCloudAutonomousVmClusterMaintenanceWindowList; _f = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowList", version: "1.0.0" }; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform(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 { name: cdktf.stringToTerraform(struct.name), }; } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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._name = value.name; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList 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 DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList = DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList; _h = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList", version: "1.0.0" }; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform(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 { name: cdktf.stringToTerraform(struct.name), }; } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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._name = value.name; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference", version: "1.0.0" }; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList 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 DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList = DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList; _k = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList", version: "1.0.0" }; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToTerraform(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 { custom_action_timeout_in_mins: cdktf.numberToTerraform(struct.customActionTimeoutInMins), hours_of_day: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.hoursOfDay), is_custom_action_timeout_enabled: cdktf.booleanToTerraform(struct.isCustomActionTimeoutEnabled), is_monthly_patching_enabled: cdktf.booleanToTerraform(struct.isMonthlyPatchingEnabled), lead_time_in_weeks: cdktf.numberToTerraform(struct.leadTimeInWeeks), patching_mode: cdktf.stringToTerraform(struct.patchingMode), preference: cdktf.stringToTerraform(struct.preference), skip_ru: cdktf.listMapper(cdktf.booleanToTerraform, false)(struct.skipRu), weeks_of_month: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.weeksOfMonth), days_of_week: cdktf.listMapper(databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform, true)(struct.daysOfWeek), months: cdktf.listMapper(databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform, true)(struct.months), }; } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToTerraform; function databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform(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 = { custom_action_timeout_in_mins: { value: cdktf.numberToHclTerraform(struct.customActionTimeoutInMins), isBlock: false, type: "simple", storageClassType: "number", }, hours_of_day: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.hoursOfDay), isBlock: false, type: "list", storageClassType: "numberList", }, is_custom_action_timeout_enabled: { value: cdktf.booleanToHclTerraform(struct.isCustomActionTimeoutEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_monthly_patching_enabled: { value: cdktf.booleanToHclTerraform(struct.isMonthlyPatchingEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, lead_time_in_weeks: { value: cdktf.numberToHclTerraform(struct.leadTimeInWeeks), isBlock: false, type: "simple", storageClassType: "number", }, patching_mode: { value: cdktf.stringToHclTerraform(struct.patchingMode), isBlock: false, type: "simple", storageClassType: "string", }, preference: { value: cdktf.stringToHclTerraform(struct.preference), isBlock: false, type: "simple", storageClassType: "string", }, skip_ru: { value: cdktf.listMapperHcl(cdktf.booleanToHclTerraform, false)(struct.skipRu), isBlock: false, type: "list", storageClassType: "booleanList", }, weeks_of_month: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.weeksOfMonth), isBlock: false, type: "list", storageClassType: "numberList", }, days_of_week: { value: cdktf.listMapperHcl(databaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform, true)(struct.daysOfWeek), isBlock: true, type: "list", storageClassType: "DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList", }, months: { value: cdktf.listMapperHcl(databaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform, true)(struct.months), isBlock: true, type: "list", storageClassType: "DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform = databaseCloudAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform; class DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference 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; // days_of_week - computed: false, optional: true, required: false this._daysOfWeek = new DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList(this, "days_of_week", false); // months - computed: false, optional: true, required: false this._months = new DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsMonthsList(this, "months", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customActionTimeoutInMins !== undefined) { hasAnyValues = true; internalValueResult.customActionTimeoutInMins = this._customActionTimeoutInMins; } if (this._hoursOfDay !== undefined) { hasAnyValues = true; internalValueResult.hoursOfDay = this._hoursOfDay; } if (this._isCustomActionTimeoutEnabled !== undefined) { hasAnyValues = true; internalValueResult.isCustomActionTimeoutEnabled = this._isCustomActionTimeoutEnabled; } if (this._isMonthlyPatchingEnabled !== undefined) { hasAnyValues = true; internalValueResult.isMonthlyPatchingEnabled = this._isMonthlyPatchingEnabled; } if (this._leadTimeInWeeks !== undefined) { hasAnyValues = true; internalValueResult.leadTimeInWeeks = this._leadTimeInWeeks; } if (this._patchingMode !== undefined) { hasAnyValues = true; internalValueResult.patchingMode = this._patchingMode; } if (this._preference !== undefined) { hasAnyValues = true; internalValueResult.preference = this._preference; } if (this._skipRu !== undefined) { hasAnyValues = true; internalValueResult.skipRu = this._skipRu; } if (this._weeksOfMonth !== undefined) { hasAnyValues = true; internalValueResult.weeksOfMonth = this._weeksOfMonth; } if (this._daysOfWeek?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.daysOfWeek = this._daysOfWeek?.internalValue; } if (this._months?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.months = this._months?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._customActionTimeoutInMins = undefined; this._hoursOfDay = undefined; this._isCustomActionTimeoutEnabled = undefined; this._isMonthlyPatchingEnabled = undefined; this._leadTimeInWeeks = undefined; this._patchingMode = undefined; this._preference = undefined; this._skipRu = undefined; this._weeksOfMonth = undefined; this._daysOfWeek.internalValue = undefined; this._months.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._customActionTimeoutInMins = value.customActionTimeoutInMins; this._hoursOfDay = value.hoursOfDay; this._isCustomActionTimeoutEnabled = value.isCustomActionTimeoutEnabled; this._isMonthlyPatchingEnabled = value.isMonthlyPatchingEnabled; this._leadTimeInWeeks = value.leadTimeInWeeks; this._patchingMode = value.patchingMode; this._preference = value.preference; this._skipRu = value.skipRu; this._weeksOfMonth = value.weeksOfMonth; this._daysOfWeek.internalValue = value.daysOfWeek; this._months.internalValue = value.months; } } get customActionTimeoutInMins() { return this.getNumberAttribute('custom_action_timeout_in_mins'); } set customActionTimeoutInMins(value) { this._customActionTimeoutInMins = value; } resetCustomActionTimeoutInMins() { this._customActionTimeoutInMins = undefined; } // Temporarily expose input value. Use with caution. get customActionTimeoutInMinsInput() { return this._customActionTimeoutInMins; } get hoursOfDay() { return this.getNumberListAttribute('hours_of_day'); } set hoursOfDay(value) { this._hoursOfDay = value; } resetHoursOfDay() { this._hoursOfDay = undefined; } // Temporarily expose input value. Use with caution. get hoursOfDayInput() { return this._hoursOfDay; } get isCustomActionTimeoutEnabled() { return this.getBooleanAttribute('is_custom_action_timeout_enabled'); } set isCustomActionTimeoutEnabled(value) { this._isCustomActionTimeoutEnabled = value; } resetIsCustomActionTimeoutEnabled() { this._isCustomActionTimeoutEnabled = undefined; } // Temporarily expose input value. Use with caution. get isCustomActionTimeoutEnabledInput() { return this._isCustomActionTimeoutEnabled; } get isMonthlyPatchingEnabled() { return this.getBooleanAttribute('is_monthly_patching_enabled'); } set isMonthlyPatchingEnabled(value) { this._isMonthlyPatchingEnabled = value; } resetIsMonthlyPatchingEnabled() { this._isMonthlyPatchingEnabled = undefined; } // Temporarily expose input value. Use with caution. get isMonthlyPatchingEnabledInput() { return this._isMonthlyPatchingEnabled; } get leadTimeInWeeks() { return this.getNumberAttribute('lead_time_in_weeks'); } set leadTimeInWeeks(value) { this._leadTimeInWeeks = value; } resetLeadTimeInWeeks() { this._leadTimeInWeeks = undefined; } // Temporarily expose input value. Use with caution. get leadTimeInWeeksInput() { return this._leadTimeInWeeks; } get patchingMode() { return this.getStringAttribute('patching_mode'); } set patchingMode(value) { this._patchingMode = value; } resetPatchingMode() { this._patchingMode = undefined; } // Temporarily expose input value. Use with caution. get patchingModeInput() { return this._patchingMode; } get preference() { return this.getStringAttribute('preference'); } set preference(value) { this._preference = value; } resetPreference() { this._preference = undefined; } // Temporarily expose input value. Use with caution. get preferenceInput() { return this._preference; } get skipRu() { return this.interpolationForAttribute('skip_ru'); } set skipRu(value) { this._skipRu = value; } resetSkipRu() { this._skipRu = undefined; } // Temporarily expose input value. Use with caution. get skipRuInput() { return this._skipRu; } get weeksOfMonth() { return this.getNumberListAttribute('weeks_of_month'); } set weeksOfMonth(value) { this._weeksOfMonth = value; } resetWeeksOfMonth() { this._weeksOfMonth = undefined; } // Temporarily expose input value. Use with caution. get weeksOfMonthInput() { return this._weeksOfMonth; } get daysOfWeek() { return this._daysOfWeek; } putDaysOfWeek(value) { this._daysOfWeek.internalValue = value; } resetDaysOfWeek() { this._daysOfWeek.internalValue = undefined; } // Temporarily expose input value. Use with caution. get daysOfWeekInput() { return this._daysOfWeek.internalValue; } get months() { return this._months; } putMonths(value) { this._months.internalValue = value; } resetMonths() { this._months.internalValue = undefined; } // Temporarily expose input value. Use with caution. get monthsInput() { return this._months.internalValue; } } exports.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference = DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference", version: "1.0.0" }; function databaseCloudAutonomousVmClusterTimeoutsToTerraform(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.databaseCloudAutonomousVmClusterTimeoutsToTerraform = databaseCloudAutonomousVmClusterTimeoutsToTerraform; function databaseCloudAutonomousVmClusterTimeoutsToHclTerraform(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.databaseCloudAutonomousVmClusterTimeoutsToHclTerraform = databaseCloudAutonomousVmClusterTimeoutsToHclTerraform; class DatabaseCloudAutonomousVmClusterTimeoutsOutputReference 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.DatabaseCloudAutonomousVmClusterTimeoutsOutputReference = DatabaseCloudAutonomousVmClusterTimeoutsOutputReference; _m = JSII_RTTI_SYMBOL_1; DatabaseCloudAutonomousVmClusterTimeoutsOutputReference[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudAutonomousVmCluster.DatabaseCloudAutonomousVmClusterTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_autonomous_vm_cluster oci_database_cloud_autonomous_vm_cluster} */ class DatabaseCloudAutonomousVmCluster extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseCloudAutonomousVmCluster 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 DatabaseCloudAutonomousVmCluster to import * @param importFromId The id of the existing DatabaseCloudAutonomousVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_autonomous_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 DatabaseCloudAutonomousVmCluster to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_cloud_autonomous_vm_cluster", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_autonomous_vm_cluster oci_database_cloud_autonomous_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 DatabaseCloudAutonomousVmClusterConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_cloud_autonomous_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 }); // maintenance_window - computed: true, optional: false, required: false this._maintenanceWindow = new DatabaseCloudAutonomousVmClusterMaintenanceWindowList(this, "maintenance_window", false); // maintenance_window_details - computed: false, optional: true, required: false this._maintenanceWindowDetails = new DatabaseCloudAutonomousVmClusterMaintenanceWindowDetailsOutputReference(this, "maintenance_window_details"); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseCloudAutonomousVmClusterTimeoutsOutputReference(this, "timeouts"); this._autonomousDataStorageSizeInTbs = config.autonomousDataStorageSizeInTbs; this._cloudExadataInfrastructureId = config.cloudExadataInfrastructureId; this._clusterTimeZone = config.clusterTimeZone; this._compartmentId = config.compartmentId; this._computeModel = config.computeModel; this._cpuCoreCountPerNode = config.cpuCoreCountPerNode; this._dbServers = config.dbServers; this._definedTags = config.definedTags; this._description = config.description; this._displayName = config.displayName; this._freeformTags = config.freeformTags; this._id = config.id; this._isMtlsEnabledVmCluster = config.isMtlsEnabledVmCluster; this._licenseModel = config.licenseModel; this._memoryPerOracleComputeUnitInGbs = config.memoryPerOracleComputeUnitInGbs; this._nsgIds = config.nsgIds; this._scanListenerPortNonTls = config.scanListenerPortNonTls; this._scanList