UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,101 lines 195 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseCloudExadataInfrastructure = exports.DatabaseCloudExadataInfrastructureTimeoutsOutputReference = exports.databaseCloudExadataInfrastructureTimeoutsToHclTerraform = exports.databaseCloudExadataInfrastructureTimeoutsToTerraform = exports.DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference = exports.databaseCloudExadataInfrastructureMaintenanceWindowToHclTerraform = exports.databaseCloudExadataInfrastructureMaintenanceWindowToTerraform = exports.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList = exports.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference = exports.databaseCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = exports.databaseCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform = exports.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList = exports.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = exports.databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = exports.databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = exports.DatabaseCloudExadataInfrastructureCustomerContactsList = exports.DatabaseCloudExadataInfrastructureCustomerContactsOutputReference = exports.databaseCloudExadataInfrastructureCustomerContactsToHclTerraform = exports.databaseCloudExadataInfrastructureCustomerContactsToTerraform = exports.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList = exports.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference = exports.databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform = exports.databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToTerraform(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.databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToTerraform = databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToTerraform; function databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform(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.databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform = databaseCloudExadataInfrastructureDefinedFileSystemConfigurationsToHclTerraform; class DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference 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.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference = DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference", version: "1.0.0" }; class DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList 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 DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList = DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList; _b = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList", version: "1.0.0" }; function databaseCloudExadataInfrastructureCustomerContactsToTerraform(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), }; } exports.databaseCloudExadataInfrastructureCustomerContactsToTerraform = databaseCloudExadataInfrastructureCustomerContactsToTerraform; function databaseCloudExadataInfrastructureCustomerContactsToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudExadataInfrastructureCustomerContactsToHclTerraform = databaseCloudExadataInfrastructureCustomerContactsToHclTerraform; class DatabaseCloudExadataInfrastructureCustomerContactsOutputReference 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._email = 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; } } get email() { return this.getStringAttribute('email'); } set email(value) { this._email = value; } resetEmail() { this._email = undefined; } // Temporarily expose input value. Use with caution. get emailInput() { return this._email; } } exports.DatabaseCloudExadataInfrastructureCustomerContactsOutputReference = DatabaseCloudExadataInfrastructureCustomerContactsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureCustomerContactsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureCustomerContactsOutputReference", version: "1.0.0" }; class DatabaseCloudExadataInfrastructureCustomerContactsList 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 DatabaseCloudExadataInfrastructureCustomerContactsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudExadataInfrastructureCustomerContactsList = DatabaseCloudExadataInfrastructureCustomerContactsList; _d = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureCustomerContactsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureCustomerContactsList", version: "1.0.0" }; function databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform(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.databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform; function databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform(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.databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform; class DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference 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.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference", version: "1.0.0" }; class DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList 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 DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList = DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList; _f = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList", version: "1.0.0" }; function databaseCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform(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.databaseCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform = databaseCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform; function databaseCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform(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.databaseCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = databaseCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform; class DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference 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.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference = DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference", version: "1.0.0" }; class DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList 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 DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList = DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList; _h = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList", version: "1.0.0" }; function databaseCloudExadataInfrastructureMaintenanceWindowToTerraform(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(databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform, true)(struct.daysOfWeek), months: cdktf.listMapper(databaseCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform, true)(struct.months), }; } exports.databaseCloudExadataInfrastructureMaintenanceWindowToTerraform = databaseCloudExadataInfrastructureMaintenanceWindowToTerraform; function databaseCloudExadataInfrastructureMaintenanceWindowToHclTerraform(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(databaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform, true)(struct.daysOfWeek), isBlock: true, type: "list", storageClassType: "DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList", }, months: { value: cdktf.listMapperHcl(databaseCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform, true)(struct.months), isBlock: true, type: "list", storageClassType: "DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseCloudExadataInfrastructureMaintenanceWindowToHclTerraform = databaseCloudExadataInfrastructureMaintenanceWindowToHclTerraform; class DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference 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 DatabaseCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList(this, "days_of_week", false); // months - computed: false, optional: true, required: false this._months = new DatabaseCloudExadataInfrastructureMaintenanceWindowMonthsList(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.DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference = DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference", version: "1.0.0" }; function databaseCloudExadataInfrastructureTimeoutsToTerraform(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.databaseCloudExadataInfrastructureTimeoutsToTerraform = databaseCloudExadataInfrastructureTimeoutsToTerraform; function databaseCloudExadataInfrastructureTimeoutsToHclTerraform(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.databaseCloudExadataInfrastructureTimeoutsToHclTerraform = databaseCloudExadataInfrastructureTimeoutsToHclTerraform; class DatabaseCloudExadataInfrastructureTimeoutsOutputReference 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.DatabaseCloudExadataInfrastructureTimeoutsOutputReference = DatabaseCloudExadataInfrastructureTimeoutsOutputReference; _k = JSII_RTTI_SYMBOL_1; DatabaseCloudExadataInfrastructureTimeoutsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseCloudExadataInfrastructure.DatabaseCloudExadataInfrastructureTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_exadata_infrastructure oci_database_cloud_exadata_infrastructure} */ class DatabaseCloudExadataInfrastructure extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseCloudExadataInfrastructure 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 DatabaseCloudExadataInfrastructure to import * @param importFromId The id of the existing DatabaseCloudExadataInfrastructure that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_exadata_infrastructure#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseCloudExadataInfrastructure to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_cloud_exadata_infrastructure", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_cloud_exadata_infrastructure oci_database_cloud_exadata_infrastructure} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DatabaseCloudExadataInfrastructureConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_cloud_exadata_infrastructure', terraformGeneratorMetadata: { providerName: 'oci', providerVersion: '6.18.0', providerVersionConstraint: '~> 6.18.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // defined_file_system_configurations - computed: true, optional: false, required: false this._definedFileSystemConfigurations = new DatabaseCloudExadataInfrastructureDefinedFileSystemConfigurationsList(this, "defined_file_system_configurations", false); // system_tags - computed: true, optional: false, required: false this._systemTags = new cdktf.StringMap(this, "system_tags"); // customer_contacts - computed: false, optional: true, required: false this._customerContacts = new DatabaseCloudExadataInfrastructureCustomerContactsList(this, "customer_contacts", false); // maintenance_window - computed: false, optional: true, required: false this._maintenanceWindow = new DatabaseCloudExadataInfrastructureMaintenanceWindowOutputReference(this, "maintenance_window"); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseCloudExadataInfrastructureTimeoutsOutputReference(this, "timeouts"); this._availabilityDomain = config.availabilityDomain; this._clusterPlacementGroupId = config.clusterPlacementGroupId; this._compartmentId = config.compartmentId; this._computeCount = config.computeCount; this._definedTags = config.definedTags; this._displayName = config.displayName; this._freeformTags = config.freeformTags; this._id = config.id; this._shape = config.shape; this._storageCount = config.storageCount; this._subscriptionId = config.subscriptionId; this._customerContacts.internalValue = config.customerContacts; 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'); } // additional_storage_count - computed: true, optional: false, required: false get additionalStorageCount() { return this.getNumberAttribute('additional_storage_count'); } get availabilityDomain() { return this.getStringAttribute('availability_domain'); } set availabilityDomain(value) { this._availabilityDomain = value; } // Temporarily expose input value. Use with caution. get availabilityDomainInput() { return this._availabilityDomain; } // available_storage_size_in_gbs - computed: true, optional: false, required: false get availableStorageSizeInGbs() { return this.getNumberAttribute('available_storage_size_in_gbs'); } get clusterPlacementGroupId() { return this.getStringAttribute('cluster_placement_group_id'); } set clusterPlacementGroupId(value) { this._clusterPlacementGroupId = value; } resetClusterPlacementGroupId() { this._clusterPlacementGroupId = undefined; } // Temporarily expose input value. Use with caution. get clusterPlacementGroupIdInput() { return this._clusterPlacementGroupId; } 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; } // cpu_count - computed: true, optional: false, required: false get cpuCount() { return this.getNumberAttribute('cpu_count'); } // 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'); } // db_server_version - computed: true, optional: false, required: false get dbServerVersion() { return this.getStringAttribute('db_server_version'); } get definedFileSystemConfigurations() { return this._definedFileSystemConfigurations; } 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 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 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; } // last_maintenance_run_id - computed: true, optional: false, required: false get lastMaintenanceRunId() { return this.getStringAttribute('last_maintenance_run_id'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // max_cpu_count - computed: true, optional: false, required: false get maxCpuCount() { return this.getNumberAttribute('max_cpu_count'); } // max_data_storage_in_tbs - comput