UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,045 lines 237 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseAutonomousVmCluster = exports.DatabaseAutonomousVmClusterTimeoutsOutputReference = exports.databaseAutonomousVmClusterTimeoutsToHclTerraform = exports.databaseAutonomousVmClusterTimeoutsToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsList = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList = exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowList = exports.DatabaseAutonomousVmClusterMaintenanceWindowOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowMonthsList = exports.DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowMonthsToTerraform = exports.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList = exports.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = exports.databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform = databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform; function databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList 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 DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList = DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList; _b = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseAutonomousVmClusterMaintenanceWindowMonthsToTerraform(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.databaseAutonomousVmClusterMaintenanceWindowMonthsToTerraform = databaseAutonomousVmClusterMaintenanceWindowMonthsToTerraform; function databaseAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform(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.databaseAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference 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.DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowMonthsList 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 DatabaseAutonomousVmClusterMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowMonthsList = DatabaseAutonomousVmClusterMaintenanceWindowMonthsList; _d = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowMonthsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseAutonomousVmClusterMaintenanceWindowToTerraform(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.databaseAutonomousVmClusterMaintenanceWindowToTerraform = databaseAutonomousVmClusterMaintenanceWindowToTerraform; function databaseAutonomousVmClusterMaintenanceWindowToHclTerraform(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.databaseAutonomousVmClusterMaintenanceWindowToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowOutputReference 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 DatabaseAutonomousVmClusterMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: true, optional: false, required: false this._months = new DatabaseAutonomousVmClusterMaintenanceWindowMonthsList(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.DatabaseAutonomousVmClusterMaintenanceWindowOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowList 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 DatabaseAutonomousVmClusterMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowList = DatabaseAutonomousVmClusterMaintenanceWindowList; _f = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowList", version: "1.0.0" }; function databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform; function databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference 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.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList 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 DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList = DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList; _h = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList", version: "1.0.0" }; function databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform; function databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform(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.databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference 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.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList 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 DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList = DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList; _k = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList", version: "1.0.0" }; function databaseAutonomousVmClusterMaintenanceWindowDetailsToTerraform(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(databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToTerraform, true)(struct.daysOfWeek), months: cdktf.listMapper(databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToTerraform, true)(struct.months), }; } exports.databaseAutonomousVmClusterMaintenanceWindowDetailsToTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsToTerraform; function databaseAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform(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(databaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekToHclTerraform, true)(struct.daysOfWeek), isBlock: true, type: "list", storageClassType: "DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList", }, months: { value: cdktf.listMapperHcl(databaseAutonomousVmClusterMaintenanceWindowDetailsMonthsToHclTerraform, true)(struct.months), isBlock: true, type: "list", storageClassType: "DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform = databaseAutonomousVmClusterMaintenanceWindowDetailsToHclTerraform; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference 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: false, optional: true, required: false this._daysOfWeek = new DatabaseAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekList(this, "days_of_week", false); // months - computed: false, optional: true, required: false this._months = new DatabaseAutonomousVmClusterMaintenanceWindowDetailsMonthsList(this, "months", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } 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.resolvableValue = undefined; 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 if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; 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.DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference = DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference", version: "1.0.0" }; class DatabaseAutonomousVmClusterMaintenanceWindowDetailsList 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 DatabaseAutonomousVmClusterMaintenanceWindowDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousVmClusterMaintenanceWindowDetailsList = DatabaseAutonomousVmClusterMaintenanceWindowDetailsList; _m = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterMaintenanceWindowDetailsList[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterMaintenanceWindowDetailsList", version: "1.0.0" }; function databaseAutonomousVmClusterTimeoutsToTerraform(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.databaseAutonomousVmClusterTimeoutsToTerraform = databaseAutonomousVmClusterTimeoutsToTerraform; function databaseAutonomousVmClusterTimeoutsToHclTerraform(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.databaseAutonomousVmClusterTimeoutsToHclTerraform = databaseAutonomousVmClusterTimeoutsToHclTerraform; class DatabaseAutonomousVmClusterTimeoutsOutputReference 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.DatabaseAutonomousVmClusterTimeoutsOutputReference = DatabaseAutonomousVmClusterTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; DatabaseAutonomousVmClusterTimeoutsOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousVmCluster.DatabaseAutonomousVmClusterTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_autonomous_vm_cluster oci_database_autonomous_vm_cluster} */ class DatabaseAutonomousVmCluster extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseAutonomousVmCluster 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 DatabaseAutonomousVmCluster to import * @param importFromId The id of the existing DatabaseAutonomousVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_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 DatabaseAutonomousVmCluster to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_autonomous_vm_cluster", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_autonomous_vm_cluster oci_database_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 DatabaseAutonomousVmClusterConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_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 DatabaseAutonomousVmClusterMaintenanceWindowList(this, "maintenance_window", false); // maintenance_window_details - computed: false, optional: true, required: false this._maintenanceWindowDetails = new DatabaseAutonomousVmClusterMaintenanceWindowDetailsList(this, "maintenance_window_details", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new Databas