UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,187 lines 194 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseExadataInfrastructureStorage = exports.DatabaseExadataInfrastructureStorageTimeoutsOutputReference = exports.databaseExadataInfrastructureStorageTimeoutsToHclTerraform = exports.databaseExadataInfrastructureStorageTimeoutsToTerraform = exports.DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference = exports.databaseExadataInfrastructureStorageMaintenanceWindowToHclTerraform = exports.databaseExadataInfrastructureStorageMaintenanceWindowToTerraform = exports.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList = exports.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference = exports.databaseExadataInfrastructureStorageMaintenanceWindowMonthsToHclTerraform = exports.databaseExadataInfrastructureStorageMaintenanceWindowMonthsToTerraform = exports.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList = exports.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference = exports.databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToTerraform = exports.DatabaseExadataInfrastructureStorageContactsList = exports.DatabaseExadataInfrastructureStorageContactsOutputReference = exports.databaseExadataInfrastructureStorageContactsToHclTerraform = exports.databaseExadataInfrastructureStorageContactsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseExadataInfrastructureStorageContactsToTerraform(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.databaseExadataInfrastructureStorageContactsToTerraform = databaseExadataInfrastructureStorageContactsToTerraform; function databaseExadataInfrastructureStorageContactsToHclTerraform(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.databaseExadataInfrastructureStorageContactsToHclTerraform = databaseExadataInfrastructureStorageContactsToHclTerraform; class DatabaseExadataInfrastructureStorageContactsOutputReference 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.DatabaseExadataInfrastructureStorageContactsOutputReference = DatabaseExadataInfrastructureStorageContactsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageContactsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageContactsOutputReference", version: "1.0.0" }; class DatabaseExadataInfrastructureStorageContactsList 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 DatabaseExadataInfrastructureStorageContactsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseExadataInfrastructureStorageContactsList = DatabaseExadataInfrastructureStorageContactsList; _b = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageContactsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageContactsList", version: "1.0.0" }; function databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToTerraform(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.databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToTerraform = databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToTerraform; function databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToHclTerraform = databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference = DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList 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 DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList = DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList; _d = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseExadataInfrastructureStorageMaintenanceWindowMonthsToTerraform(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.databaseExadataInfrastructureStorageMaintenanceWindowMonthsToTerraform = databaseExadataInfrastructureStorageMaintenanceWindowMonthsToTerraform; function databaseExadataInfrastructureStorageMaintenanceWindowMonthsToHclTerraform(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.databaseExadataInfrastructureStorageMaintenanceWindowMonthsToHclTerraform = databaseExadataInfrastructureStorageMaintenanceWindowMonthsToHclTerraform; class DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference 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.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference = DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList 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 DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList = DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList; _f = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseExadataInfrastructureStorageMaintenanceWindowToTerraform(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 { hours_of_day: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.hoursOfDay), lead_time_in_weeks: cdktf.numberToTerraform(struct.leadTimeInWeeks), preference: cdktf.stringToTerraform(struct.preference), weeks_of_month: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.weeksOfMonth), days_of_week: cdktf.listMapper(databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToTerraform, true)(struct.daysOfWeek), months: cdktf.listMapper(databaseExadataInfrastructureStorageMaintenanceWindowMonthsToTerraform, true)(struct.months), }; } exports.databaseExadataInfrastructureStorageMaintenanceWindowToTerraform = databaseExadataInfrastructureStorageMaintenanceWindowToTerraform; function databaseExadataInfrastructureStorageMaintenanceWindowToHclTerraform(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 = { hours_of_day: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.hoursOfDay), isBlock: false, type: "list", storageClassType: "numberList", }, lead_time_in_weeks: { value: cdktf.numberToHclTerraform(struct.leadTimeInWeeks), isBlock: false, type: "simple", storageClassType: "number", }, preference: { value: cdktf.stringToHclTerraform(struct.preference), isBlock: false, type: "simple", storageClassType: "string", }, weeks_of_month: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.weeksOfMonth), isBlock: false, type: "list", storageClassType: "numberList", }, days_of_week: { value: cdktf.listMapperHcl(databaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekToHclTerraform, true)(struct.daysOfWeek), isBlock: true, type: "list", storageClassType: "DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList", }, months: { value: cdktf.listMapperHcl(databaseExadataInfrastructureStorageMaintenanceWindowMonthsToHclTerraform, true)(struct.months), isBlock: true, type: "list", storageClassType: "DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseExadataInfrastructureStorageMaintenanceWindowToHclTerraform = databaseExadataInfrastructureStorageMaintenanceWindowToHclTerraform; class DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference 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 DatabaseExadataInfrastructureStorageMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: false, optional: true, required: false this._months = new DatabaseExadataInfrastructureStorageMaintenanceWindowMonthsList(this, "months", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._hoursOfDay !== undefined) { hasAnyValues = true; internalValueResult.hoursOfDay = this._hoursOfDay; } if (this._leadTimeInWeeks !== undefined) { hasAnyValues = true; internalValueResult.leadTimeInWeeks = this._leadTimeInWeeks; } if (this._preference !== undefined) { hasAnyValues = true; internalValueResult.preference = this._preference; } 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._hoursOfDay = undefined; this._leadTimeInWeeks = undefined; this._preference = undefined; this._weeksOfMonth = undefined; this._daysOfWeek.internalValue = undefined; this._months.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._hoursOfDay = value.hoursOfDay; this._leadTimeInWeeks = value.leadTimeInWeeks; this._preference = value.preference; this._weeksOfMonth = value.weeksOfMonth; this._daysOfWeek.internalValue = value.daysOfWeek; this._months.internalValue = value.months; } } 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 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 preference() { return this.getStringAttribute('preference'); } set preference(value) { this._preference = value; } // Temporarily expose input value. Use with caution. get preferenceInput() { return this._preference; } 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.DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference = DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference", version: "1.0.0" }; function databaseExadataInfrastructureStorageTimeoutsToTerraform(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.databaseExadataInfrastructureStorageTimeoutsToTerraform = databaseExadataInfrastructureStorageTimeoutsToTerraform; function databaseExadataInfrastructureStorageTimeoutsToHclTerraform(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.databaseExadataInfrastructureStorageTimeoutsToHclTerraform = databaseExadataInfrastructureStorageTimeoutsToHclTerraform; class DatabaseExadataInfrastructureStorageTimeoutsOutputReference 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.DatabaseExadataInfrastructureStorageTimeoutsOutputReference = DatabaseExadataInfrastructureStorageTimeoutsOutputReference; _h = JSII_RTTI_SYMBOL_1; DatabaseExadataInfrastructureStorageTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadataInfrastructureStorage.DatabaseExadataInfrastructureStorageTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadata_infrastructure_storage oci_database_exadata_infrastructure_storage} */ class DatabaseExadataInfrastructureStorage extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseExadataInfrastructureStorage 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 DatabaseExadataInfrastructureStorage to import * @param importFromId The id of the existing DatabaseExadataInfrastructureStorage that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadata_infrastructure_storage#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseExadataInfrastructureStorage to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_exadata_infrastructure_storage", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadata_infrastructure_storage oci_database_exadata_infrastructure_storage} 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 DatabaseExadataInfrastructureStorageConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_exadata_infrastructure_storage', 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 }); // contacts - computed: false, optional: true, required: false this._contacts = new DatabaseExadataInfrastructureStorageContactsList(this, "contacts", false); // maintenance_window - computed: false, optional: true, required: false this._maintenanceWindow = new DatabaseExadataInfrastructureStorageMaintenanceWindowOutputReference(this, "maintenance_window"); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseExadataInfrastructureStorageTimeoutsOutputReference(this, "timeouts"); this._activationFile = config.activationFile; this._adminNetworkCidr = config.adminNetworkCidr; this._cloudControlPlaneServer1 = config.cloudControlPlaneServer1; this._cloudControlPlaneServer2 = config.cloudControlPlaneServer2; this._compartmentId = config.compartmentId; this._computeCount = config.computeCount; this._corporateProxy = config.corporateProxy; this._definedTags = config.definedTags; this._displayName = config.displayName; this._dnsServer = config.dnsServer; this._exadataInfrastructureId = config.exadataInfrastructureId; this._freeformTags = config.freeformTags; this._gateway = config.gateway; this._id = config.id; this._infiniBandNetworkCidr = config.infiniBandNetworkCidr; this._netmask = config.netmask; this._ntpServer = config.ntpServer; this._shape = config.shape; this._storageCount = config.storageCount; this._timeZone = config.timeZone; this._contacts.internalValue = config.contacts; this._maintenanceWindow.internalValue = config.maintenanceWindow; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // activated_storage_count - computed: true, optional: false, required: false get activatedStorageCount() { return this.getNumberAttribute('activated_storage_count'); } get activationFile() { return this.getStringAttribute('activation_file'); } set activationFile(value) { this._activationFile = value; } resetActivationFile() { this._activationFile = undefined; } // Temporarily expose input value. Use with caution. get activationFileInput() { return this._activationFile; } // additional_storage_count - computed: true, optional: false, required: false get additionalStorageCount() { return this.getNumberAttribute('additional_storage_count'); } get adminNetworkCidr() { return this.getStringAttribute('admin_network_cidr'); } set adminNetworkCidr(value) { this._adminNetworkCidr = value; } // Temporarily expose input value. Use with caution. get adminNetworkCidrInput() { return this._adminNetworkCidr; } get cloudControlPlaneServer1() { return this.getStringAttribute('cloud_control_plane_server1'); } set cloudControlPlaneServer1(value) { this._cloudControlPlaneServer1 = value; } // Temporarily expose input value. Use with caution. get cloudControlPlaneServer1Input() { return this._cloudControlPlaneServer1; } get cloudControlPlaneServer2() { return this.getStringAttribute('cloud_control_plane_server2'); } set cloudControlPlaneServer2(value) { this._cloudControlPlaneServer2 = value; } // Temporarily expose input value. Use with caution. get cloudControlPlaneServer2Input() { return this._cloudControlPlaneServer2; } get compartmentId() { return this.getStringAttribute('compartment_id'); } set compartmentId(value) { this._compartmentId = value; } // Temporarily expose input value. Use with caution. get compartmentIdInput() { return this._compartmentId; } get computeCount() { return this.getNumberAttribute('compute_count'); } set computeCount(value) { this._computeCount = value; } resetComputeCount() { this._computeCount = undefined; } // Temporarily expose input value. Use with caution. get computeCountInput() { return this._computeCount; } get corporateProxy() { return this.getStringAttribute('corporate_proxy'); } set corporateProxy(value) { this._corporateProxy = value; } resetCorporateProxy() { this._corporateProxy = undefined; } // Temporarily expose input value. Use with caution. get corporateProxyInput() { return this._corporateProxy; } // cpus_enabled - computed: true, optional: false, required: false get cpusEnabled() { return this.getNumberAttribute('cpus_enabled'); } // csi_number - computed: true, optional: false, required: false get csiNumber() { return this.getStringAttribute('csi_number'); } // data_storage_size_in_tbs - computed: true, optional: false, required: false get dataStorageSizeInTbs() { return this.getNumberAttribute('data_storage_size_in_tbs'); } // db_node_storage_size_in_gbs - computed: true, optional: false, required: false get dbNodeStorageSizeInGbs() { return this.getNumberAttribute('db_node_storage_size_in_gbs'); } get definedTags() { return this.getStringMapAttribute('defined_tags'); } set definedTags(value) { this._definedTags = value; } resetDefinedTags() { this._definedTags = undefined; } // Temporarily expose input value. Use with caution. get definedTagsInput() { return this._definedTags; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get dnsServer() { return this.getListAttribute('dns_server'); } set dnsServer(value) { this._dnsServer = value; } // Temporarily expose input value. Use with caution. get dnsServerInput() { return this._dnsServer; } get exadataInfrastructureId() { return this.getStringAttribute('exadata_infrastructure_id'); } set exadataInfrastructureId(value) { this._exadataInfrastructureId = value; } resetExadataInfrastructureId() { this._exadataInfrastructureId = undefined; } // Temporarily expose input value. Use with caution. get exadataInfrastructureIdInput() { return this._exadataInfrastructureId; } get freeformTags() { return this.getStringMapAttribute('freeform_tags'); } set freeformTags(value) { this._freeformTags = value; } resetFreeformTags() { this._freeformTags = undefined; } // Temporarily expose input value. Use with caution. get freeformTagsInput() { return this._freeformTags; } get gateway() { return this.getStringAttribute('gateway'); } set gateway(value) { this._gateway = value; } // Temporarily expose input value. Use with caution. get gatewayInput() { return this._gateway; } 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 infiniBandNetworkCidr() { return this.getStringAttribute('infini_band_network_cidr'); } set infiniBandNetworkCidr(value) { this._infiniBandNetworkCidr = value; } // Temporarily expose input value. Use with caution. get infiniBandNetworkCidrInput() { return this._infiniBandNetworkCidr; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // maintenance_slo_status - computed: true, optional: false, required: false get maintenanceSloStatus() { return this.getStringAttribute('maintenance_slo_status'); } // max_cpu_count - computed: true, optional: false, required: false get maxCpuCount() { return this.getNumberAttribute('max_cpu_count'); } // max_data_storage_in_tbs - computed: true, optional: false, required: false get maxDataStorageInTbs() { return this.getNumberAttribute('max_data_storage_in_tbs'); } // max_db_node_storage_in_gbs - computed: true, optional: false, required: false get maxDbNodeStorageInGbs() { return this.getNumberAttribute('max_db_node_storage_in_gbs'); } // max_memory_in_gbs - computed: true, optional: false, required: false get maxMemoryInGbs() { return this.getNumberAttribute('max_memory_in_gbs'); } // memory_size_in_gbs - computed: true, optional: false, required: false get memorySizeInGbs() { return this.getNumberAttribute('memory_size_in_gbs'); } get netmask() { return this.getStringAttribute('netmask'); } set netmask(value) { this._netmask = value; } // Temporarily expose input value. Use with caution. get netmaskInput() { return this._netmask; } get ntpServer() { return this.getListAttribute('ntp_server'); } set ntpServer(value) { this._ntpServer = value; } // Temporarily expose input value. Use with caution. get ntpServerInput() { return this._ntpServer; } get shape() { return this.getStringAttribute('shape'); } set shape(value) { this._shape = value; } // Temporarily expose input value. Use with caution. get shapeInput() { return this._shape; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get storageCount() { return this.getNumberAttribute('storage_count'); } set storageCount(value) { this._storageCount = value; } resetStorageCount() { this._storageCount = undefined; } // Temporarily expose input value. Use with caution. get storageCountInput() { return this._storageCount; } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } get timeZone() { return this.getStringAttribute('time_zone'); } set timeZone(value) { this._timeZone = value; } // Temporarily expose input value. Use with caution. get timeZoneInput() { return this._timeZone; } get contacts() { return this._contacts; } putContacts(value) { this._contacts.internalValue = value; } resetContacts() { this._contacts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get contactsInput() { return this._contacts.internalValue; } get maintenanceWindow() { return this._maintenanceWindow; } putMaintenanceWindow(value) { this._maintenanceWindow.internalValue = value; } resetMaintenanceWindow() { this._maintenanceWindow.internalValue = undefined; } // Temporarily expose input value. Use with caution. get maintenanceWindowInput() { return this._maintenanceWindow.internalValue; } 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 { activation_file: cdktf.stringToTerraform(this._activationFile), admin_network_cidr: cdktf.stringToTerraform(this._adminNetworkCidr), cloud_control_plane_server1: cdktf.stringToTerraform(this._cloudControlPlaneServer1), cloud_control_plane_server2: cdktf.stringToTerraform(this._cloudControlPlaneServer2), compartment_id: cdktf.stringToTerraform(this._compartmentId), compute_count: cdktf.numberToTerraform(this._computeCount), corporate_proxy: cdktf.stringToTerraform(this._corporateProxy), defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._definedTags), display_name: cdktf.stringToTerraform(this._displayName), dns_server: cdktf.listMapper(cdktf.stringToTerraform, false)(this._dnsServer), exadata_infrastructure_id: cdktf.stringToTerraform(this._exadataInfrastructureId), freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._freeformTags), gateway: cdktf.stringToTerraform(this._gateway), id: cdktf.stringToTerraform(this._id), infini_band_network_cidr: cdktf.stringToTerraform(this._infiniBandNetworkCidr), netmask: cdktf.stringToTerraform(this._netmask), ntp_server: cdktf.listMapper(cdktf.strin