UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

926 lines 137 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseVmClusterAddVirtualMachine = exports.DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference = exports.databaseVmClusterAddVirtualMachineTimeoutsToHclTerraform = exports.databaseVmClusterAddVirtualMachineTimeoutsToTerraform = exports.DatabaseVmClusterAddVirtualMachineDbServersList = exports.DatabaseVmClusterAddVirtualMachineDbServersOutputReference = exports.databaseVmClusterAddVirtualMachineDbServersToHclTerraform = exports.databaseVmClusterAddVirtualMachineDbServersToTerraform = exports.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList = exports.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference = exports.databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToHclTerraform = exports.databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToTerraform = exports.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList = exports.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference = exports.databaseVmClusterAddVirtualMachineDataCollectionOptionsToHclTerraform = exports.databaseVmClusterAddVirtualMachineDataCollectionOptionsToTerraform = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToHclTerraform = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToTerraform = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToHclTerraform = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToTerraform = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList = exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform = exports.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToTerraform; function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceToHclTerraform; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference 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; } } // apply_update_preferred_end_time - computed: true, optional: false, required: false get applyUpdatePreferredEndTime() { return this.getStringAttribute('apply_update_preferred_end_time'); } // apply_update_preferred_start_time - computed: true, optional: false, required: false get applyUpdatePreferredStartTime() { return this.getStringAttribute('apply_update_preferred_start_time'); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList 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 DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList; _b = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToTerraform; function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToHclTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToHclTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodToHclTerraform; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference 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; } } // freeze_period_end_time - computed: true, optional: false, required: false get freezePeriodEndTime() { return this.getStringAttribute('freeze_period_end_time'); } // freeze_period_start_time - computed: true, optional: false, required: false get freezePeriodStartTime() { return this.getStringAttribute('freeze_period_start_time'); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList 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 DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList; _d = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToTerraform; function databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToHclTerraform(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.databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToHclTerraform = databaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsToHclTerraform; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference 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; // apply_update_time_preference - computed: true, optional: false, required: false this._applyUpdateTimePreference = new DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsApplyUpdateTimePreferenceList(this, "apply_update_time_preference", false); // freeze_period - computed: true, optional: false, required: false this._freezePeriod = new DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsFreezePeriodList(this, "freeze_period", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get applyUpdateTimePreference() { return this._applyUpdateTimePreference; } get freezePeriod() { return this._freezePeriod; } // is_early_adoption_enabled - computed: true, optional: false, required: false get isEarlyAdoptionEnabled() { return this.getBooleanAttribute('is_early_adoption_enabled'); } // is_freeze_period_enabled - computed: true, optional: false, required: false get isFreezePeriodEnabled() { return this.getBooleanAttribute('is_freeze_period_enabled'); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList 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 DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList = DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList; _f = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineDataCollectionOptionsToTerraform(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.databaseVmClusterAddVirtualMachineDataCollectionOptionsToTerraform = databaseVmClusterAddVirtualMachineDataCollectionOptionsToTerraform; function databaseVmClusterAddVirtualMachineDataCollectionOptionsToHclTerraform(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.databaseVmClusterAddVirtualMachineDataCollectionOptionsToHclTerraform = databaseVmClusterAddVirtualMachineDataCollectionOptionsToHclTerraform; class DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference 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_diagnostics_events_enabled - computed: true, optional: false, required: false get isDiagnosticsEventsEnabled() { return this.getBooleanAttribute('is_diagnostics_events_enabled'); } // is_health_monitoring_enabled - computed: true, optional: false, required: false get isHealthMonitoringEnabled() { return this.getBooleanAttribute('is_health_monitoring_enabled'); } // is_incident_logs_enabled - computed: true, optional: false, required: false get isIncidentLogsEnabled() { return this.getBooleanAttribute('is_incident_logs_enabled'); } } exports.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference = DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference; _g = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList 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 DatabaseVmClusterAddVirtualMachineDataCollectionOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList = DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList; _h = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToTerraform(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.databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToTerraform = databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToTerraform; function databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToHclTerraform(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.databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToHclTerraform = databaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsToHclTerraform; class DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference 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; } } // file_system_size_gb - computed: true, optional: false, required: false get fileSystemSizeGb() { return this.getNumberAttribute('file_system_size_gb'); } // mount_point - computed: true, optional: false, required: false get mountPoint() { return this.getStringAttribute('mount_point'); } } exports.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference = DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList 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 DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList = DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList; _k = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineDbServersToTerraform(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 { db_server_id: cdktf.stringToTerraform(struct.dbServerId), }; } exports.databaseVmClusterAddVirtualMachineDbServersToTerraform = databaseVmClusterAddVirtualMachineDbServersToTerraform; function databaseVmClusterAddVirtualMachineDbServersToHclTerraform(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 = { db_server_id: { value: cdktf.stringToHclTerraform(struct.dbServerId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseVmClusterAddVirtualMachineDbServersToHclTerraform = databaseVmClusterAddVirtualMachineDbServersToHclTerraform; class DatabaseVmClusterAddVirtualMachineDbServersOutputReference 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._dbServerId !== undefined) { hasAnyValues = true; internalValueResult.dbServerId = this._dbServerId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._dbServerId = 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._dbServerId = value.dbServerId; } } get dbServerId() { return this.getStringAttribute('db_server_id'); } set dbServerId(value) { this._dbServerId = value; } // Temporarily expose input value. Use with caution. get dbServerIdInput() { return this._dbServerId; } } exports.DatabaseVmClusterAddVirtualMachineDbServersOutputReference = DatabaseVmClusterAddVirtualMachineDbServersOutputReference; _l = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineDbServersOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineDbServersOutputReference", version: "1.0.0" }; class DatabaseVmClusterAddVirtualMachineDbServersList 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 DatabaseVmClusterAddVirtualMachineDbServersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterAddVirtualMachineDbServersList = DatabaseVmClusterAddVirtualMachineDbServersList; _m = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineDbServersList[_m] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineDbServersList", version: "1.0.0" }; function databaseVmClusterAddVirtualMachineTimeoutsToTerraform(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.databaseVmClusterAddVirtualMachineTimeoutsToTerraform = databaseVmClusterAddVirtualMachineTimeoutsToTerraform; function databaseVmClusterAddVirtualMachineTimeoutsToHclTerraform(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.databaseVmClusterAddVirtualMachineTimeoutsToHclTerraform = databaseVmClusterAddVirtualMachineTimeoutsToHclTerraform; class DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference 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.DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference = DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_add_virtual_machine oci_database_vm_cluster_add_virtual_machine} */ class DatabaseVmClusterAddVirtualMachine extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseVmClusterAddVirtualMachine 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 DatabaseVmClusterAddVirtualMachine to import * @param importFromId The id of the existing DatabaseVmClusterAddVirtualMachine that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_add_virtual_machine#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseVmClusterAddVirtualMachine to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_vm_cluster_add_virtual_machine", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_add_virtual_machine oci_database_vm_cluster_add_virtual_machine} 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 DatabaseVmClusterAddVirtualMachineConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_vm_cluster_add_virtual_machine', 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 }); // cloud_automation_update_details - computed: true, optional: false, required: false this._cloudAutomationUpdateDetails = new DatabaseVmClusterAddVirtualMachineCloudAutomationUpdateDetailsList(this, "cloud_automation_update_details", false); // data_collection_options - computed: true, optional: false, required: false this._dataCollectionOptions = new DatabaseVmClusterAddVirtualMachineDataCollectionOptionsList(this, "data_collection_options", false); // defined_tags - computed: true, optional: false, required: false this._definedTags = new cdktf.StringMap(this, "defined_tags"); // file_system_configuration_details - computed: true, optional: false, required: false this._fileSystemConfigurationDetails = new DatabaseVmClusterAddVirtualMachineFileSystemConfigurationDetailsList(this, "file_system_configuration_details", false); // freeform_tags - computed: true, optional: false, required: false this._freeformTags = new cdktf.StringMap(this, "freeform_tags"); // db_servers - computed: false, optional: false, required: true this._dbServers = new DatabaseVmClusterAddVirtualMachineDbServersList(this, "db_servers", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseVmClusterAddVirtualMachineTimeoutsOutputReference(this, "timeouts"); this._id = config.id; this._vmClusterId = config.vmClusterId; this._dbServers.internalValue = config.dbServers; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // availability_domain - computed: true, optional: false, required: false get availabilityDomain() { return this.getStringAttribute('availability_domain'); } get cloudAutomationUpdateDetails() { return this._cloudAutomationUpdateDetails; } // compartment_id - computed: true, optional: false, required: false get compartmentId() { return this.getStringAttribute('compartment_id'); } // cpus_enabled - computed: true, optional: false, required: false get cpusEnabled() { return this.getNumberAttribute('cpus_enabled'); } get dataCollectionOptions() { return this._dataCollectionOptions; } // data_storage_size_in_gb - computed: true, optional: false, required: false get dataStorageSizeInGb() { return this.getNumberAttribute('data_storage_size_in_gb'); } // 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._definedTags; } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } // exadata_infrastructure_id - computed: true, optional: false, required: false get exadataInfrastructureId() { return this.getStringAttribute('exadata_infrastructure_id'); } get fileSystemConfigurationDetails() { return this._fileSystemConfigurationDetails; } get freeformTags() { return this._freeformTags; } // gi_version - computed: true, optional: false, required: false get giVersion() { return this.getStringAttribute('gi_version'); } 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; } // is_local_backup_enabled - computed: true, optional: false, required: false get isLocalBackupEnabled() { return this.getBooleanAttribute('is_local_backup_enabled'); } // is_sparse_diskgroup_enabled - computed: true, optional: false, required: false get isSparseDiskgroupEnabled() { return this.getBooleanAttribute('is_sparse_diskgroup_enabled'); } // last_patch_history_entry_id - computed: true, optional: false, required: false get lastPatchHistoryEntryId() { return this.getStringAttribute('last_patch_history_entry_id'); } // license_model - computed: true, optional: false, required: false get licenseModel() { return this.getStringAttribute('license_model'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // memory_size_in_gbs - computed: true, optional: false, required: false get memorySizeInGbs() { return this.getNumberAttribute('memory_size_in_gbs'); } // ocpus_enabled - computed: true, optional: false, required: false get ocpusEnabled() { return this.getNumberAttribute('ocpus_enabled'); } // shape - computed: true, optional: false, required: false get shape() { return this.getStringAttribute('shape'); } // ssh_public_keys - computed: true, optional: false, required: false get sshPublicKeys() { return this.getListAttribute('ssh_public_keys'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // system_version - computed: true, optional: false, required: false get systemVersion() { return this.getStringAttribute('system_version'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_zone - computed: true, optional: false, required: false get timeZone() { return this.getStringAttribute('time_zone'); } get vmClusterId() { return this.getStringAttribute('vm_cluster_id'); } set vmClusterId(value) { this._vmClusterId = value; } // Temporarily expose input value. Use with caution. get vmClusterIdInput() { return this._vmClusterId; } // vm_cluster_network_id - computed: true, optional: false, required: false get vmClusterNetworkId() { return this.getStringAttribute('vm_cluster_network_id'); } get dbServers() { return this._dbServers; } putDbServers(value) { this._dbServers.internalValue = value; } // Temporarily expose input value. Use with caution. get dbServersInput() { return this._dbServers.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 { id: cdktf.stringToTerraform(this._id), vm_cluster_id: cdktf.stringToTerraform(this._vmClusterId), db_servers: cdktf.listMapper(databaseVmClusterAddVirtualMachineDbServersToTerraform, true)(this._dbServers.internalValue), timeouts: databaseVmClusterAddVirtualMachineTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, vm_cluster_id: { value: cdktf.stringToHclTerraform(this._vmClusterId), isBlock: false, type: "simple", storageClassType: "string", }, db_servers: { value: cdktf.listMapperHcl(databaseVmClusterAddVirtualMachineDbServersToHclTerraform, true)(this._dbServers.internalValue), isBlock: true, type: "list", storageClassType: "DatabaseVmClusterAddVirtualMachineDbServersList", }, timeouts: { value: databaseVmClusterAddVirtualMachineTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "DatabaseVmClusterAddVirtualMachineTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DatabaseVmClusterAddVirtualMachine = DatabaseVmClusterAddVirtualMachine; _p = JSII_RTTI_SYMBOL_1; DatabaseVmClusterAddVirtualMachine[_p] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterAddVirtualMachine.DatabaseVmClusterAddVirtualMachine", version: "1.0.0" }; // ================= // STATIC PROPERTIES // ================= DatabaseVmClusterAddVirtualMachine.tfResourceType = "oci_database_vm_cluster_add_virtual_machine"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YWJhc2Utdm0tY2x1c3Rlci1hZGQtdmlydHVhbC1tYWNoaW5lL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBSUEsK0JBQStCO0FBZ0MvQixTQUFnQixrR0FBa0csQ0FBQyxNQUFnRztJQUNqTixJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxPQUFPLEVBQ04sQ0FBQTtBQUNILENBQUM7QUFQRCxnTkFPQztBQUdELFNBQWdCLHFHQUFxRyxDQUFDLE1BQWdHO0lBQ3BOLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE1BQU0sS0FBSyxHQUFHLEVBQ2IsQ0FBQztJQUNGLE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQVJELHNOQVFDO0FBRUQsTUFBYSxzR0FBdUcsU0FBUSxLQUFLLENBQUMsYUFBYTtJQUc3STs7Ozs7TUFLRTtJQUNGLFlBQW1CLGlCQUE2QyxFQUFFLGtCQUEwQixFQUFFLGtCQUEwQixFQUFFLHNCQUErQjtRQUN2SixLQUFLLENBQUMsaUJBQWlCLEVBQUUsa0JBQWtCLEVBQUUsc0JBQXNCLEVBQUUsa0JBQWtCLENBQUMsQ0FBQztRQVRuRixrQkFBYSxHQUFHLEtBQUssQ0FBQztJQVU5QixDQUFDO0lBRUQsSUFBVyxhQUFhO1FBQ3RCLElBQUksWUFBWSxHQUFHLElBQUksQ0FBQyxhQUFhLENBQUM7UUFDdEMsTUFBTSxtQkFBbUIsR0FBUSxFQUFFLENBQUM7UUFDcEMsT0FBTyxZQUFZLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7SUFDeEQsQ0FBQztJQUVELElBQVcsYUFBYSxDQUFDLEtBQTBHO1FBQ2pJLElBQUksS0FBSyxLQUFLLFNBQVMsRUFBRSxDQUFDO1lBQ3hCLElBQUksQ0FBQyxhQUFhLEdBQUcsS0FBSyxDQUFDO1FBQzdCLENBQUM7YUFDSSxDQUFDO1lBQ0osSUFBSSxDQUFDLGFBQWEsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUM7UUFDdkQsQ0FBQztJQUNILENBQUM7SUFFRCxxRkFBcUY7