rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,250 lines • 232 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseDbHome = exports.DatabaseDbHomeTimeoutsOutputReference = exports.databaseDbHomeTimeoutsToHclTerraform = exports.databaseDbHomeTimeoutsToTerraform = exports.DatabaseDbHomeDatabaseOutputReference = exports.databaseDbHomeDatabaseToHclTerraform = exports.databaseDbHomeDatabaseToTerraform = exports.DatabaseDbHomeDatabaseDbBackupConfigOutputReference = exports.databaseDbHomeDatabaseDbBackupConfigToHclTerraform = exports.databaseDbHomeDatabaseDbBackupConfigToTerraform = exports.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList = exports.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = exports.databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = exports.databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = exports.DatabaseDbHomeDatabaseConnectionStringsList = exports.DatabaseDbHomeDatabaseConnectionStringsOutputReference = exports.databaseDbHomeDatabaseConnectionStringsToHclTerraform = exports.databaseDbHomeDatabaseConnectionStringsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databaseDbHomeDatabaseConnectionStringsToTerraform(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.databaseDbHomeDatabaseConnectionStringsToTerraform = databaseDbHomeDatabaseConnectionStringsToTerraform;
function databaseDbHomeDatabaseConnectionStringsToHclTerraform(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.databaseDbHomeDatabaseConnectionStringsToHclTerraform = databaseDbHomeDatabaseConnectionStringsToHclTerraform;
class DatabaseDbHomeDatabaseConnectionStringsOutputReference 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;
// all_connection_strings - computed: true, optional: false, required: false
this._allConnectionStrings = new cdktf.StringMap(this, "all_connection_strings");
}
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 allConnectionStrings() {
return this._allConnectionStrings;
}
// cdb_default - computed: true, optional: false, required: false
get cdbDefault() {
return this.getStringAttribute('cdb_default');
}
// cdb_ip_default - computed: true, optional: false, required: false
get cdbIpDefault() {
return this.getStringAttribute('cdb_ip_default');
}
}
exports.DatabaseDbHomeDatabaseConnectionStringsOutputReference = DatabaseDbHomeDatabaseConnectionStringsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseConnectionStringsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseConnectionStringsOutputReference", version: "1.0.0" };
class DatabaseDbHomeDatabaseConnectionStringsList 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 DatabaseDbHomeDatabaseConnectionStringsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbHomeDatabaseConnectionStringsList = DatabaseDbHomeDatabaseConnectionStringsList;
_b = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseConnectionStringsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseConnectionStringsList", version: "1.0.0" };
function databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform(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 {
dbrs_policy_id: cdktf.stringToTerraform(struct.dbrsPolicyId),
id: cdktf.stringToTerraform(struct.id),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform;
function databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform(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 = {
dbrs_policy_id: {
value: cdktf.stringToHclTerraform(struct.dbrsPolicyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform;
class DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference 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._dbrsPolicyId !== undefined) {
hasAnyValues = true;
internalValueResult.dbrsPolicyId = this._dbrsPolicyId;
}
if (this._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._dbrsPolicyId = undefined;
this._id = undefined;
this._type = 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._dbrsPolicyId = value.dbrsPolicyId;
this._id = value.id;
this._type = value.type;
}
}
get dbrsPolicyId() {
return this.getStringAttribute('dbrs_policy_id');
}
set dbrsPolicyId(value) {
this._dbrsPolicyId = value;
}
resetDbrsPolicyId() {
this._dbrsPolicyId = undefined;
}
// Temporarily expose input value. Use with caution.
get dbrsPolicyIdInput() {
return this._dbrsPolicyId;
}
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 type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference", version: "1.0.0" };
class DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList 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 DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList = DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList;
_d = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList", version: "1.0.0" };
function databaseDbHomeDatabaseDbBackupConfigToTerraform(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 {
auto_backup_enabled: cdktf.booleanToTerraform(struct.autoBackupEnabled),
auto_backup_window: cdktf.stringToTerraform(struct.autoBackupWindow),
auto_full_backup_day: cdktf.stringToTerraform(struct.autoFullBackupDay),
auto_full_backup_window: cdktf.stringToTerraform(struct.autoFullBackupWindow),
backup_deletion_policy: cdktf.stringToTerraform(struct.backupDeletionPolicy),
recovery_window_in_days: cdktf.numberToTerraform(struct.recoveryWindowInDays),
run_immediate_full_backup: cdktf.booleanToTerraform(struct.runImmediateFullBackup),
backup_destination_details: cdktf.listMapper(databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToTerraform, true)(struct.backupDestinationDetails),
};
}
exports.databaseDbHomeDatabaseDbBackupConfigToTerraform = databaseDbHomeDatabaseDbBackupConfigToTerraform;
function databaseDbHomeDatabaseDbBackupConfigToHclTerraform(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 = {
auto_backup_enabled: {
value: cdktf.booleanToHclTerraform(struct.autoBackupEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
auto_backup_window: {
value: cdktf.stringToHclTerraform(struct.autoBackupWindow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auto_full_backup_day: {
value: cdktf.stringToHclTerraform(struct.autoFullBackupDay),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auto_full_backup_window: {
value: cdktf.stringToHclTerraform(struct.autoFullBackupWindow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backup_deletion_policy: {
value: cdktf.stringToHclTerraform(struct.backupDeletionPolicy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
recovery_window_in_days: {
value: cdktf.numberToHclTerraform(struct.recoveryWindowInDays),
isBlock: false,
type: "simple",
storageClassType: "number",
},
run_immediate_full_backup: {
value: cdktf.booleanToHclTerraform(struct.runImmediateFullBackup),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
backup_destination_details: {
value: cdktf.listMapperHcl(databaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform, true)(struct.backupDestinationDetails),
isBlock: true,
type: "list",
storageClassType: "DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbHomeDatabaseDbBackupConfigToHclTerraform = databaseDbHomeDatabaseDbBackupConfigToHclTerraform;
class DatabaseDbHomeDatabaseDbBackupConfigOutputReference 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;
// backup_destination_details - computed: false, optional: true, required: false
this._backupDestinationDetails = new DatabaseDbHomeDatabaseDbBackupConfigBackupDestinationDetailsList(this, "backup_destination_details", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._autoBackupEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.autoBackupEnabled = this._autoBackupEnabled;
}
if (this._autoBackupWindow !== undefined) {
hasAnyValues = true;
internalValueResult.autoBackupWindow = this._autoBackupWindow;
}
if (this._autoFullBackupDay !== undefined) {
hasAnyValues = true;
internalValueResult.autoFullBackupDay = this._autoFullBackupDay;
}
if (this._autoFullBackupWindow !== undefined) {
hasAnyValues = true;
internalValueResult.autoFullBackupWindow = this._autoFullBackupWindow;
}
if (this._backupDeletionPolicy !== undefined) {
hasAnyValues = true;
internalValueResult.backupDeletionPolicy = this._backupDeletionPolicy;
}
if (this._recoveryWindowInDays !== undefined) {
hasAnyValues = true;
internalValueResult.recoveryWindowInDays = this._recoveryWindowInDays;
}
if (this._runImmediateFullBackup !== undefined) {
hasAnyValues = true;
internalValueResult.runImmediateFullBackup = this._runImmediateFullBackup;
}
if (this._backupDestinationDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.backupDestinationDetails = this._backupDestinationDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._autoBackupEnabled = undefined;
this._autoBackupWindow = undefined;
this._autoFullBackupDay = undefined;
this._autoFullBackupWindow = undefined;
this._backupDeletionPolicy = undefined;
this._recoveryWindowInDays = undefined;
this._runImmediateFullBackup = undefined;
this._backupDestinationDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._autoBackupEnabled = value.autoBackupEnabled;
this._autoBackupWindow = value.autoBackupWindow;
this._autoFullBackupDay = value.autoFullBackupDay;
this._autoFullBackupWindow = value.autoFullBackupWindow;
this._backupDeletionPolicy = value.backupDeletionPolicy;
this._recoveryWindowInDays = value.recoveryWindowInDays;
this._runImmediateFullBackup = value.runImmediateFullBackup;
this._backupDestinationDetails.internalValue = value.backupDestinationDetails;
}
}
get autoBackupEnabled() {
return this.getBooleanAttribute('auto_backup_enabled');
}
set autoBackupEnabled(value) {
this._autoBackupEnabled = value;
}
resetAutoBackupEnabled() {
this._autoBackupEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get autoBackupEnabledInput() {
return this._autoBackupEnabled;
}
get autoBackupWindow() {
return this.getStringAttribute('auto_backup_window');
}
set autoBackupWindow(value) {
this._autoBackupWindow = value;
}
resetAutoBackupWindow() {
this._autoBackupWindow = undefined;
}
// Temporarily expose input value. Use with caution.
get autoBackupWindowInput() {
return this._autoBackupWindow;
}
get autoFullBackupDay() {
return this.getStringAttribute('auto_full_backup_day');
}
set autoFullBackupDay(value) {
this._autoFullBackupDay = value;
}
resetAutoFullBackupDay() {
this._autoFullBackupDay = undefined;
}
// Temporarily expose input value. Use with caution.
get autoFullBackupDayInput() {
return this._autoFullBackupDay;
}
get autoFullBackupWindow() {
return this.getStringAttribute('auto_full_backup_window');
}
set autoFullBackupWindow(value) {
this._autoFullBackupWindow = value;
}
resetAutoFullBackupWindow() {
this._autoFullBackupWindow = undefined;
}
// Temporarily expose input value. Use with caution.
get autoFullBackupWindowInput() {
return this._autoFullBackupWindow;
}
get backupDeletionPolicy() {
return this.getStringAttribute('backup_deletion_policy');
}
set backupDeletionPolicy(value) {
this._backupDeletionPolicy = value;
}
resetBackupDeletionPolicy() {
this._backupDeletionPolicy = undefined;
}
// Temporarily expose input value. Use with caution.
get backupDeletionPolicyInput() {
return this._backupDeletionPolicy;
}
get recoveryWindowInDays() {
return this.getNumberAttribute('recovery_window_in_days');
}
set recoveryWindowInDays(value) {
this._recoveryWindowInDays = value;
}
resetRecoveryWindowInDays() {
this._recoveryWindowInDays = undefined;
}
// Temporarily expose input value. Use with caution.
get recoveryWindowInDaysInput() {
return this._recoveryWindowInDays;
}
get runImmediateFullBackup() {
return this.getBooleanAttribute('run_immediate_full_backup');
}
set runImmediateFullBackup(value) {
this._runImmediateFullBackup = value;
}
resetRunImmediateFullBackup() {
this._runImmediateFullBackup = undefined;
}
// Temporarily expose input value. Use with caution.
get runImmediateFullBackupInput() {
return this._runImmediateFullBackup;
}
get backupDestinationDetails() {
return this._backupDestinationDetails;
}
putBackupDestinationDetails(value) {
this._backupDestinationDetails.internalValue = value;
}
resetBackupDestinationDetails() {
this._backupDestinationDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get backupDestinationDetailsInput() {
return this._backupDestinationDetails.internalValue;
}
}
exports.DatabaseDbHomeDatabaseDbBackupConfigOutputReference = DatabaseDbHomeDatabaseDbBackupConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseDbBackupConfigOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseDbBackupConfigOutputReference", version: "1.0.0" };
function databaseDbHomeDatabaseToTerraform(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 {
admin_password: cdktf.stringToTerraform(struct.adminPassword),
backup_id: cdktf.stringToTerraform(struct.backupId),
backup_tde_password: cdktf.stringToTerraform(struct.backupTdePassword),
character_set: cdktf.stringToTerraform(struct.characterSet),
database_id: cdktf.stringToTerraform(struct.databaseId),
database_software_image_id: cdktf.stringToTerraform(struct.databaseSoftwareImageId),
db_name: cdktf.stringToTerraform(struct.dbName),
db_workload: cdktf.stringToTerraform(struct.dbWorkload),
defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.definedTags),
freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.freeformTags),
key_store_id: cdktf.stringToTerraform(struct.keyStoreId),
kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId),
kms_key_version_id: cdktf.stringToTerraform(struct.kmsKeyVersionId),
ncharacter_set: cdktf.stringToTerraform(struct.ncharacterSet),
pdb_name: cdktf.stringToTerraform(struct.pdbName),
pluggable_databases: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.pluggableDatabases),
tde_wallet_password: cdktf.stringToTerraform(struct.tdeWalletPassword),
time_stamp_for_point_in_time_recovery: cdktf.stringToTerraform(struct.timeStampForPointInTimeRecovery),
vault_id: cdktf.stringToTerraform(struct.vaultId),
db_backup_config: databaseDbHomeDatabaseDbBackupConfigToTerraform(struct.dbBackupConfig),
};
}
exports.databaseDbHomeDatabaseToTerraform = databaseDbHomeDatabaseToTerraform;
function databaseDbHomeDatabaseToHclTerraform(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 = {
admin_password: {
value: cdktf.stringToHclTerraform(struct.adminPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backup_id: {
value: cdktf.stringToHclTerraform(struct.backupId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backup_tde_password: {
value: cdktf.stringToHclTerraform(struct.backupTdePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
character_set: {
value: cdktf.stringToHclTerraform(struct.characterSet),
isBlock: false,
type: "simple",
storageClassType: "string",
},
database_id: {
value: cdktf.stringToHclTerraform(struct.databaseId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
database_software_image_id: {
value: cdktf.stringToHclTerraform(struct.databaseSoftwareImageId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
db_name: {
value: cdktf.stringToHclTerraform(struct.dbName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
db_workload: {
value: cdktf.stringToHclTerraform(struct.dbWorkload),
isBlock: false,
type: "simple",
storageClassType: "string",
},
defined_tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.definedTags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
freeform_tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.freeformTags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
key_store_id: {
value: cdktf.stringToHclTerraform(struct.keyStoreId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kms_key_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kms_key_version_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyVersionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ncharacter_set: {
value: cdktf.stringToHclTerraform(struct.ncharacterSet),
isBlock: false,
type: "simple",
storageClassType: "string",
},
pdb_name: {
value: cdktf.stringToHclTerraform(struct.pdbName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
pluggable_databases: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.pluggableDatabases),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
tde_wallet_password: {
value: cdktf.stringToHclTerraform(struct.tdeWalletPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
time_stamp_for_point_in_time_recovery: {
value: cdktf.stringToHclTerraform(struct.timeStampForPointInTimeRecovery),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vault_id: {
value: cdktf.stringToHclTerraform(struct.vaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
db_backup_config: {
value: databaseDbHomeDatabaseDbBackupConfigToHclTerraform(struct.dbBackupConfig),
isBlock: true,
type: "list",
storageClassType: "DatabaseDbHomeDatabaseDbBackupConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDbHomeDatabaseToHclTerraform = databaseDbHomeDatabaseToHclTerraform;
class DatabaseDbHomeDatabaseOutputReference 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;
// connection_strings - computed: true, optional: false, required: false
this._connectionStrings = new DatabaseDbHomeDatabaseConnectionStringsList(this, "connection_strings", false);
// db_backup_config - computed: false, optional: true, required: false
this._dbBackupConfig = new DatabaseDbHomeDatabaseDbBackupConfigOutputReference(this, "db_backup_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._adminPassword !== undefined) {
hasAnyValues = true;
internalValueResult.adminPassword = this._adminPassword;
}
if (this._backupId !== undefined) {
hasAnyValues = true;
internalValueResult.backupId = this._backupId;
}
if (this._backupTdePassword !== undefined) {
hasAnyValues = true;
internalValueResult.backupTdePassword = this._backupTdePassword;
}
if (this._characterSet !== undefined) {
hasAnyValues = true;
internalValueResult.characterSet = this._characterSet;
}
if (this._databaseId !== undefined) {
hasAnyValues = true;
internalValueResult.databaseId = this._databaseId;
}
if (this._databaseSoftwareImageId !== undefined) {
hasAnyValues = true;
internalValueResult.databaseSoftwareImageId = this._databaseSoftwareImageId;
}
if (this._dbName !== undefined) {
hasAnyValues = true;
internalValueResult.dbName = this._dbName;
}
if (this._dbWorkload !== undefined) {
hasAnyValues = true;
internalValueResult.dbWorkload = this._dbWorkload;
}
if (this._definedTags !== undefined) {
hasAnyValues = true;
internalValueResult.definedTags = this._definedTags;
}
if (this._freeformTags !== undefined) {
hasAnyValues = true;
internalValueResult.freeformTags = this._freeformTags;
}
if (this._keyStoreId !== undefined) {
hasAnyValues = true;
internalValueResult.keyStoreId = this._keyStoreId;
}
if (this._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
if (this._kmsKeyVersionId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyVersionId = this._kmsKeyVersionId;
}
if (this._ncharacterSet !== undefined) {
hasAnyValues = true;
internalValueResult.ncharacterSet = this._ncharacterSet;
}
if (this._pdbName !== undefined) {
hasAnyValues = true;
internalValueResult.pdbName = this._pdbName;
}
if (this._pluggableDatabases !== undefined) {
hasAnyValues = true;
internalValueResult.pluggableDatabases = this._pluggableDatabases;
}
if (this._tdeWalletPassword !== undefined) {
hasAnyValues = true;
internalValueResult.tdeWalletPassword = this._tdeWalletPassword;
}
if (this._timeStampForPointInTimeRecovery !== undefined) {
hasAnyValues = true;
internalValueResult.timeStampForPointInTimeRecovery = this._timeStampForPointInTimeRecovery;
}
if (this._vaultId !== undefined) {
hasAnyValues = true;
internalValueResult.vaultId = this._vaultId;
}
if (this._dbBackupConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.dbBackupConfig = this._dbBackupConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._adminPassword = undefined;
this._backupId = undefined;
this._backupTdePassword = undefined;
this._characterSet = undefined;
this._databaseId = undefined;
this._databaseSoftwareImageId = undefined;
this._dbName = undefined;
this._dbWorkload = undefined;
this._definedTags = undefined;
this._freeformTags = undefined;
this._keyStoreId = undefined;
this._kmsKeyId = undefined;
this._kmsKeyVersionId = undefined;
this._ncharacterSet = undefined;
this._pdbName = undefined;
this._pluggableDatabases = undefined;
this._tdeWalletPassword = undefined;
this._timeStampForPointInTimeRecovery = undefined;
this._vaultId = undefined;
this._dbBackupConfig.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._adminPassword = value.adminPassword;
this._backupId = value.backupId;
this._backupTdePassword = value.backupTdePassword;
this._characterSet = value.characterSet;
this._databaseId = value.databaseId;
this._databaseSoftwareImageId = value.databaseSoftwareImageId;
this._dbName = value.dbName;
this._dbWorkload = value.dbWorkload;
this._definedTags = value.definedTags;
this._freeformTags = value.freeformTags;
this._keyStoreId = value.keyStoreId;
this._kmsKeyId = value.kmsKeyId;
this._kmsKeyVersionId = value.kmsKeyVersionId;
this._ncharacterSet = value.ncharacterSet;
this._pdbName = value.pdbName;
this._pluggableDatabases = value.pluggableDatabases;
this._tdeWalletPassword = value.tdeWalletPassword;
this._timeStampForPointInTimeRecovery = value.timeStampForPointInTimeRecovery;
this._vaultId = value.vaultId;
this._dbBackupConfig.internalValue = value.dbBackupConfig;
}
}
get adminPassword() {
return this.getStringAttribute('admin_password');
}
set adminPassword(value) {
this._adminPassword = value;
}
// Temporarily expose input value. Use with caution.
get adminPasswordInput() {
return this._adminPassword;
}
get backupId() {
return this.getStringAttribute('backup_id');
}
set backupId(value) {
this._backupId = value;
}
resetBackupId() {
this._backupId = undefined;
}
// Temporarily expose input value. Use with caution.
get backupIdInput() {
return this._backupId;
}
get backupTdePassword() {
return this.getStringAttribute('backup_tde_password');
}
set backupTdePassword(value) {
this._backupTdePassword = value;
}
resetBackupTdePassword() {
this._backupTdePassword = undefined;
}
// Temporarily expose input value. Use with caution.
get backupTdePasswordInput() {
return this._backupTdePassword;
}
get characterSet() {
return this.getStringAttribute('character_set');
}
set characterSet(value) {
this._characterSet = value;
}
resetCharacterSet() {
this._characterSet = undefined;
}
// Temporarily expose input value. Use with caution.
get characterSetInput() {
return this._characterSet;
}
get connectionStrings() {
return this._connectionStrings;
}
get databaseId() {
return this.getStringAttribute('database_id');
}
set databaseId(value) {
this._databaseId = value;
}
resetDatabaseId() {
this._databaseId = undefined;
}
// Temporarily expose input value. Use with caution.
get databaseIdInput() {
return this._databaseId;
}
get databaseSoftwareImageId() {
return this.getStringAttribute('database_software_image_id');
}
set databaseSoftwareImageId(value) {
this._databaseSoftwareImageId = value;
}
resetDatabaseSoftwareImageId() {
this._databaseSoftwareImageId = undefined;
}
// Temporarily expose input value. Use with caution.
get databaseSoftwareImageIdInput() {
return this._databaseSoftwareImageId;
}
get dbName() {
return this.getStringAttribute('db_name');
}
set dbName(value) {
this._dbName = value;
}
resetDbName() {
this._dbName = undefined;
}
// Temporarily expose input value. Use with caution.
get dbNameInput() {
return this._dbName;
}
// db_unique_name - computed: true, optional: false, required: false
get dbUniqueName() {
return this.getStringAttribute('db_unique_name');
}
get dbWorkload() {
return this.getStringAttribute('db_workload');
}
set dbWorkload(value) {
this._dbWorkload = value;
}
resetDbWorkload() {
this._dbWorkload = undefined;
}
// Temporarily expose input value. Use with caution.
get dbWorkloadInput() {
return this._dbWorkload;
}
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 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;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
get keyStoreId() {
return this.getStringAttribute('key_store_id');
}
set keyStoreId(value) {
this._keyStoreId = value;
}
resetKeyStoreId() {
this._keyStoreId = undefined;
}
// Temporarily expose input value. Use with caution.
get keyStoreIdInput() {
return this._keyStoreId;
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
resetKmsKeyId() {
this._kmsKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
get kmsKeyVersionId() {
return this.getStringAttribute('kms_key_version_id');
}
set kmsKeyVersionId(value) {
this._kmsKeyVersionId = value;
}
resetKmsKeyVersionId() {
this._kmsKeyVersionId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyVersionIdInput() {
return this._kmsKeyVersionId;
}
// lifecycle_details - computed: true, optional: false, required: false
get lifecycleDetails() {
return this.getStringAttribute('lifecycle_details');
}
get ncharacterSet() {
return this.getStringAttribute('ncharacter_set');
}
set ncharacterSet(value) {
this._ncharacterSet = value;
}
resetNcharacterSet() {
this._ncharacterSet = undefined;
}
// Temporarily expose input value. Use with caution.
get ncharacterSetInput() {
return this._ncharacterSet;
}
// one_off_patches - computed: true, optional: false, required: false
get oneOffPatches() {
return this.getListAttribute('one_off_patches');
}
get pdbName() {
return this.getStringAttribute('pdb_name');
}
set pdbName(value) {
this._pdbName = value;
}
resetPdbName() {
this._pdbName = undefined;
}
// Temporarily expose input value. Use with caution.
get pdbNameInput() {
return this._pdbName;
}
get pluggableDatabases() {
return this.getListAttribute('pluggable_databases');
}
set pluggableDatabases(value) {
this._pluggableDatabases = value;
}
resetPluggableDatabases() {
this._pluggableDatabases = undefined;
}
// Temporarily expose input value. Use with caution.
get pluggableDatabasesInput() {
return this._pluggableDatabases;
}
// sid_prefix - computed: true, optional: false, required: false
get sidPrefix() {
return this.getStringAttribute('sid_prefix');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
get tdeWalletPassword() {
return this.getStringAttribute('tde_wallet_password');
}
set tdeWalletPassword(value) {
this._tdeWalletPassword = value;
}
resetTdeWalletPassword() {
this._tdeWalletPassword = undefined;
}
// Temporarily expose input value. Use with caution.
get tdeWalletPasswordInput() {
return this._tdeWalletPassword;
}
// time_created - computed: true, optional: false, required: false
get timeCreated() {
return this.getStringAttribute('time_created');
}
get timeStampForPointInTimeRecovery() {
return this.getStringAttribute('time_stamp_for_point_in_time_recovery');
}
set timeStampForPointInTimeRecovery(value) {
this._timeStampForPointInTimeRecovery = value;
}
resetTimeStampForPointInTimeRecovery() {
this._timeStampForPointInTimeRecovery = undefined;
}
// Temporarily expose input value. Use with caution.
get timeStampForPointInTimeRecoveryInput() {
return this._timeStampForPointInTimeRecovery;
}
get vaultId() {
return this.getStringAttribute('vault_id');
}
set vaultId(value) {
this._vaultId = value;
}
resetVaultId() {
this._vaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get vaultIdInput() {
return this._vaultId;
}
get dbBackupConfig() {
return this._dbBackupConfig;
}
putDbBackupConfig(value) {
this._dbBackupConfig.internalValue = value;
}
resetDbBackupConfig() {
this._dbBackupConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get dbBackupConfigInput() {
return this._dbBackupConfig.internalValue;
}
}
exports.DatabaseDbHomeDatabaseOutputReference = DatabaseDbHomeDatabaseOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeDatabaseOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseDbHome.DatabaseDbHomeDatabaseOutputReference", version: "1.0.0" };
function databaseDbHomeTimeoutsToTerraform(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.databaseDbHomeTimeoutsToTerraform = databaseDbHomeTimeoutsToTerraform;
function databaseDbHomeTimeoutsToHclTerraform(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.databaseDbHomeTimeoutsToHclTerraform = databaseDbHomeTimeoutsToHclTerraform;
class DatabaseDbHomeTimeoutsOutputReference 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.DatabaseDbHomeTimeoutsOutputReference = DatabaseDbHomeTimeoutsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatabaseDbHomeTimeoutsOutputReference[_g] = { fqn: "