rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,086 lines • 262 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseDatabase = exports.DatabaseDatabaseTimeoutsOutputReference = exports.databaseDatabaseTimeoutsToHclTerraform = exports.databaseDatabaseTimeoutsToTerraform = exports.DatabaseDatabaseDatabaseOutputReference = exports.databaseDatabaseDatabaseToHclTerraform = exports.databaseDatabaseDatabaseToTerraform = exports.DatabaseDatabaseDatabaseDbBackupConfigOutputReference = exports.databaseDatabaseDatabaseDbBackupConfigToHclTerraform = exports.databaseDatabaseDatabaseDbBackupConfigToTerraform = exports.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList = exports.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = exports.databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = exports.databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = exports.DatabaseDatabaseDbBackupConfigList = exports.DatabaseDatabaseDbBackupConfigOutputReference = exports.databaseDatabaseDbBackupConfigToHclTerraform = exports.databaseDatabaseDbBackupConfigToTerraform = exports.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList = exports.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = exports.databaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = exports.databaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = exports.DatabaseDatabaseDatabaseManagementConfigList = exports.DatabaseDatabaseDatabaseManagementConfigOutputReference = exports.databaseDatabaseDatabaseManagementConfigToHclTerraform = exports.databaseDatabaseDatabaseManagementConfigToTerraform = exports.DatabaseDatabaseConnectionStringsList = exports.DatabaseDatabaseConnectionStringsOutputReference = exports.databaseDatabaseConnectionStringsToHclTerraform = exports.databaseDatabaseConnectionStringsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databaseDatabaseConnectionStringsToTerraform(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.databaseDatabaseConnectionStringsToTerraform = databaseDatabaseConnectionStringsToTerraform;
function databaseDatabaseConnectionStringsToHclTerraform(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.databaseDatabaseConnectionStringsToHclTerraform = databaseDatabaseConnectionStringsToHclTerraform;
class DatabaseDatabaseConnectionStringsOutputReference 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.DatabaseDatabaseConnectionStringsOutputReference = DatabaseDatabaseConnectionStringsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseConnectionStringsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseConnectionStringsOutputReference", version: "1.0.0" };
class DatabaseDatabaseConnectionStringsList 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 DatabaseDatabaseConnectionStringsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDatabaseConnectionStringsList = DatabaseDatabaseConnectionStringsList;
_b = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseConnectionStringsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseConnectionStringsList", version: "1.0.0" };
function databaseDatabaseDatabaseManagementConfigToTerraform(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.databaseDatabaseDatabaseManagementConfigToTerraform = databaseDatabaseDatabaseManagementConfigToTerraform;
function databaseDatabaseDatabaseManagementConfigToHclTerraform(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.databaseDatabaseDatabaseManagementConfigToHclTerraform = databaseDatabaseDatabaseManagementConfigToHclTerraform;
class DatabaseDatabaseDatabaseManagementConfigOutputReference 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;
}
}
// management_status - computed: true, optional: false, required: false
get managementStatus() {
return this.getStringAttribute('management_status');
}
// management_type - computed: true, optional: false, required: false
get managementType() {
return this.getStringAttribute('management_type');
}
}
exports.DatabaseDatabaseDatabaseManagementConfigOutputReference = DatabaseDatabaseDatabaseManagementConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDatabaseManagementConfigOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDatabaseManagementConfigOutputReference", version: "1.0.0" };
class DatabaseDatabaseDatabaseManagementConfigList 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 DatabaseDatabaseDatabaseManagementConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDatabaseDatabaseManagementConfigList = DatabaseDatabaseDatabaseManagementConfigList;
_d = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDatabaseManagementConfigList[_d] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDatabaseManagementConfigList", version: "1.0.0" };
function databaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform(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.databaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = databaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform;
function databaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform(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.databaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = databaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform;
class DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference 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;
}
}
// dbrs_policy_id - computed: true, optional: false, required: false
get dbrsPolicyId() {
return this.getStringAttribute('dbrs_policy_id');
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
// vpc_user - computed: true, optional: false, required: false
get vpcUser() {
return this.getStringAttribute('vpc_user');
}
}
exports.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference", version: "1.0.0" };
class DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList 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 DatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList = DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList;
_f = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList", version: "1.0.0" };
function databaseDatabaseDbBackupConfigToTerraform(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.databaseDatabaseDbBackupConfigToTerraform = databaseDatabaseDbBackupConfigToTerraform;
function databaseDatabaseDbBackupConfigToHclTerraform(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.databaseDatabaseDbBackupConfigToHclTerraform = databaseDatabaseDbBackupConfigToHclTerraform;
class DatabaseDatabaseDbBackupConfigOutputReference 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;
// backup_destination_details - computed: true, optional: false, required: false
this._backupDestinationDetails = new DatabaseDatabaseDbBackupConfigBackupDestinationDetailsList(this, "backup_destination_details", 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;
}
}
// auto_backup_enabled - computed: true, optional: false, required: false
get autoBackupEnabled() {
return this.getBooleanAttribute('auto_backup_enabled');
}
// auto_backup_window - computed: true, optional: false, required: false
get autoBackupWindow() {
return this.getStringAttribute('auto_backup_window');
}
// auto_full_backup_day - computed: true, optional: false, required: false
get autoFullBackupDay() {
return this.getStringAttribute('auto_full_backup_day');
}
// auto_full_backup_window - computed: true, optional: false, required: false
get autoFullBackupWindow() {
return this.getStringAttribute('auto_full_backup_window');
}
// backup_deletion_policy - computed: true, optional: false, required: false
get backupDeletionPolicy() {
return this.getStringAttribute('backup_deletion_policy');
}
get backupDestinationDetails() {
return this._backupDestinationDetails;
}
// recovery_window_in_days - computed: true, optional: false, required: false
get recoveryWindowInDays() {
return this.getNumberAttribute('recovery_window_in_days');
}
// run_immediate_full_backup - computed: true, optional: false, required: false
get runImmediateFullBackup() {
return this.getBooleanAttribute('run_immediate_full_backup');
}
}
exports.DatabaseDatabaseDbBackupConfigOutputReference = DatabaseDatabaseDbBackupConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDbBackupConfigOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDbBackupConfigOutputReference", version: "1.0.0" };
class DatabaseDatabaseDbBackupConfigList 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 DatabaseDatabaseDbBackupConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDatabaseDbBackupConfigList = DatabaseDatabaseDbBackupConfigList;
_h = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDbBackupConfigList[_h] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDbBackupConfigList", version: "1.0.0" };
function databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform(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),
vpc_user: cdktf.stringToTerraform(struct.vpcUser),
};
}
exports.databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform = databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform;
function databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform(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",
},
vpc_user: {
value: cdktf.stringToHclTerraform(struct.vpcUser),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform = databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform;
class DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference 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;
}
if (this._vpcUser !== undefined) {
hasAnyValues = true;
internalValueResult.vpcUser = this._vpcUser;
}
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;
this._vpcUser = 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;
this._vpcUser = value.vpcUser;
}
}
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;
}
get vpcUser() {
return this.getStringAttribute('vpc_user');
}
set vpcUser(value) {
this._vpcUser = value;
}
resetVpcUser() {
this._vpcUser = undefined;
}
// Temporarily expose input value. Use with caution.
get vpcUserInput() {
return this._vpcUser;
}
}
exports.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference = DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference", version: "1.0.0" };
class DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList 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 DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList = DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList;
_k = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList", version: "1.0.0" };
function databaseDatabaseDatabaseDbBackupConfigToTerraform(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(databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToTerraform, true)(struct.backupDestinationDetails),
};
}
exports.databaseDatabaseDatabaseDbBackupConfigToTerraform = databaseDatabaseDatabaseDbBackupConfigToTerraform;
function databaseDatabaseDatabaseDbBackupConfigToHclTerraform(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(databaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsToHclTerraform, true)(struct.backupDestinationDetails),
isBlock: true,
type: "list",
storageClassType: "DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDatabaseDatabaseDbBackupConfigToHclTerraform = databaseDatabaseDatabaseDbBackupConfigToHclTerraform;
class DatabaseDatabaseDatabaseDbBackupConfigOutputReference 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 DatabaseDatabaseDatabaseDbBackupConfigBackupDestinationDetailsList(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.DatabaseDatabaseDatabaseDbBackupConfigOutputReference = DatabaseDatabaseDatabaseDbBackupConfigOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DatabaseDatabaseDatabaseDbBackupConfigOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.databaseDatabase.DatabaseDatabaseDatabaseDbBackupConfigOutputReference", version: "1.0.0" };
function databaseDatabaseDatabaseToTerraform(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_software_image_id: cdktf.stringToTerraform(struct.databaseSoftwareImageId),
db_name: cdktf.stringToTerraform(struct.dbName),
db_unique_name: cdktf.stringToTerraform(struct.dbUniqueName),
db_workload: cdktf.stringToTerraform(struct.dbWorkload),
defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.definedTags),
freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.freeformTags),
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),
sid_prefix: cdktf.stringToTerraform(struct.sidPrefix),
tde_wallet_password: cdktf.stringToTerraform(struct.tdeWalletPassword),
vault_id: cdktf.stringToTerraform(struct.vaultId),
db_backup_config: databaseDatabaseDatabaseDbBackupConfigToTerraform(struct.dbBackupConfig),
};
}
exports.databaseDatabaseDatabaseToTerraform = databaseDatabaseDatabaseToTerraform;
function databaseDatabaseDatabaseToHclTerraform(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_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_unique_name: {
value: cdktf.stringToHclTerraform(struct.dbUniqueName),
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",
},
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",
},
sid_prefix: {
value: cdktf.stringToHclTerraform(struct.sidPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tde_wallet_password: {
value: cdktf.stringToHclTerraform(struct.tdeWalletPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vault_id: {
value: cdktf.stringToHclTerraform(struct.vaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
db_backup_config: {
value: databaseDatabaseDatabaseDbBackupConfigToHclTerraform(struct.dbBackupConfig),
isBlock: true,
type: "list",
storageClassType: "DatabaseDatabaseDatabaseDbBackupConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databaseDatabaseDatabaseToHclTerraform = databaseDatabaseDatabaseToHclTerraform;
class DatabaseDatabaseDatabaseOutputReference 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;
// db_backup_config - computed: false, optional: true, required: false
this._dbBackupConfig = new DatabaseDatabaseDatabaseDbBackupConfigOutputReference(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._databaseSoftwareImageId !== undefined) {
hasAnyValues = true;
internalValueResult.databaseSoftwareImageId = this._databaseSoftwareImageId;
}
if (this._dbName !== undefined) {
hasAnyValues = true;
internalValueResult.dbName = this._dbName;
}
if (this._dbUniqueName !== undefined) {
hasAnyValues = true;
internalValueResult.dbUniqueName = this._dbUniqueName;
}
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._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._sidPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.sidPrefix = this._sidPrefix;
}
if (this._tdeWalletPassword !== undefined) {
hasAnyValues = true;
internalValueResult.tdeWalletPassword = this._tdeWalletPassword;
}
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._databaseSoftwareImageId = undefined;
this._dbName = undefined;
this._dbUniqueName = undefined;
this._dbWorkload = undefined;
this._definedTags = undefined;
this._freeformTags = undefined;
this._kmsKeyId = undefined;
this._kmsKeyVersionId = undefined;
this._ncharacterSet = undefined;
this._pdbName = undefined;
this._pluggableDatabases = undefined;
this._sidPrefix = undefined;
this._tdeWalletPassword = 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._databaseSoftwareImageId = value.databaseSoftwareImage