rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,186 lines (1,185 loc) • 197 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseExadbVmCluster = exports.DatabaseExadbVmClusterTimeoutsOutputReference = exports.databaseExadbVmClusterTimeoutsToHclTerraform = exports.databaseExadbVmClusterTimeoutsToTerraform = exports.DatabaseExadbVmClusterNodeResourceList = exports.DatabaseExadbVmClusterNodeResourceOutputReference = exports.databaseExadbVmClusterNodeResourceToHclTerraform = exports.databaseExadbVmClusterNodeResourceToTerraform = exports.DatabaseExadbVmClusterNodeConfigOutputReference = exports.databaseExadbVmClusterNodeConfigToHclTerraform = exports.databaseExadbVmClusterNodeConfigToTerraform = exports.DatabaseExadbVmClusterDataCollectionOptionsOutputReference = exports.databaseExadbVmClusterDataCollectionOptionsToHclTerraform = exports.databaseExadbVmClusterDataCollectionOptionsToTerraform = exports.DatabaseExadbVmClusterIormConfigCacheList = exports.DatabaseExadbVmClusterIormConfigCacheOutputReference = exports.databaseExadbVmClusterIormConfigCacheToHclTerraform = exports.databaseExadbVmClusterIormConfigCacheToTerraform = exports.DatabaseExadbVmClusterIormConfigCacheDbPlansList = exports.DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference = exports.databaseExadbVmClusterIormConfigCacheDbPlansToHclTerraform = exports.databaseExadbVmClusterIormConfigCacheDbPlansToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databaseExadbVmClusterIormConfigCacheDbPlansToTerraform(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.databaseExadbVmClusterIormConfigCacheDbPlansToTerraform = databaseExadbVmClusterIormConfigCacheDbPlansToTerraform;
function databaseExadbVmClusterIormConfigCacheDbPlansToHclTerraform(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.databaseExadbVmClusterIormConfigCacheDbPlansToHclTerraform = databaseExadbVmClusterIormConfigCacheDbPlansToHclTerraform;
class DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// db_name - computed: true, optional: false, required: false
get dbName() {
return this.getStringAttribute('db_name');
}
// flash_cache_limit - computed: true, optional: false, required: false
get flashCacheLimit() {
return this.getStringAttribute('flash_cache_limit');
}
// share - computed: true, optional: false, required: false
get share() {
return this.getNumberAttribute('share');
}
}
exports.DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference = DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference", version: "1.0.0" };
class DatabaseExadbVmClusterIormConfigCacheDbPlansList 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 DatabaseExadbVmClusterIormConfigCacheDbPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadbVmClusterIormConfigCacheDbPlansList = DatabaseExadbVmClusterIormConfigCacheDbPlansList;
_b = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterIormConfigCacheDbPlansList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterIormConfigCacheDbPlansList", version: "1.0.0" };
function databaseExadbVmClusterIormConfigCacheToTerraform(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.databaseExadbVmClusterIormConfigCacheToTerraform = databaseExadbVmClusterIormConfigCacheToTerraform;
function databaseExadbVmClusterIormConfigCacheToHclTerraform(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.databaseExadbVmClusterIormConfigCacheToHclTerraform = databaseExadbVmClusterIormConfigCacheToHclTerraform;
class DatabaseExadbVmClusterIormConfigCacheOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// db_plans - computed: true, optional: false, required: false
this._dbPlans = new DatabaseExadbVmClusterIormConfigCacheDbPlansList(this, "db_plans", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get dbPlans() {
return this._dbPlans;
}
// lifecycle_details - computed: true, optional: false, required: false
get lifecycleDetails() {
return this.getStringAttribute('lifecycle_details');
}
// objective - computed: true, optional: false, required: false
get objective() {
return this.getStringAttribute('objective');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.DatabaseExadbVmClusterIormConfigCacheOutputReference = DatabaseExadbVmClusterIormConfigCacheOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterIormConfigCacheOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterIormConfigCacheOutputReference", version: "1.0.0" };
class DatabaseExadbVmClusterIormConfigCacheList 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 DatabaseExadbVmClusterIormConfigCacheOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadbVmClusterIormConfigCacheList = DatabaseExadbVmClusterIormConfigCacheList;
_d = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterIormConfigCacheList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterIormConfigCacheList", version: "1.0.0" };
function databaseExadbVmClusterDataCollectionOptionsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
is_diagnostics_events_enabled: cdktf.booleanToTerraform(struct.isDiagnosticsEventsEnabled),
is_health_monitoring_enabled: cdktf.booleanToTerraform(struct.isHealthMonitoringEnabled),
is_incident_logs_enabled: cdktf.booleanToTerraform(struct.isIncidentLogsEnabled),
};
}
exports.databaseExadbVmClusterDataCollectionOptionsToTerraform = databaseExadbVmClusterDataCollectionOptionsToTerraform;
function databaseExadbVmClusterDataCollectionOptionsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
is_diagnostics_events_enabled: {
value: cdktf.booleanToHclTerraform(struct.isDiagnosticsEventsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_health_monitoring_enabled: {
value: cdktf.booleanToHclTerraform(struct.isHealthMonitoringEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_incident_logs_enabled: {
value: cdktf.booleanToHclTerraform(struct.isIncidentLogsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadbVmClusterDataCollectionOptionsToHclTerraform = databaseExadbVmClusterDataCollectionOptionsToHclTerraform;
class DatabaseExadbVmClusterDataCollectionOptionsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._isDiagnosticsEventsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isDiagnosticsEventsEnabled = this._isDiagnosticsEventsEnabled;
}
if (this._isHealthMonitoringEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isHealthMonitoringEnabled = this._isHealthMonitoringEnabled;
}
if (this._isIncidentLogsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isIncidentLogsEnabled = this._isIncidentLogsEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._isDiagnosticsEventsEnabled = undefined;
this._isHealthMonitoringEnabled = undefined;
this._isIncidentLogsEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._isDiagnosticsEventsEnabled = value.isDiagnosticsEventsEnabled;
this._isHealthMonitoringEnabled = value.isHealthMonitoringEnabled;
this._isIncidentLogsEnabled = value.isIncidentLogsEnabled;
}
}
get isDiagnosticsEventsEnabled() {
return this.getBooleanAttribute('is_diagnostics_events_enabled');
}
set isDiagnosticsEventsEnabled(value) {
this._isDiagnosticsEventsEnabled = value;
}
resetIsDiagnosticsEventsEnabled() {
this._isDiagnosticsEventsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isDiagnosticsEventsEnabledInput() {
return this._isDiagnosticsEventsEnabled;
}
get isHealthMonitoringEnabled() {
return this.getBooleanAttribute('is_health_monitoring_enabled');
}
set isHealthMonitoringEnabled(value) {
this._isHealthMonitoringEnabled = value;
}
resetIsHealthMonitoringEnabled() {
this._isHealthMonitoringEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isHealthMonitoringEnabledInput() {
return this._isHealthMonitoringEnabled;
}
get isIncidentLogsEnabled() {
return this.getBooleanAttribute('is_incident_logs_enabled');
}
set isIncidentLogsEnabled(value) {
this._isIncidentLogsEnabled = value;
}
resetIsIncidentLogsEnabled() {
this._isIncidentLogsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isIncidentLogsEnabledInput() {
return this._isIncidentLogsEnabled;
}
}
exports.DatabaseExadbVmClusterDataCollectionOptionsOutputReference = DatabaseExadbVmClusterDataCollectionOptionsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterDataCollectionOptionsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterDataCollectionOptionsOutputReference", version: "1.0.0" };
function databaseExadbVmClusterNodeConfigToTerraform(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 {
enabled_ecpu_count_per_node: cdktf.numberToTerraform(struct.enabledEcpuCountPerNode),
total_ecpu_count_per_node: cdktf.numberToTerraform(struct.totalEcpuCountPerNode),
vm_file_system_storage_size_gbs_per_node: cdktf.numberToTerraform(struct.vmFileSystemStorageSizeGbsPerNode),
};
}
exports.databaseExadbVmClusterNodeConfigToTerraform = databaseExadbVmClusterNodeConfigToTerraform;
function databaseExadbVmClusterNodeConfigToHclTerraform(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 = {
enabled_ecpu_count_per_node: {
value: cdktf.numberToHclTerraform(struct.enabledEcpuCountPerNode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
total_ecpu_count_per_node: {
value: cdktf.numberToHclTerraform(struct.totalEcpuCountPerNode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
vm_file_system_storage_size_gbs_per_node: {
value: cdktf.numberToHclTerraform(struct.vmFileSystemStorageSizeGbsPerNode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadbVmClusterNodeConfigToHclTerraform = databaseExadbVmClusterNodeConfigToHclTerraform;
class DatabaseExadbVmClusterNodeConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._enabledEcpuCountPerNode !== undefined) {
hasAnyValues = true;
internalValueResult.enabledEcpuCountPerNode = this._enabledEcpuCountPerNode;
}
if (this._totalEcpuCountPerNode !== undefined) {
hasAnyValues = true;
internalValueResult.totalEcpuCountPerNode = this._totalEcpuCountPerNode;
}
if (this._vmFileSystemStorageSizeGbsPerNode !== undefined) {
hasAnyValues = true;
internalValueResult.vmFileSystemStorageSizeGbsPerNode = this._vmFileSystemStorageSizeGbsPerNode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabledEcpuCountPerNode = undefined;
this._totalEcpuCountPerNode = undefined;
this._vmFileSystemStorageSizeGbsPerNode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabledEcpuCountPerNode = value.enabledEcpuCountPerNode;
this._totalEcpuCountPerNode = value.totalEcpuCountPerNode;
this._vmFileSystemStorageSizeGbsPerNode = value.vmFileSystemStorageSizeGbsPerNode;
}
}
get enabledEcpuCountPerNode() {
return this.getNumberAttribute('enabled_ecpu_count_per_node');
}
set enabledEcpuCountPerNode(value) {
this._enabledEcpuCountPerNode = value;
}
// Temporarily expose input value. Use with caution.
get enabledEcpuCountPerNodeInput() {
return this._enabledEcpuCountPerNode;
}
// memory_size_in_gbs_per_node - computed: true, optional: false, required: false
get memorySizeInGbsPerNode() {
return this.getNumberAttribute('memory_size_in_gbs_per_node');
}
// snapshot_file_system_storage_size_gbs_per_node - computed: true, optional: false, required: false
get snapshotFileSystemStorageSizeGbsPerNode() {
return this.getNumberAttribute('snapshot_file_system_storage_size_gbs_per_node');
}
get totalEcpuCountPerNode() {
return this.getNumberAttribute('total_ecpu_count_per_node');
}
set totalEcpuCountPerNode(value) {
this._totalEcpuCountPerNode = value;
}
// Temporarily expose input value. Use with caution.
get totalEcpuCountPerNodeInput() {
return this._totalEcpuCountPerNode;
}
// total_file_system_storage_size_gbs_per_node - computed: true, optional: false, required: false
get totalFileSystemStorageSizeGbsPerNode() {
return this.getNumberAttribute('total_file_system_storage_size_gbs_per_node');
}
get vmFileSystemStorageSizeGbsPerNode() {
return this.getNumberAttribute('vm_file_system_storage_size_gbs_per_node');
}
set vmFileSystemStorageSizeGbsPerNode(value) {
this._vmFileSystemStorageSizeGbsPerNode = value;
}
// Temporarily expose input value. Use with caution.
get vmFileSystemStorageSizeGbsPerNodeInput() {
return this._vmFileSystemStorageSizeGbsPerNode;
}
}
exports.DatabaseExadbVmClusterNodeConfigOutputReference = DatabaseExadbVmClusterNodeConfigOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterNodeConfigOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterNodeConfigOutputReference", version: "1.0.0" };
function databaseExadbVmClusterNodeResourceToTerraform(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 {
node_name: cdktf.stringToTerraform(struct.nodeName),
};
}
exports.databaseExadbVmClusterNodeResourceToTerraform = databaseExadbVmClusterNodeResourceToTerraform;
function databaseExadbVmClusterNodeResourceToHclTerraform(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 = {
node_name: {
value: cdktf.stringToHclTerraform(struct.nodeName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseExadbVmClusterNodeResourceToHclTerraform = databaseExadbVmClusterNodeResourceToHclTerraform;
class DatabaseExadbVmClusterNodeResourceOutputReference 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._nodeName !== undefined) {
hasAnyValues = true;
internalValueResult.nodeName = this._nodeName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._nodeName = 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._nodeName = value.nodeName;
}
}
// node_hostname - computed: true, optional: false, required: false
get nodeHostname() {
return this.getStringAttribute('node_hostname');
}
// node_id - computed: true, optional: false, required: false
get nodeId() {
return this.getStringAttribute('node_id');
}
get nodeName() {
return this.getStringAttribute('node_name');
}
set nodeName(value) {
this._nodeName = value;
}
// Temporarily expose input value. Use with caution.
get nodeNameInput() {
return this._nodeName;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.DatabaseExadbVmClusterNodeResourceOutputReference = DatabaseExadbVmClusterNodeResourceOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterNodeResourceOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterNodeResourceOutputReference", version: "1.0.0" };
class DatabaseExadbVmClusterNodeResourceList 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 DatabaseExadbVmClusterNodeResourceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseExadbVmClusterNodeResourceList = DatabaseExadbVmClusterNodeResourceList;
_h = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterNodeResourceList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterNodeResourceList", version: "1.0.0" };
function databaseExadbVmClusterTimeoutsToTerraform(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.databaseExadbVmClusterTimeoutsToTerraform = databaseExadbVmClusterTimeoutsToTerraform;
function databaseExadbVmClusterTimeoutsToHclTerraform(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.databaseExadbVmClusterTimeoutsToHclTerraform = databaseExadbVmClusterTimeoutsToHclTerraform;
class DatabaseExadbVmClusterTimeoutsOutputReference 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.DatabaseExadbVmClusterTimeoutsOutputReference = DatabaseExadbVmClusterTimeoutsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DatabaseExadbVmClusterTimeoutsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseExadbVmCluster.DatabaseExadbVmClusterTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadb_vm_cluster oci_database_exadb_vm_cluster}
*/
class DatabaseExadbVmCluster extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DatabaseExadbVmCluster 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 DatabaseExadbVmCluster to import
* @param importFromId The id of the existing DatabaseExadbVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadb_vm_cluster#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DatabaseExadbVmCluster to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_exadb_vm_cluster", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_exadb_vm_cluster oci_database_exadb_vm_cluster} 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 DatabaseExadbVmClusterConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_database_exadb_vm_cluster',
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
});
// iorm_config_cache - computed: true, optional: false, required: false
this._iormConfigCache = new DatabaseExadbVmClusterIormConfigCacheList(this, "iorm_config_cache", false);
// system_tags - computed: true, optional: false, required: false
this._systemTags = new cdktf.StringMap(this, "system_tags");
// data_collection_options - computed: false, optional: true, required: false
this._dataCollectionOptions = new DatabaseExadbVmClusterDataCollectionOptionsOutputReference(this, "data_collection_options");
// node_config - computed: false, optional: false, required: true
this._nodeConfig = new DatabaseExadbVmClusterNodeConfigOutputReference(this, "node_config");
// node_resource - computed: false, optional: true, required: false
this._nodeResource = new DatabaseExadbVmClusterNodeResourceList(this, "node_resource", true);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new DatabaseExadbVmClusterTimeoutsOutputReference(this, "timeouts");
this._availabilityDomain = config.availabilityDomain;
this._backupNetworkNsgIds = config.backupNetworkNsgIds;
this._backupSubnetId = config.backupSubnetId;
this._clusterName = config.clusterName;
this._compartmentId = config.compartmentId;
this._definedTags = config.definedTags;
this._displayName = config.displayName;
this._domain = config.domain;
this._exascaleDbStorageVaultId = config.exascaleDbStorageVaultId;
this._freeformTags = config.freeformTags;
this._gridImageId = config.gridImageId;
this._hostname = config.hostname;
this._id = config.id;
this._licenseModel = config.licenseModel;
this._nsgIds = config.nsgIds;
this._privateZoneId = config.privateZoneId;
this._scanListenerPortTcp = config.scanListenerPortTcp;
this._scanListenerPortTcpSsl = config.scanListenerPortTcpSsl;
this._securityAttributes = config.securityAttributes;
this._shape = config.shape;
this._sshPublicKeys = config.sshPublicKeys;
this._subnetId = config.subnetId;
this._systemVersion = config.systemVersion;
this._timeZone = config.timeZone;
this._dataCollectionOptions.internalValue = config.dataCollectionOptions;
this._nodeConfig.internalValue = config.nodeConfig;
this._nodeResource.internalValue = config.nodeResource;
this._timeouts.internalValue = config.timeouts;
}
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;
}
get backupNetworkNsgIds() {
return cdktf.Fn.tolist(this.getListAttribute('backup_network_nsg_ids'));
}
set backupNetworkNsgIds(value) {
this._backupNetworkNsgIds = value;
}
resetBackupNetworkNsgIds() {
this._backupNetworkNsgIds = undefined;
}
// Temporarily expose input value. Use with caution.
get backupNetworkNsgIdsInput() {
return this._backupNetworkNsgIds;
}
get backupSubnetId() {
return this.getStringAttribute('backup_subnet_id');
}
set backupSubnetId(value) {
this._backupSubnetId = value;
}
// Temporarily expose input value. Use with caution.
get backupSubnetIdInput() {
return this._backupSubnetId;
}
get clusterName() {
return this.getStringAttribute('cluster_name');
}
set clusterName(value) {
this._clusterName = value;
}
resetClusterName() {
this._clusterName = undefined;
}
// Temporarily expose input value. Use with caution.
get clusterNameInput() {
return this._clusterName;
}
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 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 domain() {
return this.getStringAttribute('domain');
}
set domain(value) {
this._domain = value;
}
resetDomain() {
this._domain = undefined;
}
// Temporarily expose input value. Use with caution.
get domainInput() {
return this._domain;
}
get exascaleDbStorageVaultId() {
return this.getStringAttribute('exascale_db_storage_vault_id');
}
set exascaleDbStorageVaultId(value) {
this._exascaleDbStorageVaultId = value;
}
// Temporarily expose input value. Use with caution.
get exascaleDbStorageVaultIdInput() {
return this._exascaleDbStorageVaultId;
}
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;
}
// gi_version - computed: true, optional: false, required: false
get giVersion() {
return this.getStringAttribute('gi_version');
}
get gridImageId() {
return this.getStringAttribute('grid_image_id');
}
set gridImageId(value) {
this._gridImageId = value;
}
// Temporarily expose input value. Use with caution.
get gridImageIdInput() {
return this._gridImageId;
}
// grid_image_type - computed: true, optional: false, required: false
get gridImageType() {
return this.getStringAttribute('grid_image_type');
}
get hostname() {
return this.getStringAttribute('hostname');
}
set hostname(value) {
this._hostname = value;
}
// Temporarily expose input value. Use with caution.
get hostnameInput() {
return this._hostname;
}
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 iormConfigCache() {
return this._iormConfigCache;
}
// last_update_history_entry_id - computed: true, optional: false, required: false
get lastUpdateHistoryEntryId() {
return this.getStringAttribute('last_update_history_entry_id');
}
get licenseModel() {
return this.getStringAttribute('license_model');
}
set licenseModel(value) {
this._licenseModel = value;
}
resetLicenseModel() {
this._licenseModel = undefined;
}
// Temporarily expose input value. Use with caution.
get licenseModelInput() {
return this._licenseModel;
}
// lifecycle_details - computed: true, optional: false, required: false
get lifecycleDetails() {
return this.getStringAttribute('lifecycle_details');
}
// listener_port - computed: true, optional: false, required: false
get listenerPort() {
return this.getStringAttribute('listener_port');
}
get nsgIds() {
return cdktf.Fn.tolist(this.getListAttribute('nsg_ids'));
}
set nsgIds(value) {
this._nsgIds = value;
}
resetNsgIds() {
this._nsgIds = undefined;
}
// Temporarily expose input value. Use with caution.
get nsgIdsInput() {
return this._nsgIds;
}
get privateZoneId() {
return this.getStringAttribute('private_zone_id');
}
set privateZoneId(value) {
this._privateZoneId = value;
}
resetPrivateZoneId() {
this._privateZoneId = undefined;
}
// Temporarily expose input value. Use with caution.
get privateZoneIdInput() {
return this._privateZoneId;
}
// scan_dns_name - computed: true, optional: false, required: false
get scanDnsName() {
return this.getStringAttribute('scan_dns_name');
}
// scan_dns_record_id - computed: true, optional: false, required: false
get scanDnsRecordId() {
return this.getStringAttribute('scan_dns_record_id');
}
// scan_ip_ids - computed: true, optional: false, required: false
get scanIpIds() {
return this.getListAttribute('scan_ip_ids');
}
get scanListenerPortTcp() {
return this.getNumberAttribute('scan_listener_port_tcp');
}
set scanListenerPortTcp(value) {
this._scanListenerPortTcp = value;
}
resetScanListenerPortTcp() {
this._scanListenerPortTcp = undefined;
}
// Temporarily expose input value. Use with caution.
get scanListenerPortTcpInput() {
return this._scanListenerPortTcp;
}
get scanListenerPortTcpSsl() {
return this.getNumberAttribute('scan_listener_port_tcp_ssl');
}
set scanListenerPortTcpSsl(value) {
this._scanListenerPortTcpSsl = value;
}
resetScanListenerPortTcpSsl() {
this._scanListenerPortTcpSsl = undefined;
}
// Temporarily expose input value. Use with caution.
get scanListenerPortTcpSslInput() {
return this._scanListenerPortTcpSsl;
}
get securityAttributes() {
return this.getStringMapAttribute('security_attributes');
}
set securityAttributes(value) {
this._securityAttributes = value;
}
resetSecurityAttributes() {
this._securityAttributes = undefined;
}
// Temporarily expose input value. Use with caution.
get securityAttributesInput() {
return this._securityAttributes;
}
get shape() {
return this.getStringAttribute('shape');
}
set shape(value) {
this._shape = value;
}
// Temporarily expose input value. Use with caution.
get shapeInput() {
return this._shape;
}
get sshPublicKeys() {
return this.getListAttribute('ssh_public_keys');
}
set sshPublicKeys(value) {
this._sshPublicKeys = value;
}
// Temporarily expose input value. Use with caution.
get sshPublicKeysInput() {
return this._sshPublicKeys;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
get subnetId() {
return this.getStringAttribute('subnet_id');
}
set subnetId(value) {
this._subnetId = value;
}
// Temporarily expose input value. Use with caution.
get subnetIdInput() {
return this._subnetId;
}
get systemTags() {
return this._systemTags;
}
get systemVersion() {
return this.getStringAttribute('system_version');
}
set systemVersion(value) {
this._systemVersion = value;
}
resetSystemVersion() {
this._systemVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get systemVersionInput() {
return this._systemVersion;
}
// 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;
}
resetTimeZone() {
this._timeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get timeZoneInput() {
return this._timeZone;
}
// vip_ids - computed: true, optional: false, required: false
get vipIds() {
return this.getListAttribute('vip_ids');
}
// zone_id - computed: true, optional: false, required: false
get zoneId() {
return this.getStringAttribute('zone_id');
}
get dataCollectionOptions() {
return this._dataCollectionOptions;
}
putDataCollectionOptions(value) {
this._dataCollectionOptions.internalValue = value;
}
resetDataCollectionOptions() {
this._dataCollectionOptions.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get dataCollectionOptionsInput() {
return this._dataCollectionOptions.internalValue;
}
get nodeConfig() {
return this._nodeConfig;
}
putNodeConfig(value) {
this._nodeConfig.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get nodeConfigInput() {
return this._nodeConfig.internalValue;
}
get nodeResource() {
return this._nodeResource;
}
putNodeResource(value) {
this._nodeResource.internalValue = value;
}
resetNodeResource() {
this._nodeResource.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get nodeResourceInput() {
return this._nodeResource.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 {
availability_domain: cdktf.stringToTerraform(this._availabilityDomain),
backup_network_nsg_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._backupNetworkNsgIds),
backup_subnet_id: cdktf.stringToTerraform(this._backupSubnetId),
cluster_name: cdktf.stringToTerraform(this._clusterName),
compartment_id: cdktf.stringToTerraform(this._compartmentId),
defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._definedTags),
display_name: cdktf.stringToTerraform(this._displayName),
domain: cdktf.stringToTerraform(this._domain),
exascale_db_storage_vault_id: cdktf.stringToTerraform(this._exascaleDbStorageVaultId),
freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._freeformTags),
grid_image_id: cdktf.stringToTerraform(this._gridImageId),
hostname: cdktf.stringToTerraform(this._hostname),
id: cdktf.stringToTerraform(this._id),
license_model: cdktf.stringToTerraform(this._licenseModel),
nsg_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._nsgIds),
private_zone_id: cdktf.stringToTerraform(this._privateZoneId),
scan_listener_port_tcp: cdktf.numberToTerraform(this._scanListenerPortTcp),
scan_listener_port_tcp_ssl: cdktf.numberToTerraform(this._scanListenerPortTcpSsl),
security_attributes: cdktf.hashMapper(cdktf.stringToTerraform)(this._securityAttributes),
shape: cdktf.stringToTerraform(this._shape),