UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,010 lines 199 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseAutonomousExadataInfrastructure = exports.DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference = exports.databaseAutonomousExadataInfrastructureTimeoutsToHclTerraform = exports.databaseAutonomousExadataInfrastructureTimeoutsToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowList = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToTerraform = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList = exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList; _b = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToHclTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowMonthsToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference 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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList = DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList; _d = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureMaintenanceWindowToTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowToHclTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: true, optional: false, required: false this._months = new DatabaseAutonomousExadataInfrastructureMaintenanceWindowMonthsList(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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference", version: "1.0.0" }; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowList 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowList = DatabaseAutonomousExadataInfrastructureMaintenanceWindowList; _f = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowList", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToHclTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference 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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList; _h = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToHclTerraform(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.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference 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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference", version: "1.0.0" }; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList; _k = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToTerraform(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(databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToTerraform, true)(struct.daysOfWeek), months: cdktf.listMapper(databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToTerraform, true)(struct.months), }; } exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToTerraform; function databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToHclTerraform(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(databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekToHclTerraform, true)(struct.daysOfWeek), isBlock: true, type: "list", storageClassType: "DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList", }, months: { value: cdktf.listMapperHcl(databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsToHclTerraform, true)(struct.months), isBlock: true, type: "list", storageClassType: "DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToHclTerraform = databaseAutonomousExadataInfrastructureMaintenanceWindowDetailsToHclTerraform; class DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsDaysOfWeekList(this, "days_of_week", false); // months - computed: false, optional: true, required: false this._months = new DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsMonthsList(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.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference = DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference", version: "1.0.0" }; function databaseAutonomousExadataInfrastructureTimeoutsToTerraform(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.databaseAutonomousExadataInfrastructureTimeoutsToTerraform = databaseAutonomousExadataInfrastructureTimeoutsToTerraform; function databaseAutonomousExadataInfrastructureTimeoutsToHclTerraform(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.databaseAutonomousExadataInfrastructureTimeoutsToHclTerraform = databaseAutonomousExadataInfrastructureTimeoutsToHclTerraform; class DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference 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.DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference = DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference; _m = JSII_RTTI_SYMBOL_1; DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseAutonomousExadataInfrastructure.DatabaseAutonomousExadataInfrastructureTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_autonomous_exadata_infrastructure oci_database_autonomous_exadata_infrastructure} */ class DatabaseAutonomousExadataInfrastructure extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseAutonomousExadataInfrastructure 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 DatabaseAutonomousExadataInfrastructure to import * @param importFromId The id of the existing DatabaseAutonomousExadataInfrastructure that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_autonomous_exadata_infrastructure#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseAutonomousExadataInfrastructure to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_autonomous_exadata_infrastructure", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_autonomous_exadata_infrastructure oci_database_autonomous_exadata_infrastructure} 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 DatabaseAutonomousExadataInfrastructureConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_autonomous_exadata_infrastructure', 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 DatabaseAutonomousExadataInfrastructureMaintenanceWindowList(this, "maintenance_window", false); // maintenance_window_details - computed: false, optional: true, required: false this._maintenanceWindowDetails = new DatabaseAutonomousExadataInfrastructureMaintenanceWindowDetailsOutputReference(this, "maintenance