rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,124 lines • 266 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseExadataInfrastructure = exports.DatabaseExadataInfrastructureTimeoutsOutputReference = exports.databaseExadataInfrastructureTimeoutsToHclTerraform = exports.databaseExadataInfrastructureTimeoutsToTerraform = exports.DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference = exports.databaseExadataInfrastructureNetworkBondingModeDetailsToHclTerraform = exports.databaseExadataInfrastructureNetworkBondingModeDetailsToTerraform = exports.DatabaseExadataInfrastructureMaintenanceWindowOutputReference = exports.databaseExadataInfrastructureMaintenanceWindowToHclTerraform = exports.databaseExadataInfrastructureMaintenanceWindowToTerraform = exports.DatabaseExadataInfrastructureMaintenanceWindowMonthsList = exports.DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference = exports.databaseExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = exports.databaseExadataInfrastructureMaintenanceWindowMonthsToTerraform = exports.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList = exports.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = exports.databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = exports.DatabaseExadataInfrastructureContactsList = exports.DatabaseExadataInfrastructureContactsOutputReference = exports.databaseExadataInfrastructureContactsToHclTerraform = exports.databaseExadataInfrastructureContactsToTerraform = exports.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList = exports.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference = exports.databaseExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform = exports.databaseExadataInfrastructureDefinedFileSystemConfigurationsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databaseExadataInfrastructureDefinedFileSystemConfigurationsToTerraform(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.databaseExadataInfrastructureDefinedFileSystemConfigurationsToTerraform = databaseExadataInfrastructureDefinedFileSystemConfigurationsToTerraform;
function databaseExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform(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.databaseExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform = databaseExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform;
class DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference 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;
}
}
// is_backup_partition - computed: true, optional: false, required: false
get isBackupPartition() {
return this.getBooleanAttribute('is_backup_partition');
}
// is_resizable - computed: true, optional: false, required: false
get isResizable() {
return this.getBooleanAttribute('is_resizable');
}
// min_size_gb - computed: true, optional: false, required: false
get minSizeGb() {
return this.getNumberAttribute('min_size_gb');
}
// mount_point - computed: true, optional: false, required: false
get mountPoint() {
return this.getStringAttribute('mount_point');
}
}
exports.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference = DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference", version: "1.0.0" };
class DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList 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 DatabaseExadataInfrastructureDefinedFileSystemConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList = DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList;
_b = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureDefinedFileSystemConfigurationsList", version: "1.0.0" };
function databaseExadataInfrastructureContactsToTerraform(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 {
email: cdktf.stringToTerraform(struct.email),
is_contact_mos_validated: cdktf.booleanToTerraform(struct.isContactMosValidated),
is_primary: cdktf.booleanToTerraform(struct.isPrimary),
name: cdktf.stringToTerraform(struct.name),
phone_number: cdktf.stringToTerraform(struct.phoneNumber),
};
}
exports.databaseExadataInfrastructureContactsToTerraform = databaseExadataInfrastructureContactsToTerraform;
function databaseExadataInfrastructureContactsToHclTerraform(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 = {
email: {
value: cdktf.stringToHclTerraform(struct.email),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_contact_mos_validated: {
value: cdktf.booleanToHclTerraform(struct.isContactMosValidated),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_primary: {
value: cdktf.booleanToHclTerraform(struct.isPrimary),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
phone_number: {
value: cdktf.stringToHclTerraform(struct.phoneNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadataInfrastructureContactsToHclTerraform = databaseExadataInfrastructureContactsToHclTerraform;
class DatabaseExadataInfrastructureContactsOutputReference 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._email !== undefined) {
hasAnyValues = true;
internalValueResult.email = this._email;
}
if (this._isContactMosValidated !== undefined) {
hasAnyValues = true;
internalValueResult.isContactMosValidated = this._isContactMosValidated;
}
if (this._isPrimary !== undefined) {
hasAnyValues = true;
internalValueResult.isPrimary = this._isPrimary;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._phoneNumber !== undefined) {
hasAnyValues = true;
internalValueResult.phoneNumber = this._phoneNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._email = undefined;
this._isContactMosValidated = undefined;
this._isPrimary = undefined;
this._name = undefined;
this._phoneNumber = 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._email = value.email;
this._isContactMosValidated = value.isContactMosValidated;
this._isPrimary = value.isPrimary;
this._name = value.name;
this._phoneNumber = value.phoneNumber;
}
}
get email() {
return this.getStringAttribute('email');
}
set email(value) {
this._email = value;
}
// Temporarily expose input value. Use with caution.
get emailInput() {
return this._email;
}
get isContactMosValidated() {
return this.getBooleanAttribute('is_contact_mos_validated');
}
set isContactMosValidated(value) {
this._isContactMosValidated = value;
}
resetIsContactMosValidated() {
this._isContactMosValidated = undefined;
}
// Temporarily expose input value. Use with caution.
get isContactMosValidatedInput() {
return this._isContactMosValidated;
}
get isPrimary() {
return this.getBooleanAttribute('is_primary');
}
set isPrimary(value) {
this._isPrimary = value;
}
// Temporarily expose input value. Use with caution.
get isPrimaryInput() {
return this._isPrimary;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get phoneNumber() {
return this.getStringAttribute('phone_number');
}
set phoneNumber(value) {
this._phoneNumber = value;
}
resetPhoneNumber() {
this._phoneNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get phoneNumberInput() {
return this._phoneNumber;
}
}
exports.DatabaseExadataInfrastructureContactsOutputReference = DatabaseExadataInfrastructureContactsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureContactsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureContactsOutputReference", version: "1.0.0" };
class DatabaseExadataInfrastructureContactsList 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 DatabaseExadataInfrastructureContactsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadataInfrastructureContactsList = DatabaseExadataInfrastructureContactsList;
_d = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureContactsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureContactsList", version: "1.0.0" };
function databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform(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.databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform;
function databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform;
class DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" };
class DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList 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 DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList = DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList;
_f = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList", version: "1.0.0" };
function databaseExadataInfrastructureMaintenanceWindowMonthsToTerraform(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.databaseExadataInfrastructureMaintenanceWindowMonthsToTerraform = databaseExadataInfrastructureMaintenanceWindowMonthsToTerraform;
function databaseExadataInfrastructureMaintenanceWindowMonthsToHclTerraform(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.databaseExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = databaseExadataInfrastructureMaintenanceWindowMonthsToHclTerraform;
class DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference 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.DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference = DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference", version: "1.0.0" };
class DatabaseExadataInfrastructureMaintenanceWindowMonthsList 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 DatabaseExadataInfrastructureMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadataInfrastructureMaintenanceWindowMonthsList = DatabaseExadataInfrastructureMaintenanceWindowMonthsList;
_h = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureMaintenanceWindowMonthsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureMaintenanceWindowMonthsList", version: "1.0.0" };
function databaseExadataInfrastructureMaintenanceWindowToTerraform(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(databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform, true)(struct.daysOfWeek),
months: cdktf.listMapper(databaseExadataInfrastructureMaintenanceWindowMonthsToTerraform, true)(struct.months),
};
}
exports.databaseExadataInfrastructureMaintenanceWindowToTerraform = databaseExadataInfrastructureMaintenanceWindowToTerraform;
function databaseExadataInfrastructureMaintenanceWindowToHclTerraform(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(databaseExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform, true)(struct.daysOfWeek),
isBlock: true,
type: "list",
storageClassType: "DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList",
},
months: {
value: cdktf.listMapperHcl(databaseExadataInfrastructureMaintenanceWindowMonthsToHclTerraform, true)(struct.months),
isBlock: true,
type: "list",
storageClassType: "DatabaseExadataInfrastructureMaintenanceWindowMonthsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadataInfrastructureMaintenanceWindowToHclTerraform = databaseExadataInfrastructureMaintenanceWindowToHclTerraform;
class DatabaseExadataInfrastructureMaintenanceWindowOutputReference 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 DatabaseExadataInfrastructureMaintenanceWindowDaysOfWeekList(this, "days_of_week", false);
// months - computed: false, optional: true, required: false
this._months = new DatabaseExadataInfrastructureMaintenanceWindowMonthsList(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.DatabaseExadataInfrastructureMaintenanceWindowOutputReference = DatabaseExadataInfrastructureMaintenanceWindowOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureMaintenanceWindowOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureMaintenanceWindowOutputReference", version: "1.0.0" };
function databaseExadataInfrastructureNetworkBondingModeDetailsToTerraform(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 {
backup_network_bonding_mode: cdktf.stringToTerraform(struct.backupNetworkBondingMode),
client_network_bonding_mode: cdktf.stringToTerraform(struct.clientNetworkBondingMode),
dr_network_bonding_mode: cdktf.stringToTerraform(struct.drNetworkBondingMode),
};
}
exports.databaseExadataInfrastructureNetworkBondingModeDetailsToTerraform = databaseExadataInfrastructureNetworkBondingModeDetailsToTerraform;
function databaseExadataInfrastructureNetworkBondingModeDetailsToHclTerraform(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 = {
backup_network_bonding_mode: {
value: cdktf.stringToHclTerraform(struct.backupNetworkBondingMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_network_bonding_mode: {
value: cdktf.stringToHclTerraform(struct.clientNetworkBondingMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dr_network_bonding_mode: {
value: cdktf.stringToHclTerraform(struct.drNetworkBondingMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadataInfrastructureNetworkBondingModeDetailsToHclTerraform = databaseExadataInfrastructureNetworkBondingModeDetailsToHclTerraform;
class DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference 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._backupNetworkBondingMode !== undefined) {
hasAnyValues = true;
internalValueResult.backupNetworkBondingMode = this._backupNetworkBondingMode;
}
if (this._clientNetworkBondingMode !== undefined) {
hasAnyValues = true;
internalValueResult.clientNetworkBondingMode = this._clientNetworkBondingMode;
}
if (this._drNetworkBondingMode !== undefined) {
hasAnyValues = true;
internalValueResult.drNetworkBondingMode = this._drNetworkBondingMode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._backupNetworkBondingMode = undefined;
this._clientNetworkBondingMode = undefined;
this._drNetworkBondingMode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._backupNetworkBondingMode = value.backupNetworkBondingMode;
this._clientNetworkBondingMode = value.clientNetworkBondingMode;
this._drNetworkBondingMode = value.drNetworkBondingMode;
}
}
get backupNetworkBondingMode() {
return this.getStringAttribute('backup_network_bonding_mode');
}
set backupNetworkBondingMode(value) {
this._backupNetworkBondingMode = value;
}
resetBackupNetworkBondingMode() {
this._backupNetworkBondingMode = undefined;
}
// Temporarily expose input value. Use with caution.
get backupNetworkBondingModeInput() {
return this._backupNetworkBondingMode;
}
get clientNetworkBondingMode() {
return this.getStringAttribute('client_network_bonding_mode');
}
set clientNetworkBondingMode(value) {
this._clientNetworkBondingMode = value;
}
resetClientNetworkBondingMode() {
this._clientNetworkBondingMode = undefined;
}
// Temporarily expose input value. Use with caution.
get clientNetworkBondingModeInput() {
return this._clientNetworkBondingMode;
}
get drNetworkBondingMode() {
return this.getStringAttribute('dr_network_bonding_mode');
}
set drNetworkBondingMode(value) {
this._drNetworkBondingMode = value;
}
resetDrNetworkBondingMode() {
this._drNetworkBondingMode = undefined;
}
// Temporarily expose input value. Use with caution.
get drNetworkBondingModeInput() {
return this._drNetworkBondingMode;
}
}
exports.DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference = DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureNetworkBondingModeDetailsOutputReference", version: "1.0.0" };
function databaseExadataInfrastructureTimeoutsToTerraform(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.databaseExadataInfrastructureTimeoutsToTerraform = databaseExadataInfrastructureTimeoutsToTerraform;
function databaseExadataInfrastructureTimeoutsToHclTerraform(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.databaseExadataInfrastructureTimeoutsToHclTerraform = databaseExadataInfrastructureTimeoutsToHclTerraform;
class DatabaseExadataInfrastructureTimeoutsOutputReference 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.DatabaseExadataInfrastructureTimeoutsOutputReference = DatabaseExadataInfrastructureTimeoutsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DatabaseExadataInfrastructureTimeoutsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructure.DatabaseExadataInfrastructureTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadata_infrastructure oci_database_exadata_infrastructure}
*/
class DatabaseExadataInfrastructure extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DatabaseExadataInfrastructure resource upon running "cdktf plan <stack-name>"
* @param scop