UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,271 lines 183 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseVmClusterNetwork = exports.DatabaseVmClusterNetworkVmNetworksList = exports.DatabaseVmClusterNetworkVmNetworksOutputReference = exports.databaseVmClusterNetworkVmNetworksToHclTerraform = exports.databaseVmClusterNetworkVmNetworksToTerraform = exports.DatabaseVmClusterNetworkVmNetworksNodesList = exports.DatabaseVmClusterNetworkVmNetworksNodesOutputReference = exports.databaseVmClusterNetworkVmNetworksNodesToHclTerraform = exports.databaseVmClusterNetworkVmNetworksNodesToTerraform = exports.DatabaseVmClusterNetworkTimeoutsOutputReference = exports.databaseVmClusterNetworkTimeoutsToHclTerraform = exports.databaseVmClusterNetworkTimeoutsToTerraform = exports.DatabaseVmClusterNetworkScansList = exports.DatabaseVmClusterNetworkScansOutputReference = exports.databaseVmClusterNetworkScansToHclTerraform = exports.databaseVmClusterNetworkScansToTerraform = exports.DatabaseVmClusterNetworkDrScansList = exports.DatabaseVmClusterNetworkDrScansOutputReference = exports.databaseVmClusterNetworkDrScansToHclTerraform = exports.databaseVmClusterNetworkDrScansToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function databaseVmClusterNetworkDrScansToTerraform(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 { hostname: cdktf.stringToTerraform(struct.hostname), ips: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ips), scan_listener_port_tcp: cdktf.numberToTerraform(struct.scanListenerPortTcp), }; } exports.databaseVmClusterNetworkDrScansToTerraform = databaseVmClusterNetworkDrScansToTerraform; function databaseVmClusterNetworkDrScansToHclTerraform(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 = { hostname: { value: cdktf.stringToHclTerraform(struct.hostname), isBlock: false, type: "simple", storageClassType: "string", }, ips: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ips), isBlock: false, type: "list", storageClassType: "stringList", }, scan_listener_port_tcp: { value: cdktf.numberToHclTerraform(struct.scanListenerPortTcp), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseVmClusterNetworkDrScansToHclTerraform = databaseVmClusterNetworkDrScansToHclTerraform; class DatabaseVmClusterNetworkDrScansOutputReference 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._hostname !== undefined) { hasAnyValues = true; internalValueResult.hostname = this._hostname; } if (this._ips !== undefined) { hasAnyValues = true; internalValueResult.ips = this._ips; } if (this._scanListenerPortTcp !== undefined) { hasAnyValues = true; internalValueResult.scanListenerPortTcp = this._scanListenerPortTcp; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._hostname = undefined; this._ips = undefined; this._scanListenerPortTcp = 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._hostname = value.hostname; this._ips = value.ips; this._scanListenerPortTcp = value.scanListenerPortTcp; } } 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 ips() { return this.getListAttribute('ips'); } set ips(value) { this._ips = value; } // Temporarily expose input value. Use with caution. get ipsInput() { return this._ips; } get scanListenerPortTcp() { return this.getNumberAttribute('scan_listener_port_tcp'); } set scanListenerPortTcp(value) { this._scanListenerPortTcp = value; } // Temporarily expose input value. Use with caution. get scanListenerPortTcpInput() { return this._scanListenerPortTcp; } } exports.DatabaseVmClusterNetworkDrScansOutputReference = DatabaseVmClusterNetworkDrScansOutputReference; _a = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkDrScansOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkDrScansOutputReference", version: "1.0.0" }; class DatabaseVmClusterNetworkDrScansList 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 DatabaseVmClusterNetworkDrScansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterNetworkDrScansList = DatabaseVmClusterNetworkDrScansList; _b = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkDrScansList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkDrScansList", version: "1.0.0" }; function databaseVmClusterNetworkScansToTerraform(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 { hostname: cdktf.stringToTerraform(struct.hostname), ips: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ips), port: cdktf.numberToTerraform(struct.port), scan_listener_port_tcp: cdktf.numberToTerraform(struct.scanListenerPortTcp), scan_listener_port_tcp_ssl: cdktf.numberToTerraform(struct.scanListenerPortTcpSsl), }; } exports.databaseVmClusterNetworkScansToTerraform = databaseVmClusterNetworkScansToTerraform; function databaseVmClusterNetworkScansToHclTerraform(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 = { hostname: { value: cdktf.stringToHclTerraform(struct.hostname), isBlock: false, type: "simple", storageClassType: "string", }, ips: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ips), isBlock: false, type: "list", storageClassType: "stringList", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, scan_listener_port_tcp: { value: cdktf.numberToHclTerraform(struct.scanListenerPortTcp), isBlock: false, type: "simple", storageClassType: "number", }, scan_listener_port_tcp_ssl: { value: cdktf.numberToHclTerraform(struct.scanListenerPortTcpSsl), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseVmClusterNetworkScansToHclTerraform = databaseVmClusterNetworkScansToHclTerraform; class DatabaseVmClusterNetworkScansOutputReference 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._hostname !== undefined) { hasAnyValues = true; internalValueResult.hostname = this._hostname; } if (this._ips !== undefined) { hasAnyValues = true; internalValueResult.ips = this._ips; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._scanListenerPortTcp !== undefined) { hasAnyValues = true; internalValueResult.scanListenerPortTcp = this._scanListenerPortTcp; } if (this._scanListenerPortTcpSsl !== undefined) { hasAnyValues = true; internalValueResult.scanListenerPortTcpSsl = this._scanListenerPortTcpSsl; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._hostname = undefined; this._ips = undefined; this._port = undefined; this._scanListenerPortTcp = undefined; this._scanListenerPortTcpSsl = 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._hostname = value.hostname; this._ips = value.ips; this._port = value.port; this._scanListenerPortTcp = value.scanListenerPortTcp; this._scanListenerPortTcpSsl = value.scanListenerPortTcpSsl; } } 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 ips() { return this.getListAttribute('ips'); } set ips(value) { this._ips = value; } // Temporarily expose input value. Use with caution. get ipsInput() { return this._ips; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } 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; } } exports.DatabaseVmClusterNetworkScansOutputReference = DatabaseVmClusterNetworkScansOutputReference; _c = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkScansOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkScansOutputReference", version: "1.0.0" }; class DatabaseVmClusterNetworkScansList 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 DatabaseVmClusterNetworkScansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterNetworkScansList = DatabaseVmClusterNetworkScansList; _d = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkScansList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkScansList", version: "1.0.0" }; function databaseVmClusterNetworkTimeoutsToTerraform(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.databaseVmClusterNetworkTimeoutsToTerraform = databaseVmClusterNetworkTimeoutsToTerraform; function databaseVmClusterNetworkTimeoutsToHclTerraform(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.databaseVmClusterNetworkTimeoutsToHclTerraform = databaseVmClusterNetworkTimeoutsToHclTerraform; class DatabaseVmClusterNetworkTimeoutsOutputReference 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.DatabaseVmClusterNetworkTimeoutsOutputReference = DatabaseVmClusterNetworkTimeoutsOutputReference; _e = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkTimeoutsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkTimeoutsOutputReference", version: "1.0.0" }; function databaseVmClusterNetworkVmNetworksNodesToTerraform(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), hostname: cdktf.stringToTerraform(struct.hostname), ip: cdktf.stringToTerraform(struct.ip), state: cdktf.stringToTerraform(struct.state), vip: cdktf.stringToTerraform(struct.vip), vip_hostname: cdktf.stringToTerraform(struct.vipHostname), }; } exports.databaseVmClusterNetworkVmNetworksNodesToTerraform = databaseVmClusterNetworkVmNetworksNodesToTerraform; function databaseVmClusterNetworkVmNetworksNodesToHclTerraform(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", }, hostname: { value: cdktf.stringToHclTerraform(struct.hostname), isBlock: false, type: "simple", storageClassType: "string", }, ip: { value: cdktf.stringToHclTerraform(struct.ip), isBlock: false, type: "simple", storageClassType: "string", }, state: { value: cdktf.stringToHclTerraform(struct.state), isBlock: false, type: "simple", storageClassType: "string", }, vip: { value: cdktf.stringToHclTerraform(struct.vip), isBlock: false, type: "simple", storageClassType: "string", }, vip_hostname: { value: cdktf.stringToHclTerraform(struct.vipHostname), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseVmClusterNetworkVmNetworksNodesToHclTerraform = databaseVmClusterNetworkVmNetworksNodesToHclTerraform; class DatabaseVmClusterNetworkVmNetworksNodesOutputReference 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; } if (this._hostname !== undefined) { hasAnyValues = true; internalValueResult.hostname = this._hostname; } if (this._ip !== undefined) { hasAnyValues = true; internalValueResult.ip = this._ip; } if (this._state !== undefined) { hasAnyValues = true; internalValueResult.state = this._state; } if (this._vip !== undefined) { hasAnyValues = true; internalValueResult.vip = this._vip; } if (this._vipHostname !== undefined) { hasAnyValues = true; internalValueResult.vipHostname = this._vipHostname; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._dbServerId = undefined; this._hostname = undefined; this._ip = undefined; this._state = undefined; this._vip = undefined; this._vipHostname = 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; this._hostname = value.hostname; this._ip = value.ip; this._state = value.state; this._vip = value.vip; this._vipHostname = value.vipHostname; } } get dbServerId() { return this.getStringAttribute('db_server_id'); } set dbServerId(value) { this._dbServerId = value; } resetDbServerId() { this._dbServerId = undefined; } // Temporarily expose input value. Use with caution. get dbServerIdInput() { return this._dbServerId; } 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 ip() { return this.getStringAttribute('ip'); } set ip(value) { this._ip = value; } // Temporarily expose input value. Use with caution. get ipInput() { return this._ip; } get state() { return this.getStringAttribute('state'); } set state(value) { this._state = value; } resetState() { this._state = undefined; } // Temporarily expose input value. Use with caution. get stateInput() { return this._state; } get vip() { return this.getStringAttribute('vip'); } set vip(value) { this._vip = value; } resetVip() { this._vip = undefined; } // Temporarily expose input value. Use with caution. get vipInput() { return this._vip; } get vipHostname() { return this.getStringAttribute('vip_hostname'); } set vipHostname(value) { this._vipHostname = value; } resetVipHostname() { this._vipHostname = undefined; } // Temporarily expose input value. Use with caution. get vipHostnameInput() { return this._vipHostname; } } exports.DatabaseVmClusterNetworkVmNetworksNodesOutputReference = DatabaseVmClusterNetworkVmNetworksNodesOutputReference; _f = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkVmNetworksNodesOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkVmNetworksNodesOutputReference", version: "1.0.0" }; class DatabaseVmClusterNetworkVmNetworksNodesList 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 DatabaseVmClusterNetworkVmNetworksNodesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterNetworkVmNetworksNodesList = DatabaseVmClusterNetworkVmNetworksNodesList; _g = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkVmNetworksNodesList[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkVmNetworksNodesList", version: "1.0.0" }; function databaseVmClusterNetworkVmNetworksToTerraform(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 { domain_name: cdktf.stringToTerraform(struct.domainName), gateway: cdktf.stringToTerraform(struct.gateway), netmask: cdktf.stringToTerraform(struct.netmask), network_type: cdktf.stringToTerraform(struct.networkType), vlan_id: cdktf.stringToTerraform(struct.vlanId), nodes: cdktf.listMapper(databaseVmClusterNetworkVmNetworksNodesToTerraform, true)(struct.nodes), }; } exports.databaseVmClusterNetworkVmNetworksToTerraform = databaseVmClusterNetworkVmNetworksToTerraform; function databaseVmClusterNetworkVmNetworksToHclTerraform(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 = { domain_name: { value: cdktf.stringToHclTerraform(struct.domainName), isBlock: false, type: "simple", storageClassType: "string", }, gateway: { value: cdktf.stringToHclTerraform(struct.gateway), isBlock: false, type: "simple", storageClassType: "string", }, netmask: { value: cdktf.stringToHclTerraform(struct.netmask), isBlock: false, type: "simple", storageClassType: "string", }, network_type: { value: cdktf.stringToHclTerraform(struct.networkType), isBlock: false, type: "simple", storageClassType: "string", }, vlan_id: { value: cdktf.stringToHclTerraform(struct.vlanId), isBlock: false, type: "simple", storageClassType: "string", }, nodes: { value: cdktf.listMapperHcl(databaseVmClusterNetworkVmNetworksNodesToHclTerraform, true)(struct.nodes), isBlock: true, type: "set", storageClassType: "DatabaseVmClusterNetworkVmNetworksNodesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.databaseVmClusterNetworkVmNetworksToHclTerraform = databaseVmClusterNetworkVmNetworksToHclTerraform; class DatabaseVmClusterNetworkVmNetworksOutputReference 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; // nodes - computed: false, optional: false, required: true this._nodes = new DatabaseVmClusterNetworkVmNetworksNodesList(this, "nodes", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._domainName !== undefined) { hasAnyValues = true; internalValueResult.domainName = this._domainName; } if (this._gateway !== undefined) { hasAnyValues = true; internalValueResult.gateway = this._gateway; } if (this._netmask !== undefined) { hasAnyValues = true; internalValueResult.netmask = this._netmask; } if (this._networkType !== undefined) { hasAnyValues = true; internalValueResult.networkType = this._networkType; } if (this._vlanId !== undefined) { hasAnyValues = true; internalValueResult.vlanId = this._vlanId; } if (this._nodes?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.nodes = this._nodes?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._domainName = undefined; this._gateway = undefined; this._netmask = undefined; this._networkType = undefined; this._vlanId = undefined; this._nodes.internalValue = 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._domainName = value.domainName; this._gateway = value.gateway; this._netmask = value.netmask; this._networkType = value.networkType; this._vlanId = value.vlanId; this._nodes.internalValue = value.nodes; } } get domainName() { return this.getStringAttribute('domain_name'); } set domainName(value) { this._domainName = value; } resetDomainName() { this._domainName = undefined; } // Temporarily expose input value. Use with caution. get domainNameInput() { return this._domainName; } get gateway() { return this.getStringAttribute('gateway'); } set gateway(value) { this._gateway = value; } resetGateway() { this._gateway = undefined; } // Temporarily expose input value. Use with caution. get gatewayInput() { return this._gateway; } get netmask() { return this.getStringAttribute('netmask'); } set netmask(value) { this._netmask = value; } resetNetmask() { this._netmask = undefined; } // Temporarily expose input value. Use with caution. get netmaskInput() { return this._netmask; } get networkType() { return this.getStringAttribute('network_type'); } set networkType(value) { this._networkType = value; } // Temporarily expose input value. Use with caution. get networkTypeInput() { return this._networkType; } get vlanId() { return this.getStringAttribute('vlan_id'); } set vlanId(value) { this._vlanId = value; } resetVlanId() { this._vlanId = undefined; } // Temporarily expose input value. Use with caution. get vlanIdInput() { return this._vlanId; } get nodes() { return this._nodes; } putNodes(value) { this._nodes.internalValue = value; } // Temporarily expose input value. Use with caution. get nodesInput() { return this._nodes.internalValue; } } exports.DatabaseVmClusterNetworkVmNetworksOutputReference = DatabaseVmClusterNetworkVmNetworksOutputReference; _h = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkVmNetworksOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkVmNetworksOutputReference", version: "1.0.0" }; class DatabaseVmClusterNetworkVmNetworksList 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 DatabaseVmClusterNetworkVmNetworksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatabaseVmClusterNetworkVmNetworksList = DatabaseVmClusterNetworkVmNetworksList; _j = JSII_RTTI_SYMBOL_1; DatabaseVmClusterNetworkVmNetworksList[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseVmClusterNetwork.DatabaseVmClusterNetworkVmNetworksList", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_network oci_database_vm_cluster_network} */ class DatabaseVmClusterNetwork extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatabaseVmClusterNetwork 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 DatabaseVmClusterNetwork to import * @param importFromId The id of the existing DatabaseVmClusterNetwork that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_network#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DatabaseVmClusterNetwork to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_database_vm_cluster_network", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/database_vm_cluster_network oci_database_vm_cluster_network} 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 DatabaseVmClusterNetworkConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_database_vm_cluster_network', 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 }); // dr_scans - computed: false, optional: true, required: false this._drScans = new DatabaseVmClusterNetworkDrScansList(this, "dr_scans", false); // scans - computed: false, optional: false, required: true this._scans = new DatabaseVmClusterNetworkScansList(this, "scans", true); // timeouts - computed: false, optional: true, required: false this._timeouts = new DatabaseVmClusterNetworkTimeoutsOutputReference(this, "timeouts"); // vm_networks - computed: false, optional: false, required: true this._vmNetworks = new DatabaseVmClusterNetworkVmNetworksList(this, "vm_networks", true); this._action = config.action; this._compartmentId = config.compartmentId; this._definedTags = config.definedTags; this._displayName = config.displayName; this._dns = config.dns; this._exadataInfrastructureId = config.exadataInfrastructureId; this._freeformTags = config.freeformTags; this._id = config.id; this._ntp = config.ntp; this._validateVmClusterNetwork = config.validateVmClusterNetwork; this._drScans.internalValue = config.drScans; this._scans.internalValue = config.scans; this._timeouts.internalValue = config.timeouts; this._vmNetworks.internalValue = config.vmNetworks; } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } resetAction() { this._action = undefined; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } 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 dns() { return this.getListAttribute('dns'); } set dns(value) { this._dns = value; } resetDns() { this._dns = undefined; } // Temporarily expose input value. Use with caution. get dnsInput() { return this._dns; } get exadataInfrastructureId() { return this.getStringAttribute('exadata_infrastructure_id'); } set exadataInfrastructureId(value) { this._exadataInfrastructureId = value; } // Temporarily expose input value. Use with caution. get exadataInfrastructureIdInput() { return this._exadataInfrastructureId; } get freeformTags() { return this.getStringMapAttribute('freeform_tags'); } set freeformTags(value) { this._freeformTags = value; } resetFreeformTags() { this._freeformTags = undefined; } // Temporarily expose input value. Use with caution. get freeformTagsInput() { return this._freeformTags; } get 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; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } get ntp() { return this.getListAttribute('ntp'); } set ntp(value) { this._ntp = value; } resetNtp() { this._ntp = undefined; } // Temporarily expose input value. Use with caution. get ntpInput() { return this._ntp; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } get validateVmClusterNetwork() { return this.getBooleanAttribute('validate_vm_cluster_network'); } set validateVmClusterNetwork(value) { this._validateVmClusterNetwork = value; } resetValidateVmClusterNetwork() { this._validateVmClusterNetwork = undefined; } // Temporarily expose input value. Use with caution. get validateVmClusterNetworkInput() { return this._validateVmClusterNetwork; } // vm_cluster_id - computed: true, optional: false, required: false get vmClusterId() { return this.getStringAttribute('vm_cluster_id'); } get drScans() { return this._drScans; } putDrScans(value) { this._drScans.internalValue = value; } resetDrScans() { this._drScans.internalValue = undefined; } // Temporarily expose input value. Use with caution. get drScansInput() { return this._drScans.internalValue; } get scans() { return this._scans; } putScans(value) { this._scans.internalValue = value; } // Temporarily expose input value. Use with caution. get scansInput() { return this._scans.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; } get vmNetworks() { return this._vmNetworks; } putVmNetworks(value) { this._vmNetworks.internalValue = value; } // Temporarily expose input value. Use with caution. get vmNetworksInput() { return this._vmNetworks.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { action: cdktf.stringToTerraform(this._action), compartment_id: cdktf.stringToTerraform(this._compartmentId), defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._definedTags), display_name: cdktf.stringToTerraform(this._displayName), dns: cdktf.listMapper(cdktf.stringToTerraform, false)(this._dns), exadata_infrastructure_id: cdktf.stringToTerraform(this._exadataInfrastructureId), freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._freeformTags), id: cdktf.stringToTerraform(this._id), ntp: cdktf.listMapper(cdktf.stringToTerraform, false)(this._ntp), validate_vm_cluster_network: cdktf.booleanToTerraform(this._validateVmClusterNetwork), dr_scans: cdktf.listMapper(databaseVmClusterNetworkDrScansToTerraform, true)(this._drScans.internalValue), scans: cdktf.listMapper(databaseVmClusterNetworkScansToTerraform, true)(this._scans.internalValue), timeouts: databaseVmClusterNetworkTimeoutsToTerraform(this._timeouts.internalValue), vm_networks: cdktf.listMapper(databaseVmClusterNetworkVmNetworksToTerraform, true)(this._vmNetworks.internalValue), }; } synthesizeHclAttributes() { const attrs = { action: { value: cdktf.stringToHclTerraform(this._action), isBlock: false, type: "simple", storageClassType: "string", }, compartment_id: { value: cdktf.stringToHclTerraform(this._compartmentId), isBlock: false, type: "simple", storageClassType: "string", }, defined_tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._definedTags), isBlock: false, type: "map", storageClassType: "stringMap", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, dns: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._dns), isBlock: false, type: "list", storageClassType: "strin