rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
980 lines • 514 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseDbSystemMaintenanceWindowDetailsMonthsOutputReference = exports.databaseDbSystemMaintenanceWindowDetailsMonthsToHclTerraform = exports.databaseDbSystemMaintenanceWindowDetailsMonthsToTerraform = exports.DatabaseDbSystemMaintenanceWindowDetailsDaysOfWeekList = exports.DatabaseDbSystemMaintenanceWindowDetailsDaysOfWeekOutputReference = exports.databaseDbSystemMaintenanceWindowDetailsDaysOfWeekToHclTerraform = exports.databaseDbSystemMaintenanceWindowDetailsDaysOfWeekToTerraform = exports.DatabaseDbSystemDbSystemOptionsOutputReference = exports.databaseDbSystemDbSystemOptionsToHclTerraform = exports.databaseDbSystemDbSystemOptionsToTerraform = exports.DatabaseDbSystemDbHomeOutputReference = exports.databaseDbSystemDbHomeToHclTerraform = exports.databaseDbSystemDbHomeToTerraform = exports.DatabaseDbSystemDbHomeDatabaseOutputReference = exports.databaseDbSystemDbHomeDatabaseToHclTerraform = exports.databaseDbSystemDbHomeDatabaseToTerraform = exports.DatabaseDbSystemDbHomeDatabaseDbBackupConfigOutputReference = exports.databaseDbSystemDbHomeDatabaseDbBackupConfigToHclTerraform = exports.databaseDbSystemDbHomeDatabaseDbBackupConfigToTerraform = exports.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList = exports.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = exports.databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = exports.databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = exports.DatabaseDbSystemDbHomeDatabaseConnectionStringsList = exports.DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference = exports.databaseDbSystemDbHomeDatabaseConnectionStringsToHclTerraform = exports.databaseDbSystemDbHomeDatabaseConnectionStringsToTerraform = exports.DatabaseDbSystemDataCollectionOptionsOutputReference = exports.databaseDbSystemDataCollectionOptionsToHclTerraform = exports.databaseDbSystemDataCollectionOptionsToTerraform = exports.DatabaseDbSystemMaintenanceWindowList = exports.DatabaseDbSystemMaintenanceWindowOutputReference = exports.databaseDbSystemMaintenanceWindowToHclTerraform = exports.databaseDbSystemMaintenanceWindowToTerraform = exports.DatabaseDbSystemMaintenanceWindowMonthsList = exports.DatabaseDbSystemMaintenanceWindowMonthsOutputReference = exports.databaseDbSystemMaintenanceWindowMonthsToHclTerraform = exports.databaseDbSystemMaintenanceWindowMonthsToTerraform = exports.DatabaseDbSystemMaintenanceWindowDaysOfWeekList = exports.DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference = exports.databaseDbSystemMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseDbSystemMaintenanceWindowDaysOfWeekToTerraform = exports.DatabaseDbSystemIormConfigCacheList = exports.DatabaseDbSystemIormConfigCacheOutputReference = exports.databaseDbSystemIormConfigCacheToHclTerraform = exports.databaseDbSystemIormConfigCacheToTerraform = exports.DatabaseDbSystemIormConfigCacheDbPlansList = exports.DatabaseDbSystemIormConfigCacheDbPlansOutputReference = exports.databaseDbSystemIormConfigCacheDbPlansToHclTerraform = exports.databaseDbSystemIormConfigCacheDbPlansToTerraform = void 0;
exports.DatabaseDbSystem = exports.DatabaseDbSystemTimeoutsOutputReference = exports.databaseDbSystemTimeoutsToHclTerraform = exports.databaseDbSystemTimeoutsToTerraform = exports.DatabaseDbSystemMaintenanceWindowDetailsOutputReference = exports.databaseDbSystemMaintenanceWindowDetailsToHclTerraform = exports.databaseDbSystemMaintenanceWindowDetailsToTerraform = exports.DatabaseDbSystemMaintenanceWindowDetailsMonthsList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databaseDbSystemIormConfigCacheDbPlansToTerraform(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.databaseDbSystemIormConfigCacheDbPlansToTerraform = databaseDbSystemIormConfigCacheDbPlansToTerraform;
function databaseDbSystemIormConfigCacheDbPlansToHclTerraform(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.databaseDbSystemIormConfigCacheDbPlansToHclTerraform = databaseDbSystemIormConfigCacheDbPlansToHclTerraform;
class DatabaseDbSystemIormConfigCacheDbPlansOutputReference 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.DatabaseDbSystemIormConfigCacheDbPlansOutputReference = DatabaseDbSystemIormConfigCacheDbPlansOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemIormConfigCacheDbPlansOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemIormConfigCacheDbPlansOutputReference", version: "1.0.0" };
class DatabaseDbSystemIormConfigCacheDbPlansList 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 DatabaseDbSystemIormConfigCacheDbPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemIormConfigCacheDbPlansList = DatabaseDbSystemIormConfigCacheDbPlansList;
_b = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemIormConfigCacheDbPlansList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemIormConfigCacheDbPlansList", version: "1.0.0" };
function databaseDbSystemIormConfigCacheToTerraform(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.databaseDbSystemIormConfigCacheToTerraform = databaseDbSystemIormConfigCacheToTerraform;
function databaseDbSystemIormConfigCacheToHclTerraform(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.databaseDbSystemIormConfigCacheToHclTerraform = databaseDbSystemIormConfigCacheToHclTerraform;
class DatabaseDbSystemIormConfigCacheOutputReference 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 DatabaseDbSystemIormConfigCacheDbPlansList(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;
}
// db_system_id - computed: true, optional: false, required: false
get dbSystemId() {
return this.getStringAttribute('db_system_id');
}
// 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.DatabaseDbSystemIormConfigCacheOutputReference = DatabaseDbSystemIormConfigCacheOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemIormConfigCacheOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemIormConfigCacheOutputReference", version: "1.0.0" };
class DatabaseDbSystemIormConfigCacheList 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 DatabaseDbSystemIormConfigCacheOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemIormConfigCacheList = DatabaseDbSystemIormConfigCacheList;
_d = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemIormConfigCacheList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemIormConfigCacheList", version: "1.0.0" };
function databaseDbSystemMaintenanceWindowDaysOfWeekToTerraform(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.databaseDbSystemMaintenanceWindowDaysOfWeekToTerraform = databaseDbSystemMaintenanceWindowDaysOfWeekToTerraform;
function databaseDbSystemMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseDbSystemMaintenanceWindowDaysOfWeekToHclTerraform = databaseDbSystemMaintenanceWindowDaysOfWeekToHclTerraform;
class DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference = DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" };
class DatabaseDbSystemMaintenanceWindowDaysOfWeekList 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 DatabaseDbSystemMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemMaintenanceWindowDaysOfWeekList = DatabaseDbSystemMaintenanceWindowDaysOfWeekList;
_f = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowDaysOfWeekList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowDaysOfWeekList", version: "1.0.0" };
function databaseDbSystemMaintenanceWindowMonthsToTerraform(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.databaseDbSystemMaintenanceWindowMonthsToTerraform = databaseDbSystemMaintenanceWindowMonthsToTerraform;
function databaseDbSystemMaintenanceWindowMonthsToHclTerraform(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.databaseDbSystemMaintenanceWindowMonthsToHclTerraform = databaseDbSystemMaintenanceWindowMonthsToHclTerraform;
class DatabaseDbSystemMaintenanceWindowMonthsOutputReference 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.DatabaseDbSystemMaintenanceWindowMonthsOutputReference = DatabaseDbSystemMaintenanceWindowMonthsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowMonthsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowMonthsOutputReference", version: "1.0.0" };
class DatabaseDbSystemMaintenanceWindowMonthsList 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 DatabaseDbSystemMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemMaintenanceWindowMonthsList = DatabaseDbSystemMaintenanceWindowMonthsList;
_h = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowMonthsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowMonthsList", version: "1.0.0" };
function databaseDbSystemMaintenanceWindowToTerraform(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.databaseDbSystemMaintenanceWindowToTerraform = databaseDbSystemMaintenanceWindowToTerraform;
function databaseDbSystemMaintenanceWindowToHclTerraform(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.databaseDbSystemMaintenanceWindowToHclTerraform = databaseDbSystemMaintenanceWindowToHclTerraform;
class DatabaseDbSystemMaintenanceWindowOutputReference 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 DatabaseDbSystemMaintenanceWindowDaysOfWeekList(this, "days_of_week", false);
// months - computed: true, optional: false, required: false
this._months = new DatabaseDbSystemMaintenanceWindowMonthsList(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.DatabaseDbSystemMaintenanceWindowOutputReference = DatabaseDbSystemMaintenanceWindowOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowOutputReference", version: "1.0.0" };
class DatabaseDbSystemMaintenanceWindowList 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 DatabaseDbSystemMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemMaintenanceWindowList = DatabaseDbSystemMaintenanceWindowList;
_k = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemMaintenanceWindowList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemMaintenanceWindowList", version: "1.0.0" };
function databaseDbSystemDataCollectionOptionsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
is_diagnostics_events_enabled: cdktf.booleanToTerraform(struct.isDiagnosticsEventsEnabled),
is_health_monitoring_enabled: cdktf.booleanToTerraform(struct.isHealthMonitoringEnabled),
is_incident_logs_enabled: cdktf.booleanToTerraform(struct.isIncidentLogsEnabled),
};
}
exports.databaseDbSystemDataCollectionOptionsToTerraform = databaseDbSystemDataCollectionOptionsToTerraform;
function databaseDbSystemDataCollectionOptionsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
is_diagnostics_events_enabled: {
value: cdktf.booleanToHclTerraform(struct.isDiagnosticsEventsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_health_monitoring_enabled: {
value: cdktf.booleanToHclTerraform(struct.isHealthMonitoringEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_incident_logs_enabled: {
value: cdktf.booleanToHclTerraform(struct.isIncidentLogsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbSystemDataCollectionOptionsToHclTerraform = databaseDbSystemDataCollectionOptionsToHclTerraform;
class DatabaseDbSystemDataCollectionOptionsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._isDiagnosticsEventsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isDiagnosticsEventsEnabled = this._isDiagnosticsEventsEnabled;
}
if (this._isHealthMonitoringEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isHealthMonitoringEnabled = this._isHealthMonitoringEnabled;
}
if (this._isIncidentLogsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isIncidentLogsEnabled = this._isIncidentLogsEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._isDiagnosticsEventsEnabled = undefined;
this._isHealthMonitoringEnabled = undefined;
this._isIncidentLogsEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._isDiagnosticsEventsEnabled = value.isDiagnosticsEventsEnabled;
this._isHealthMonitoringEnabled = value.isHealthMonitoringEnabled;
this._isIncidentLogsEnabled = value.isIncidentLogsEnabled;
}
}
get isDiagnosticsEventsEnabled() {
return this.getBooleanAttribute('is_diagnostics_events_enabled');
}
set isDiagnosticsEventsEnabled(value) {
this._isDiagnosticsEventsEnabled = value;
}
resetIsDiagnosticsEventsEnabled() {
this._isDiagnosticsEventsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isDiagnosticsEventsEnabledInput() {
return this._isDiagnosticsEventsEnabled;
}
get isHealthMonitoringEnabled() {
return this.getBooleanAttribute('is_health_monitoring_enabled');
}
set isHealthMonitoringEnabled(value) {
this._isHealthMonitoringEnabled = value;
}
resetIsHealthMonitoringEnabled() {
this._isHealthMonitoringEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isHealthMonitoringEnabledInput() {
return this._isHealthMonitoringEnabled;
}
get isIncidentLogsEnabled() {
return this.getBooleanAttribute('is_incident_logs_enabled');
}
set isIncidentLogsEnabled(value) {
this._isIncidentLogsEnabled = value;
}
resetIsIncidentLogsEnabled() {
this._isIncidentLogsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isIncidentLogsEnabledInput() {
return this._isIncidentLogsEnabled;
}
}
exports.DatabaseDbSystemDataCollectionOptionsOutputReference = DatabaseDbSystemDataCollectionOptionsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemDataCollectionOptionsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemDataCollectionOptionsOutputReference", version: "1.0.0" };
function databaseDbSystemDbHomeDatabaseConnectionStringsToTerraform(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.databaseDbSystemDbHomeDatabaseConnectionStringsToTerraform = databaseDbSystemDbHomeDatabaseConnectionStringsToTerraform;
function databaseDbSystemDbHomeDatabaseConnectionStringsToHclTerraform(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.databaseDbSystemDbHomeDatabaseConnectionStringsToHclTerraform = databaseDbSystemDbHomeDatabaseConnectionStringsToHclTerraform;
class DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference 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;
// all_connection_strings - computed: true, optional: false, required: false
this._allConnectionStrings = new cdktf.StringMap(this, "all_connection_strings");
}
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 allConnectionStrings() {
return this._allConnectionStrings;
}
// cdb_default - computed: true, optional: false, required: false
get cdbDefault() {
return this.getStringAttribute('cdb_default');
}
// cdb_ip_default - computed: true, optional: false, required: false
get cdbIpDefault() {
return this.getStringAttribute('cdb_ip_default');
}
}
exports.DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference = DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference;
_m = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference", version: "1.0.0" };
class DatabaseDbSystemDbHomeDatabaseConnectionStringsList 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 DatabaseDbSystemDbHomeDatabaseConnectionStringsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemDbHomeDatabaseConnectionStringsList = DatabaseDbSystemDbHomeDatabaseConnectionStringsList;
_o = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemDbHomeDatabaseConnectionStringsList[_o] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemDbHomeDatabaseConnectionStringsList", version: "1.0.0" };
function databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform(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 {
dbrs_policy_id: cdktf.stringToTerraform(struct.dbrsPolicyId),
id: cdktf.stringToTerraform(struct.id),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform;
function databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform(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 = {
dbrs_policy_id: {
value: cdktf.stringToHclTerraform(struct.dbrsPolicyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform;
class DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference 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._dbrsPolicyId !== undefined) {
hasAnyValues = true;
internalValueResult.dbrsPolicyId = this._dbrsPolicyId;
}
if (this._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._dbrsPolicyId = undefined;
this._id = undefined;
this._type = 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._dbrsPolicyId = value.dbrsPolicyId;
this._id = value.id;
this._type = value.type;
}
}
get dbrsPolicyId() {
return this.getStringAttribute('dbrs_policy_id');
}
set dbrsPolicyId(value) {
this._dbrsPolicyId = value;
}
resetDbrsPolicyId() {
this._dbrsPolicyId = undefined;
}
// Temporarily expose input value. Use with caution.
get dbrsPolicyIdInput() {
return this._dbrsPolicyId;
}
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 type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference;
_p = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference[_p] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference", version: "1.0.0" };
class DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList 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 DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList = DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList;
_q = JSII_RTTI_SYMBOL_1;
DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList[_q] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbSystem.DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList", version: "1.0.0" };
function databaseDbSystemDbHomeDatabaseDbBackupConfigToTerraform(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 {
auto_backup_enabled: cdktf.booleanToTerraform(struct.autoBackupEnabled),
auto_backup_window: cdktf.stringToTerraform(struct.autoBackupWindow),
auto_full_backup_day: cdktf.stringToTerraform(struct.autoFullBackupDay),
auto_full_backup_window: cdktf.stringToTerraform(struct.autoFullBackupWindow),
backup_deletion_policy: cdktf.stringToTerraform(struct.backupDeletionPolicy),
recovery_window_in_days: cdktf.numberToTerraform(struct.recoveryWindowInDays),
run_immediate_full_backup: cdktf.booleanToTerraform(struct.runImmediateFullBackup),
backup_destination_details: cdktf.listMapper(databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform, true)(struct.backupDestinationDetails),
};
}
exports.databaseDbSystemDbHomeDatabaseDbBackupConfigToTerraform = databaseDbSystemDbHomeDatabaseDbBackupConfigToTerraform;
function databaseDbSystemDbHomeDatabaseDbBackupConfigToHclTerraform(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 = {
auto_backup_enabled: {
value: cdktf.booleanToHclTerraform(struct.autoBackupEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
auto_backup_window: {
value: cdktf.stringToHclTerraform(struct.autoBackupWindow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auto_full_backup_day: {
value: cdktf.stringToHclTerraform(struct.autoFullBackupDay),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auto_full_backup_window: {
value: cdktf.stringToHclTerraform(struct.autoFullBackupWindow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backup_deletion_policy: {
value: cdktf.stringToHclTerraform(struct.backupDeletionPolicy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
recovery_window_in_days: {
value: cdktf.numberToHclTerraform(struct.recoveryWindowInDays),
isBlock: false,
type: "simple",
storageClassType: "number",
},
run_immediate_full_backup: {
value: cdktf.booleanToHclTerraform(struct.runImmediateFullBackup),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
backup_destination_details: {
value: cdktf.listMapperHcl(databaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform, true)(struct.backupDestinationDetails),
isBlock: true,
type: "list",
storageClassType: "DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbSystemDbHomeDatabaseDbBackupConfigToHclTerraform = databaseDbSystemDbHomeDatabaseDbBackupConfigToHclTerraform;
class DatabaseDbSystemDbHomeDatabaseDbBackupConfigOutputReference 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;
// backup_destination_details - computed: false, optional: true, required: false
this._backupDestinationDetails = new DatabaseDbSystemDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList(this, "backup_destination_details", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._autoBackupEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.autoBackupEnabled = this._autoBackupEnabled;
}
if (this._autoBackupWindow !== undefined) {
hasAnyValues = true;
internalValueResult.autoBackupWindow = this._autoBackupWindow;
}
if (this._autoFullBackupDay !== undefined) {
hasAnyValues = true;
internalValueResult.autoFullBackupDay = this._autoFullBackupDay;
}
if (this._autoFullBackupWindow !== undefined) {
hasAnyValues = true;
internalValueResult.autoFullBackupWindow = this._autoFullBackupWindow;
}
if (this._backupDeletionPolicy !== undefined) {
hasAnyValues = true;
internalValueResult.backupDeletionPolicy = this._backupDeletionPolicy;
}
if (this._recoveryWindowInDays !== undefined) {
hasAnyValues = true;
internalValueResult.recoveryWindowInDays = this._recoveryWindowInDays;
}
if (this._runImmediateFullBackup !== undefined) {
hasAnyValues = true;
internalValueResult.runImmediateFullBackup = this._runImmediateFullBackup;
}
if (this._backupDestinationDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.backupDestinationDetails = this._backupDestinationDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._autoBackupEnabled = undefined;
this._autoBackupWindow = undefined;
this._autoFullBackupDay = undefined;
this._autoFullBackupWindow = undefined;
this._backupDeletionPolicy = undefined;
this._recoveryWindowInDays = undefined;
this._runImmediateFullBackup = undefined;
this._backupDestinationDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._autoBackupEnabled = value.autoBackupEnabled;
this._autoBackupWindow = value.autoBackupWindow;
this._autoFullBackupDay = value.autoFullBackupDay;
this._autoFullBackupWindow = value.autoFullBackupWindow;
this._backupDeletionPolicy = value.backupDeletionPolicy;
this._recoveryWindowInDays = value.recoveryWindowInDays;
this._runImmediateFullBackup = value.runImmediateFullBackup;
this._backupDestinationDetails.internalValue = value.backupDestinationDetails;
}
}
get autoBackupEnabled() {
return this.getBooleanAttribute('auto_backup_enabled');
}
set autoBackupEnabled(value) {
this._autoBackupEnabled = value