UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,129 lines 305 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataSafeTargetDatabase = exports.DataSafeTargetDatabaseTlsConfigOutputReference = exports.dataSafeTargetDatabaseTlsConfigToHclTerraform = exports.dataSafeTargetDatabaseTlsConfigToTerraform = exports.DataSafeTargetDatabaseTimeoutsOutputReference = exports.dataSafeTargetDatabaseTimeoutsToHclTerraform = exports.dataSafeTargetDatabaseTimeoutsToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabaseDetailsList = exports.DataSafeTargetDatabasePeerTargetDatabaseDetailsOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToTerraform = exports.DataSafeTargetDatabaseDatabaseDetailsOutputReference = exports.dataSafeTargetDatabaseDatabaseDetailsToHclTerraform = exports.dataSafeTargetDatabaseDatabaseDetailsToTerraform = exports.DataSafeTargetDatabaseCredentialsOutputReference = exports.dataSafeTargetDatabaseCredentialsToHclTerraform = exports.dataSafeTargetDatabaseCredentialsToTerraform = exports.DataSafeTargetDatabaseConnectionOptionOutputReference = exports.dataSafeTargetDatabaseConnectionOptionToHclTerraform = exports.dataSafeTargetDatabaseConnectionOptionToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabasesList = exports.DataSafeTargetDatabasePeerTargetDatabasesOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabasesToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabasesToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList = exports.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToTerraform = exports.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList = exports.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference = exports.dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToHclTerraform = exports.dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToTerraform = dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToTerraform; function dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToHclTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToHclTerraform = dataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsToHclTerraform; class DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference 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; } } // autonomous_database_id - computed: true, optional: false, required: false get autonomousDatabaseId() { return this.getStringAttribute('autonomous_database_id'); } // database_type - computed: true, optional: false, required: false get databaseType() { return this.getStringAttribute('database_type'); } // db_system_id - computed: true, optional: false, required: false get dbSystemId() { return this.getStringAttribute('db_system_id'); } // infrastructure_type - computed: true, optional: false, required: false get infrastructureType() { return this.getStringAttribute('infrastructure_type'); } // instance_id - computed: true, optional: false, required: false get instanceId() { return this.getStringAttribute('instance_id'); } // ip_addresses - computed: true, optional: false, required: false get ipAddresses() { return this.getListAttribute('ip_addresses'); } // listener_port - computed: true, optional: false, required: false get listenerPort() { return this.getNumberAttribute('listener_port'); } // service_name - computed: true, optional: false, required: false get serviceName() { return this.getStringAttribute('service_name'); } // vm_cluster_id - computed: true, optional: false, required: false get vmClusterId() { return this.getStringAttribute('vm_cluster_id'); } } exports.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference = DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference", version: "1.0.0" }; class DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList 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 DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList = DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList; _b = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList", version: "1.0.0" }; function dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToTerraform = dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToTerraform; function dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToHclTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToHclTerraform = dataSafeTargetDatabasePeerTargetDatabasesTlsConfigToHclTerraform; class DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference 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; } } // certificate_store_type - computed: true, optional: false, required: false get certificateStoreType() { return this.getStringAttribute('certificate_store_type'); } // key_store_content - computed: true, optional: false, required: false get keyStoreContent() { return this.getStringAttribute('key_store_content'); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } // store_password - computed: true, optional: false, required: false get storePassword() { return this.getStringAttribute('store_password'); } // trust_store_content - computed: true, optional: false, required: false get trustStoreContent() { return this.getStringAttribute('trust_store_content'); } } exports.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference = DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference", version: "1.0.0" }; class DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList 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 DataSafeTargetDatabasePeerTargetDatabasesTlsConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList = DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList; _d = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList[_d] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList", version: "1.0.0" }; function dataSafeTargetDatabasePeerTargetDatabasesToTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesToTerraform = dataSafeTargetDatabasePeerTargetDatabasesToTerraform; function dataSafeTargetDatabasePeerTargetDatabasesToHclTerraform(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.dataSafeTargetDatabasePeerTargetDatabasesToHclTerraform = dataSafeTargetDatabasePeerTargetDatabasesToHclTerraform; class DataSafeTargetDatabasePeerTargetDatabasesOutputReference 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; // database_details - computed: true, optional: false, required: false this._databaseDetails = new DataSafeTargetDatabasePeerTargetDatabasesDatabaseDetailsList(this, "database_details", false); // tls_config - computed: true, optional: false, required: false this._tlsConfig = new DataSafeTargetDatabasePeerTargetDatabasesTlsConfigList(this, "tls_config", 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 databaseDetails() { return this._databaseDetails; } // database_unique_name - computed: true, optional: false, required: false get databaseUniqueName() { return this.getStringAttribute('database_unique_name'); } // dataguard_association_id - computed: true, optional: false, required: false get dataguardAssociationId() { return this.getStringAttribute('dataguard_association_id'); } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } // key - computed: true, optional: false, required: false get key() { return this.getNumberAttribute('key'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // role - computed: true, optional: false, required: false get role() { return this.getStringAttribute('role'); } // 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 tlsConfig() { return this._tlsConfig; } } exports.DataSafeTargetDatabasePeerTargetDatabasesOutputReference = DataSafeTargetDatabasePeerTargetDatabasesOutputReference; _e = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesOutputReference", version: "1.0.0" }; class DataSafeTargetDatabasePeerTargetDatabasesList 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 DataSafeTargetDatabasePeerTargetDatabasesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataSafeTargetDatabasePeerTargetDatabasesList = DataSafeTargetDatabasePeerTargetDatabasesList; _f = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabasesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabasesList", version: "1.0.0" }; function dataSafeTargetDatabaseConnectionOptionToTerraform(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 { connection_type: cdktf.stringToTerraform(struct.connectionType), datasafe_private_endpoint_id: cdktf.stringToTerraform(struct.datasafePrivateEndpointId), on_prem_connector_id: cdktf.stringToTerraform(struct.onPremConnectorId), }; } exports.dataSafeTargetDatabaseConnectionOptionToTerraform = dataSafeTargetDatabaseConnectionOptionToTerraform; function dataSafeTargetDatabaseConnectionOptionToHclTerraform(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 = { connection_type: { value: cdktf.stringToHclTerraform(struct.connectionType), isBlock: false, type: "simple", storageClassType: "string", }, datasafe_private_endpoint_id: { value: cdktf.stringToHclTerraform(struct.datasafePrivateEndpointId), isBlock: false, type: "simple", storageClassType: "string", }, on_prem_connector_id: { value: cdktf.stringToHclTerraform(struct.onPremConnectorId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataSafeTargetDatabaseConnectionOptionToHclTerraform = dataSafeTargetDatabaseConnectionOptionToHclTerraform; class DataSafeTargetDatabaseConnectionOptionOutputReference 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._connectionType !== undefined) { hasAnyValues = true; internalValueResult.connectionType = this._connectionType; } if (this._datasafePrivateEndpointId !== undefined) { hasAnyValues = true; internalValueResult.datasafePrivateEndpointId = this._datasafePrivateEndpointId; } if (this._onPremConnectorId !== undefined) { hasAnyValues = true; internalValueResult.onPremConnectorId = this._onPremConnectorId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectionType = undefined; this._datasafePrivateEndpointId = undefined; this._onPremConnectorId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionType = value.connectionType; this._datasafePrivateEndpointId = value.datasafePrivateEndpointId; this._onPremConnectorId = value.onPremConnectorId; } } get connectionType() { return this.getStringAttribute('connection_type'); } set connectionType(value) { this._connectionType = value; } // Temporarily expose input value. Use with caution. get connectionTypeInput() { return this._connectionType; } get datasafePrivateEndpointId() { return this.getStringAttribute('datasafe_private_endpoint_id'); } set datasafePrivateEndpointId(value) { this._datasafePrivateEndpointId = value; } resetDatasafePrivateEndpointId() { this._datasafePrivateEndpointId = undefined; } // Temporarily expose input value. Use with caution. get datasafePrivateEndpointIdInput() { return this._datasafePrivateEndpointId; } get onPremConnectorId() { return this.getStringAttribute('on_prem_connector_id'); } set onPremConnectorId(value) { this._onPremConnectorId = value; } resetOnPremConnectorId() { this._onPremConnectorId = undefined; } // Temporarily expose input value. Use with caution. get onPremConnectorIdInput() { return this._onPremConnectorId; } } exports.DataSafeTargetDatabaseConnectionOptionOutputReference = DataSafeTargetDatabaseConnectionOptionOutputReference; _g = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabaseConnectionOptionOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabaseConnectionOptionOutputReference", version: "1.0.0" }; function dataSafeTargetDatabaseCredentialsToTerraform(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 { password: cdktf.stringToTerraform(struct.password), user_name: cdktf.stringToTerraform(struct.userName), }; } exports.dataSafeTargetDatabaseCredentialsToTerraform = dataSafeTargetDatabaseCredentialsToTerraform; function dataSafeTargetDatabaseCredentialsToHclTerraform(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 = { password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, user_name: { value: cdktf.stringToHclTerraform(struct.userName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataSafeTargetDatabaseCredentialsToHclTerraform = dataSafeTargetDatabaseCredentialsToHclTerraform; class DataSafeTargetDatabaseCredentialsOutputReference 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._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._userName !== undefined) { hasAnyValues = true; internalValueResult.userName = this._userName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._userName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._userName = value.userName; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get userName() { return this.getStringAttribute('user_name'); } set userName(value) { this._userName = value; } // Temporarily expose input value. Use with caution. get userNameInput() { return this._userName; } } exports.DataSafeTargetDatabaseCredentialsOutputReference = DataSafeTargetDatabaseCredentialsOutputReference; _h = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabaseCredentialsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabaseCredentialsOutputReference", version: "1.0.0" }; function dataSafeTargetDatabaseDatabaseDetailsToTerraform(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 { autonomous_database_id: cdktf.stringToTerraform(struct.autonomousDatabaseId), database_type: cdktf.stringToTerraform(struct.databaseType), db_system_id: cdktf.stringToTerraform(struct.dbSystemId), infrastructure_type: cdktf.stringToTerraform(struct.infrastructureType), instance_id: cdktf.stringToTerraform(struct.instanceId), ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ipAddresses), listener_port: cdktf.numberToTerraform(struct.listenerPort), service_name: cdktf.stringToTerraform(struct.serviceName), vm_cluster_id: cdktf.stringToTerraform(struct.vmClusterId), }; } exports.dataSafeTargetDatabaseDatabaseDetailsToTerraform = dataSafeTargetDatabaseDatabaseDetailsToTerraform; function dataSafeTargetDatabaseDatabaseDetailsToHclTerraform(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 = { autonomous_database_id: { value: cdktf.stringToHclTerraform(struct.autonomousDatabaseId), isBlock: false, type: "simple", storageClassType: "string", }, database_type: { value: cdktf.stringToHclTerraform(struct.databaseType), isBlock: false, type: "simple", storageClassType: "string", }, db_system_id: { value: cdktf.stringToHclTerraform(struct.dbSystemId), isBlock: false, type: "simple", storageClassType: "string", }, infrastructure_type: { value: cdktf.stringToHclTerraform(struct.infrastructureType), isBlock: false, type: "simple", storageClassType: "string", }, instance_id: { value: cdktf.stringToHclTerraform(struct.instanceId), isBlock: false, type: "simple", storageClassType: "string", }, ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ipAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, listener_port: { value: cdktf.numberToHclTerraform(struct.listenerPort), isBlock: false, type: "simple", storageClassType: "number", }, service_name: { value: cdktf.stringToHclTerraform(struct.serviceName), isBlock: false, type: "simple", storageClassType: "string", }, vm_cluster_id: { value: cdktf.stringToHclTerraform(struct.vmClusterId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataSafeTargetDatabaseDatabaseDetailsToHclTerraform = dataSafeTargetDatabaseDatabaseDetailsToHclTerraform; class DataSafeTargetDatabaseDatabaseDetailsOutputReference 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._autonomousDatabaseId !== undefined) { hasAnyValues = true; internalValueResult.autonomousDatabaseId = this._autonomousDatabaseId; } if (this._databaseType !== undefined) { hasAnyValues = true; internalValueResult.databaseType = this._databaseType; } if (this._dbSystemId !== undefined) { hasAnyValues = true; internalValueResult.dbSystemId = this._dbSystemId; } if (this._infrastructureType !== undefined) { hasAnyValues = true; internalValueResult.infrastructureType = this._infrastructureType; } if (this._instanceId !== undefined) { hasAnyValues = true; internalValueResult.instanceId = this._instanceId; } if (this._ipAddresses !== undefined) { hasAnyValues = true; internalValueResult.ipAddresses = this._ipAddresses; } if (this._listenerPort !== undefined) { hasAnyValues = true; internalValueResult.listenerPort = this._listenerPort; } if (this._serviceName !== undefined) { hasAnyValues = true; internalValueResult.serviceName = this._serviceName; } if (this._vmClusterId !== undefined) { hasAnyValues = true; internalValueResult.vmClusterId = this._vmClusterId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._autonomousDatabaseId = undefined; this._databaseType = undefined; this._dbSystemId = undefined; this._infrastructureType = undefined; this._instanceId = undefined; this._ipAddresses = undefined; this._listenerPort = undefined; this._serviceName = undefined; this._vmClusterId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._autonomousDatabaseId = value.autonomousDatabaseId; this._databaseType = value.databaseType; this._dbSystemId = value.dbSystemId; this._infrastructureType = value.infrastructureType; this._instanceId = value.instanceId; this._ipAddresses = value.ipAddresses; this._listenerPort = value.listenerPort; this._serviceName = value.serviceName; this._vmClusterId = value.vmClusterId; } } get autonomousDatabaseId() { return this.getStringAttribute('autonomous_database_id'); } set autonomousDatabaseId(value) { this._autonomousDatabaseId = value; } resetAutonomousDatabaseId() { this._autonomousDatabaseId = undefined; } // Temporarily expose input value. Use with caution. get autonomousDatabaseIdInput() { return this._autonomousDatabaseId; } get databaseType() { return this.getStringAttribute('database_type'); } set databaseType(value) { this._databaseType = value; } // Temporarily expose input value. Use with caution. get databaseTypeInput() { return this._databaseType; } get dbSystemId() { return this.getStringAttribute('db_system_id'); } set dbSystemId(value) { this._dbSystemId = value; } resetDbSystemId() { this._dbSystemId = undefined; } // Temporarily expose input value. Use with caution. get dbSystemIdInput() { return this._dbSystemId; } get infrastructureType() { return this.getStringAttribute('infrastructure_type'); } set infrastructureType(value) { this._infrastructureType = value; } // Temporarily expose input value. Use with caution. get infrastructureTypeInput() { return this._infrastructureType; } get instanceId() { return this.getStringAttribute('instance_id'); } set instanceId(value) { this._instanceId = value; } resetInstanceId() { this._instanceId = undefined; } // Temporarily expose input value. Use with caution. get instanceIdInput() { return this._instanceId; } get ipAddresses() { return this.getListAttribute('ip_addresses'); } set ipAddresses(value) { this._ipAddresses = value; } resetIpAddresses() { this._ipAddresses = undefined; } // Temporarily expose input value. Use with caution. get ipAddressesInput() { return this._ipAddresses; } get listenerPort() { return this.getNumberAttribute('listener_port'); } set listenerPort(value) { this._listenerPort = value; } resetListenerPort() { this._listenerPort = undefined; } // Temporarily expose input value. Use with caution. get listenerPortInput() { return this._listenerPort; } get serviceName() { return this.getStringAttribute('service_name'); } set serviceName(value) { this._serviceName = value; } resetServiceName() { this._serviceName = undefined; } // Temporarily expose input value. Use with caution. get serviceNameInput() { return this._serviceName; } get vmClusterId() { return this.getStringAttribute('vm_cluster_id'); } set vmClusterId(value) { this._vmClusterId = value; } resetVmClusterId() { this._vmClusterId = undefined; } // Temporarily expose input value. Use with caution. get vmClusterIdInput() { return this._vmClusterId; } } exports.DataSafeTargetDatabaseDatabaseDetailsOutputReference = DataSafeTargetDatabaseDatabaseDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabaseDatabaseDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabaseDatabaseDetailsOutputReference", version: "1.0.0" }; function dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToTerraform(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 { autonomous_database_id: cdktf.stringToTerraform(struct.autonomousDatabaseId), database_type: cdktf.stringToTerraform(struct.databaseType), db_system_id: cdktf.stringToTerraform(struct.dbSystemId), infrastructure_type: cdktf.stringToTerraform(struct.infrastructureType), instance_id: cdktf.stringToTerraform(struct.instanceId), ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ipAddresses), listener_port: cdktf.numberToTerraform(struct.listenerPort), service_name: cdktf.stringToTerraform(struct.serviceName), vm_cluster_id: cdktf.stringToTerraform(struct.vmClusterId), }; } exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToTerraform = dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToTerraform; function dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToHclTerraform(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 = { autonomous_database_id: { value: cdktf.stringToHclTerraform(struct.autonomousDatabaseId), isBlock: false, type: "simple", storageClassType: "string", }, database_type: { value: cdktf.stringToHclTerraform(struct.databaseType), isBlock: false, type: "simple", storageClassType: "string", }, db_system_id: { value: cdktf.stringToHclTerraform(struct.dbSystemId), isBlock: false, type: "simple", storageClassType: "string", }, infrastructure_type: { value: cdktf.stringToHclTerraform(struct.infrastructureType), isBlock: false, type: "simple", storageClassType: "string", }, instance_id: { value: cdktf.stringToHclTerraform(struct.instanceId), isBlock: false, type: "simple", storageClassType: "string", }, ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ipAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, listener_port: { value: cdktf.numberToHclTerraform(struct.listenerPort), isBlock: false, type: "simple", storageClassType: "number", }, service_name: { value: cdktf.stringToHclTerraform(struct.serviceName), isBlock: false, type: "simple", storageClassType: "string", }, vm_cluster_id: { value: cdktf.stringToHclTerraform(struct.vmClusterId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToHclTerraform = dataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsToHclTerraform; class DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference 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._autonomousDatabaseId !== undefined) { hasAnyValues = true; internalValueResult.autonomousDatabaseId = this._autonomousDatabaseId; } if (this._databaseType !== undefined) { hasAnyValues = true; internalValueResult.databaseType = this._databaseType; } if (this._dbSystemId !== undefined) { hasAnyValues = true; internalValueResult.dbSystemId = this._dbSystemId; } if (this._infrastructureType !== undefined) { hasAnyValues = true; internalValueResult.infrastructureType = this._infrastructureType; } if (this._instanceId !== undefined) { hasAnyValues = true; internalValueResult.instanceId = this._instanceId; } if (this._ipAddresses !== undefined) { hasAnyValues = true; internalValueResult.ipAddresses = this._ipAddresses; } if (this._listenerPort !== undefined) { hasAnyValues = true; internalValueResult.listenerPort = this._listenerPort; } if (this._serviceName !== undefined) { hasAnyValues = true; internalValueResult.serviceName = this._serviceName; } if (this._vmClusterId !== undefined) { hasAnyValues = true; internalValueResult.vmClusterId = this._vmClusterId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._autonomousDatabaseId = undefined; this._databaseType = undefined; this._dbSystemId = undefined; this._infrastructureType = undefined; this._instanceId = undefined; this._ipAddresses = undefined; this._listenerPort = undefined; this._serviceName = undefined; this._vmClusterId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._autonomousDatabaseId = value.autonomousDatabaseId; this._databaseType = value.databaseType; this._dbSystemId = value.dbSystemId; this._infrastructureType = value.infrastructureType; this._instanceId = value.instanceId; this._ipAddresses = value.ipAddresses; this._listenerPort = value.listenerPort; this._serviceName = value.serviceName; this._vmClusterId = value.vmClusterId; } } get autonomousDatabaseId() { return this.getStringAttribute('autonomous_database_id'); } set autonomousDatabaseId(value) { this._autonomousDatabaseId = value; } resetAutonomousDatabaseId() { this._autonomousDatabaseId = undefined; } // Temporarily expose input value. Use with caution. get autonomousDatabaseIdInput() { return this._autonomousDatabaseId; } get databaseType() { return this.getStringAttribute('database_type'); } set databaseType(value) { this._databaseType = value; } // Temporarily expose input value. Use with caution. get databaseTypeInput() { return this._databaseType; } get dbSystemId() { return this.getStringAttribute('db_system_id'); } set dbSystemId(value) { this._dbSystemId = value; } resetDbSystemId() { this._dbSystemId = undefined; } // Temporarily expose input value. Use with caution. get dbSystemIdInput() { return this._dbSystemId; } get infrastructureType() { return this.getStringAttribute('infrastructure_type'); } set infrastructureType(value) { this._infrastructureType = value; } // Temporarily expose input value. Use with caution. get infrastructureTypeInput() { return this._infrastructureType; } get instanceId() { return this.getStringAttribute('instance_id'); } set instanceId(value) { this._instanceId = value; } resetInstanceId() { this._instanceId = undefined; } // Temporarily expose input value. Use with caution. get instanceIdInput() { return this._instanceId; } get ipAddresses() { return this.getListAttribute('ip_addresses'); } set ipAddresses(value) { this._ipAddresses = value; } resetIpAddresses() { this._ipAddresses = undefined; } // Temporarily expose input value. Use with caution. get ipAddressesInput() { return this._ipAddresses; } get listenerPort() { return this.getNumberAttribute('listener_port'); } set listenerPort(value) { this._listenerPort = value; } resetListenerPort() { this._listenerPort = undefined; } // Temporarily expose input value. Use with caution. get listenerPortInput() { return this._listenerPort; } get serviceName() { return this.getStringAttribute('service_name'); } set serviceName(value) { this._serviceName = value; } resetServiceName() { this._serviceName = undefined; } // Temporarily expose input value. Use with caution. get serviceNameInput() { return this._serviceName; } get vmClusterId() { return this.getStringAttribute('vm_cluster_id'); } set vmClusterId(value) { this._vmClusterId = value; } resetVmClusterId() { this._vmClusterId = undefined; } // Temporarily expose input value. Use with caution. get vmClusterIdInput() { return this._vmClusterId; } } exports.DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference = DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference; _k = JSII_RTTI_SYMBOL_1; DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.dataSafeTargetDatabase.DataSafeTargetDatabasePeerTargetDatabaseDetailsDatabaseDetailsOutputReference", version: "1.0.0" }; function dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToTerraform(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 { certificate_store_type: cdktf.stringToTerraform(struct.certificateStoreType), key_store_content: cdktf.stringToTerraform(struct.keyStoreContent), status: cdktf.stringToTerraform(struct.status), store_password: cdktf.stringToTerraform(struct.storePassword), trust_store_content: cdktf.stringToTerraform(struct.trustStoreContent), }; } exports.dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToTerraform = dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToTerraform; function dataSafeTargetDatabasePeerTargetDatabaseDetailsTlsConfigToHclTerraform(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 = { certificate_store_type: { value: cdktf.stringToHclTerraform(struct.certificateStoreType), isBlock: false, type: "simple", storageClassType: "string", }, key_store_content: