UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,047 lines 146 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.DatabaseDbSystemsUpgrade = exports.DatabaseDbSystemsUpgradeTimeoutsOutputReference = exports.databaseDbSystemsUpgradeTimeoutsToHclTerraform = exports.databaseDbSystemsUpgradeTimeoutsToTerraform = exports.DatabaseDbSystemsUpgradeMaintenanceWindowList = exports.DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference = exports.databaseDbSystemsUpgradeMaintenanceWindowToHclTerraform = exports.databaseDbSystemsUpgradeMaintenanceWindowToTerraform = exports.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList = exports.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference = exports.databaseDbSystemsUpgradeMaintenanceWindowMonthsToHclTerraform = exports.databaseDbSystemsUpgradeMaintenanceWindowMonthsToTerraform = exports.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList = exports.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference = exports.databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToTerraform = exports.DatabaseDbSystemsUpgradeIormConfigCacheList = exports.DatabaseDbSystemsUpgradeIormConfigCacheOutputReference = exports.databaseDbSystemsUpgradeIormConfigCacheToHclTerraform = exports.databaseDbSystemsUpgradeIormConfigCacheToTerraform = exports.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList = exports.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference = exports.databaseDbSystemsUpgradeIormConfigCacheDbPlansToHclTerraform = exports.databaseDbSystemsUpgradeIormConfigCacheDbPlansToTerraform = exports.DatabaseDbSystemsUpgradeDbSystemOptionsList = exports.DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference = exports.databaseDbSystemsUpgradeDbSystemOptionsToHclTerraform = exports.databaseDbSystemsUpgradeDbSystemOptionsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseDbSystemsUpgradeDbSystemOptionsToTerraform(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.databaseDbSystemsUpgradeDbSystemOptionsToTerraform = databaseDbSystemsUpgradeDbSystemOptionsToTerraform; function databaseDbSystemsUpgradeDbSystemOptionsToHclTerraform(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.databaseDbSystemsUpgradeDbSystemOptionsToHclTerraform = databaseDbSystemsUpgradeDbSystemOptionsToHclTerraform; class DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference 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; } } // storage_management - computed: true, optional: false, required: false get storageManagement() { return this.getStringAttribute('storage_management'); } } exports.DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference = DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeDbSystemOptionsList 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 DatabaseDbSystemsUpgradeDbSystemOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeDbSystemOptionsList = DatabaseDbSystemsUpgradeDbSystemOptionsList; _b = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeDbSystemOptionsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeDbSystemOptionsList", version: "1.0.0" }; function databaseDbSystemsUpgradeIormConfigCacheDbPlansToTerraform(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.databaseDbSystemsUpgradeIormConfigCacheDbPlansToTerraform = databaseDbSystemsUpgradeIormConfigCacheDbPlansToTerraform; function databaseDbSystemsUpgradeIormConfigCacheDbPlansToHclTerraform(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.databaseDbSystemsUpgradeIormConfigCacheDbPlansToHclTerraform = databaseDbSystemsUpgradeIormConfigCacheDbPlansToHclTerraform; class DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // db_name - computed: true, optional: false, required: false get dbName() { return this.getStringAttribute('db_name'); } // flash_cache_limit - computed: true, optional: false, required: false get flashCacheLimit() { return this.getStringAttribute('flash_cache_limit'); } // share - computed: true, optional: false, required: false get share() { return this.getNumberAttribute('share'); } } exports.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference = DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList 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 DatabaseDbSystemsUpgradeIormConfigCacheDbPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList = DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList; _d = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList", version: "1.0.0" }; function databaseDbSystemsUpgradeIormConfigCacheToTerraform(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.databaseDbSystemsUpgradeIormConfigCacheToTerraform = databaseDbSystemsUpgradeIormConfigCacheToTerraform; function databaseDbSystemsUpgradeIormConfigCacheToHclTerraform(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.databaseDbSystemsUpgradeIormConfigCacheToHclTerraform = databaseDbSystemsUpgradeIormConfigCacheToHclTerraform; class DatabaseDbSystemsUpgradeIormConfigCacheOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // db_plans - computed: true, optional: false, required: false this._dbPlans = new DatabaseDbSystemsUpgradeIormConfigCacheDbPlansList(this, "db_plans", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get dbPlans() { return this._dbPlans; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // objective - computed: true, optional: false, required: false get objective() { return this.getStringAttribute('objective'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.DatabaseDbSystemsUpgradeIormConfigCacheOutputReference = DatabaseDbSystemsUpgradeIormConfigCacheOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeIormConfigCacheOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeIormConfigCacheOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeIormConfigCacheList 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 DatabaseDbSystemsUpgradeIormConfigCacheOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeIormConfigCacheList = DatabaseDbSystemsUpgradeIormConfigCacheList; _f = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeIormConfigCacheList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeIormConfigCacheList", version: "1.0.0" }; function databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToTerraform = databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToTerraform; function databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToHclTerraform = databaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference = DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList 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 DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList = DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList; _h = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseDbSystemsUpgradeMaintenanceWindowMonthsToTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowMonthsToTerraform = databaseDbSystemsUpgradeMaintenanceWindowMonthsToTerraform; function databaseDbSystemsUpgradeMaintenanceWindowMonthsToHclTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowMonthsToHclTerraform = databaseDbSystemsUpgradeMaintenanceWindowMonthsToHclTerraform; class DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference 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.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference = DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList 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 DatabaseDbSystemsUpgradeMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList = DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList; _k = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseDbSystemsUpgradeMaintenanceWindowToTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowToTerraform = databaseDbSystemsUpgradeMaintenanceWindowToTerraform; function databaseDbSystemsUpgradeMaintenanceWindowToHclTerraform(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.databaseDbSystemsUpgradeMaintenanceWindowToHclTerraform = databaseDbSystemsUpgradeMaintenanceWindowToHclTerraform; class DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference 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 DatabaseDbSystemsUpgradeMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: true, optional: false, required: false this._months = new DatabaseDbSystemsUpgradeMaintenanceWindowMonthsList(this, "months", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get daysOfWeek() { return this._daysOfWeek; } // hours_of_day - computed: true, optional: false, required: false get hoursOfDay() { return this.getNumberListAttribute('hours_of_day'); } // lead_time_in_weeks - computed: true, optional: false, required: false get leadTimeInWeeks() { return this.getNumberAttribute('lead_time_in_weeks'); } get months() { return this._months; } // preference - computed: true, optional: false, required: false get preference() { return this.getStringAttribute('preference'); } // weeks_of_month - computed: true, optional: false, required: false get weeksOfMonth() { return this.getNumberListAttribute('weeks_of_month'); } } exports.DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference = DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference", version: "1.0.0" }; class DatabaseDbSystemsUpgradeMaintenanceWindowList 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 DatabaseDbSystemsUpgradeMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseDbSystemsUpgradeMaintenanceWindowList = DatabaseDbSystemsUpgradeMaintenanceWindowList; _m = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeMaintenanceWindowList[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeMaintenanceWindowList", version: "1.0.0" }; function databaseDbSystemsUpgradeTimeoutsToTerraform(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.databaseDbSystemsUpgradeTimeoutsToTerraform = databaseDbSystemsUpgradeTimeoutsToTerraform; function databaseDbSystemsUpgradeTimeoutsToHclTerraform(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.databaseDbSystemsUpgradeTimeoutsToHclTerraform = databaseDbSystemsUpgradeTimeoutsToHclTerraform; class DatabaseDbSystemsUpgradeTimeoutsOutputReference 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.DatabaseDbSystemsUpgradeTimeoutsOutputReference = DatabaseDbSystemsUpgradeTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgradeTimeoutsOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgradeTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_db_systems_upgrade oci_database_db_systems_upgrade} */ class DatabaseDbSystemsUpgrade extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseDbSystemsUpgrade 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 DatabaseDbSystemsUpgrade to import * @param importFromId The id of the existing DatabaseDbSystemsUpgrade that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_db_systems_upgrade#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseDbSystemsUpgrade to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_db_systems_upgrade", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_db_systems_upgrade oci_database_db_systems_upgrade} 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 DatabaseDbSystemsUpgradeConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_db_systems_upgrade', 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 }); // db_system_options - computed: true, optional: false, required: false this._dbSystemOptions = new DatabaseDbSystemsUpgradeDbSystemOptionsList(this, "db_system_options", false); // defined_tags - computed: true, optional: false, required: false this._definedTags = new cdktf.StringMap(this, "defined_tags"); // freeform_tags - computed: true, optional: false, required: false this._freeformTags = new cdktf.StringMap(this, "freeform_tags"); // iorm_config_cache - computed: true, optional: false, required: false this._iormConfigCache = new DatabaseDbSystemsUpgradeIormConfigCacheList(this, "iorm_config_cache", false); // maintenance_window - computed: true, optional: false, required: false this._maintenanceWindow = new DatabaseDbSystemsUpgradeMaintenanceWindowList(this, "maintenance_window", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseDbSystemsUpgradeTimeoutsOutputReference(this, "timeouts"); this._action = config.action; this._dbSystemId = config.dbSystemId; this._id = config.id; this._isSnapshotRetentionDaysForceUpdated = config.isSnapshotRetentionDaysForceUpdated; this._newGiVersion = config.newGiVersion; this._newOsVersion = config.newOsVersion; this._snapshotRetentionPeriodInDays = config.snapshotRetentionPeriodInDays; this._timeouts.internalValue = config.timeouts; } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } // availability_domain - computed: true, optional: false, required: false get availabilityDomain() { return this.getStringAttribute('availability_domain'); } // backup_network_nsg_ids - computed: true, optional: false, required: false get backupNetworkNsgIds() { return cdktf.Fn.tolist(this.getListAttribute('backup_network_nsg_ids')); } // backup_subnet_id - computed: true, optional: false, required: false get backupSubnetId() { return this.getStringAttribute('backup_subnet_id'); } // cluster_name - computed: true, optional: false, required: false get clusterName() { return this.getStringAttribute('cluster_name'); } // compartment_id - computed: true, optional: false, required: false get compartmentId() { return this.getStringAttribute('compartment_id'); } // cpu_core_count - computed: true, optional: false, required: false get cpuCoreCount() { return this.getNumberAttribute('cpu_core_count'); } // data_storage_percentage - computed: true, optional: false, required: false get dataStoragePercentage() { return this.getNumberAttribute('data_storage_percentage'); } // data_storage_size_in_gb - computed: true, optional: false, required: false get dataStorageSizeInGb() { return this.getNumberAttribute('data_storage_size_in_gb'); } // database_edition - computed: true, optional: false, required: false get databaseEdition() { return this.getStringAttribute('database_edition'); } get dbSystemId() { return this.getStringAttribute('db_system_id'); } set dbSystemId(value) { this._dbSystemId = value; } // Temporarily expose input value. Use with caution. get dbSystemIdInput() { return this._dbSystemId; } get dbSystemOptions() { return this._dbSystemOptions; } get definedTags() { return this._definedTags; } // disk_redundancy - computed: true, optional: false, required: false get diskRedundancy() { return this.getStringAttribute('disk_redundancy'); } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } // domain - computed: true, optional: false, required: false get domain() { return this.getStringAttribute('domain'); } // fault_domains - computed: true, optional: false, required: false get faultDomains() { return this.getListAttribute('fault_domains'); } get freeformTags() { return this._freeformTags; } // hostname - computed: true, optional: false, required: false get hostname() { return this.getStringAttribute('hostname'); } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get iormConfigCache() { return this._iormConfigCache; } get isSnapshotRetentionDaysForceUpdated() { return this.getBooleanAttribute('is_snapshot_retention_days_force_updated'); } set isSnapshotRetentionDaysForceUpdated(value) { this._isSnapshotRetentionDaysForceUpdated = value; } resetIsSnapshotRetentionDaysForceUpdated() { this._isSnapshotRetentionDaysForceUpdated = undefined; } // Temporarily expose input value. Use with caution. get isSnapshotRetentionDaysForceUpdatedInput() { return this._isSnapshotRetentionDaysForceUpdated; } // kms_key_id - computed: true, optional: false, required: false get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } // last_maintenance_run_id - computed: true, optional: false, required: false get lastMaintenanceRunId() { return this.getStringAttribute('last_maintenance_run_id'); } // last_patch_history_entry_id - computed: true, optional: false, required: false get lastPatchHistoryEntryId() { return this.getStringAttribute('last_patch_history_entry_id'); } // license_model - computed: true, optional: false, required: false get licenseModel() { return this.getStringAttribute('license_model'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // listener_port - computed: true, optional: false, required: false get listenerPort() { return this.getNumberAttribute('listener_port'); } get maintenanceWindow() { return this._maintenanceWindow; } get newGiVersion() { return this.getStringAttribute('new_gi_version'); } set newGiVersion(value) { this._newGiVersion = value; } resetNewGiVersion() { this._newGiVersion = undefined; } // Temporarily expose input value. Use with caution. get newGiVersionInput() { return this._newGiVersion; } get newOsVersion() { return this.getStringAttribute('new_os_version'); } set newOsVersion(value) { this._newOsVersion = value; } resetNewOsVersion() { this._newOsVersion = undefined; } // Temporarily expose input value. Use with caution. get newOsVersionInput() { return this._newOsVersion; } // next_maintenance_run_id - computed: true, optional: false, required: false get nextMaintenanceRunId() { return this.getStringAttribute('next_maintenance_run_id'); } // node_count - computed: true, optional: false, required: false get nodeCount() { return this.getNumberAttribute('node_count'); } // nsg_ids - computed: true, optional: false, required: false get nsgIds() { return cdktf.Fn.tolist(this.getListAttribute('nsg_ids')); } // point_in_time_data_disk_clone_timestamp - computed: true, optional: false, required: false get pointInTimeDataDiskCloneTimestamp() { return this.getStringAttribute('point_in_time_data_disk_clone_timestamp'); } // reco_storage_size_in_gb - computed: true, optional: false, required: false get recoStorageSizeInGb() { return this.getNumberAttribute('reco_storage_size_in_gb'); } // scan_dns_name - computed: true, optional: false, required: false get scanDnsName() { return this.getStringAttribute('scan_dns_name'); } // scan_dns_record_id - computed: true, optional: false, required: false get scanDnsRecordId() { return this.getStringAttribute('scan_dns_record_id'); } // scan_ip_ids - computed: true, optional: false, required: false get scanIpIds() { return this.getListAttribute('scan_ip_ids'); } // shape - computed: true, optional: false, required: false get shape() { return this.getStringAttribute('shape'); } get snapshotRetentionPeriodInDays() { return this.getNumberAttribute('snapshot_retention_period_in_days'); } set snapshotRetentionPeriodInDays(value) { this._snapshotRetentionPeriodInDays = value; } resetSnapshotRetentionPeriodInDays() { this._snapshotRetentionPeriodInDays = undefined; } // Temporarily expose input value. Use with caution. get snapshotRetentionPeriodInDaysInput() { return this._snapshotRetentionPeriodInDays; } // source_db_system_id - computed: true, optional: false, required: false get sourceDbSystemId() { return this.getStringAttribute('source_db_system_id'); } // sparse_diskgroup - computed: true, optional: false, required: false get sparseDiskgroup() { return this.getBooleanAttribute('sparse_diskgroup'); } // ssh_public_keys - computed: true, optional: false, required: false get sshPublicKeys() { return this.getListAttribute('ssh_public_keys'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // subnet_id - computed: true, optional: false, required: false get subnetId() { return this.getStringAttribute('subnet_id'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_zone - computed: true, optional: false, required: false get timeZone() { return this.getStringAttribute('time_zone'); } // version - computed: true, optional: false, required: false get version() { return this.getStringAttribute('version'); } // vip_ids - computed: true, optional: false, required: false get vipIds() { return this.getListAttribute('vip_ids'); } // zone_id - computed: true, optional: false, required: false get zoneId() { return this.getStringAttribute('zone_id'); } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { action: cdktf.stringToTerraform(this._action), db_system_id: cdktf.stringToTerraform(this._dbSystemId), id: cdktf.stringToTerraform(this._id), is_snapshot_retention_days_force_updated: cdktf.booleanToTerraform(this._isSnapshotRetentionDaysForceUpdated), new_gi_version: cdktf.stringToTerraform(this._newGiVersion), new_os_version: cdktf.stringToTerraform(this._newOsVersion), snapshot_retention_period_in_days: cdktf.numberToTerraform(this._snapshotRetentionPeriodInDays), timeouts: databaseDbSystemsUpgradeTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { action: { value: cdktf.stringToHclTerraform(this._action), isBlock: false, type: "simple", storageClassType: "string", }, db_system_id: { value: cdktf.stringToHclTerraform(this._dbSystemId), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, is_snapshot_retention_days_force_updated: { value: cdktf.booleanToHclTerraform(this._isSnapshotRetentionDaysForceUpdated), isBlock: false, type: "simple", storageClassType: "boolean", }, new_gi_version: { value: cdktf.stringToHclTerraform(this._newGiVersion), isBlock: false, type: "simple", storageClassType: "string", }, new_os_version: { value: cdktf.stringToHclTerraform(this._newOsVersion), isBlock: false, type: "simple", storageClassType: "string", }, snapshot_retention_period_in_days: { value: cdktf.numberToHclTerraform(this._snapshotRetentionPeriodInDays), isBlock: false, type: "simple", storageClassType: "number", }, timeouts: { value: databaseDbSystemsUpgradeTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "DatabaseDbSystemsUpgradeTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DatabaseDbSystemsUpgrade = DatabaseDbSystemsUpgrade; _p = JSII_RTTI_SYMBOL_1; DatabaseDbSystemsUpgrade[_p] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystemsUpgrade.DatabaseDbSystemsUpgrade", version: "1.0.0" }; // ================= // STATIC PROPERTIES // ================= DatabaseDbSystemsUpgrade.tfResourceType = "oci_database_db_systems_upgrade"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YWJhc2UtZGItc3lzdGVtcy11cGdyYWRlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBSUEsK0JBQStCO0FBOEMvQixTQUFnQixrREFBa0QsQ0FBQyxNQUFnRDtJQUNqSCxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxPQUFPLEVBQ04sQ0FBQTtBQUNILENBQUM7QUFQRCxnSEFPQztBQUdELFNBQWdCLHFEQUFxRCxDQUFDLE1BQWdEO0lBQ3BILElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE1BQU0sS0FBSyxHQUFHLEVBQ2IsQ0FBQztJQUNGLE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQVJELHNIQVFDO0FBRUQsTUFBYSxzREFBdUQsU0FBUSxLQUFLLENBQU