UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,212 lines 290 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; Object.defineProperty(exports, "__esModule", { value: true }); exports.PsqlDbSystem = exports.PsqlDbSystemTimeoutsOutputReference = exports.psqlDbSystemTimeoutsToHclTerraform = exports.psqlDbSystemTimeoutsToTerraform = exports.PsqlDbSystemStorageDetailsOutputReference = exports.psqlDbSystemStorageDetailsToHclTerraform = exports.psqlDbSystemStorageDetailsToTerraform = exports.PsqlDbSystemSourceOutputReference = exports.psqlDbSystemSourceToHclTerraform = exports.psqlDbSystemSourceToTerraform = exports.PsqlDbSystemPatchOperationsList = exports.PsqlDbSystemPatchOperationsOutputReference = exports.psqlDbSystemPatchOperationsToHclTerraform = exports.psqlDbSystemPatchOperationsToTerraform = exports.PsqlDbSystemNetworkDetailsOutputReference = exports.psqlDbSystemNetworkDetailsToHclTerraform = exports.psqlDbSystemNetworkDetailsToTerraform = exports.PsqlDbSystemManagementPolicyOutputReference = exports.psqlDbSystemManagementPolicyToHclTerraform = exports.psqlDbSystemManagementPolicyToTerraform = exports.PsqlDbSystemManagementPolicyBackupPolicyOutputReference = exports.psqlDbSystemManagementPolicyBackupPolicyToHclTerraform = exports.psqlDbSystemManagementPolicyBackupPolicyToTerraform = exports.PsqlDbSystemInstancesDetailsList = exports.PsqlDbSystemInstancesDetailsOutputReference = exports.psqlDbSystemInstancesDetailsToHclTerraform = exports.psqlDbSystemInstancesDetailsToTerraform = exports.PsqlDbSystemCredentialsOutputReference = exports.psqlDbSystemCredentialsToHclTerraform = exports.psqlDbSystemCredentialsToTerraform = exports.PsqlDbSystemCredentialsPasswordDetailsOutputReference = exports.psqlDbSystemCredentialsPasswordDetailsToHclTerraform = exports.psqlDbSystemCredentialsPasswordDetailsToTerraform = exports.PsqlDbSystemInstancesList = exports.PsqlDbSystemInstancesOutputReference = exports.psqlDbSystemInstancesToHclTerraform = exports.psqlDbSystemInstancesToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function psqlDbSystemInstancesToTerraform(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.psqlDbSystemInstancesToTerraform = psqlDbSystemInstancesToTerraform; function psqlDbSystemInstancesToHclTerraform(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.psqlDbSystemInstancesToHclTerraform = psqlDbSystemInstancesToHclTerraform; class PsqlDbSystemInstancesOutputReference 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; } } // availability_domain - computed: true, optional: false, required: false get availabilityDomain() { return this.getStringAttribute('availability_domain'); } // 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'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // 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'); } // time_updated - computed: true, optional: false, required: false get timeUpdated() { return this.getStringAttribute('time_updated'); } } exports.PsqlDbSystemInstancesOutputReference = PsqlDbSystemInstancesOutputReference; _a = JSII_RTTI_SYMBOL_1; PsqlDbSystemInstancesOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemInstancesOutputReference", version: "1.0.0" }; class PsqlDbSystemInstancesList 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 PsqlDbSystemInstancesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PsqlDbSystemInstancesList = PsqlDbSystemInstancesList; _b = JSII_RTTI_SYMBOL_1; PsqlDbSystemInstancesList[_b] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemInstancesList", version: "1.0.0" }; function psqlDbSystemCredentialsPasswordDetailsToTerraform(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), password_type: cdktf.stringToTerraform(struct.passwordType), secret_id: cdktf.stringToTerraform(struct.secretId), secret_version: cdktf.stringToTerraform(struct.secretVersion), }; } exports.psqlDbSystemCredentialsPasswordDetailsToTerraform = psqlDbSystemCredentialsPasswordDetailsToTerraform; function psqlDbSystemCredentialsPasswordDetailsToHclTerraform(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", }, password_type: { value: cdktf.stringToHclTerraform(struct.passwordType), isBlock: false, type: "simple", storageClassType: "string", }, secret_id: { value: cdktf.stringToHclTerraform(struct.secretId), isBlock: false, type: "simple", storageClassType: "string", }, secret_version: { value: cdktf.stringToHclTerraform(struct.secretVersion), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemCredentialsPasswordDetailsToHclTerraform = psqlDbSystemCredentialsPasswordDetailsToHclTerraform; class PsqlDbSystemCredentialsPasswordDetailsOutputReference 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._passwordType !== undefined) { hasAnyValues = true; internalValueResult.passwordType = this._passwordType; } if (this._secretId !== undefined) { hasAnyValues = true; internalValueResult.secretId = this._secretId; } if (this._secretVersion !== undefined) { hasAnyValues = true; internalValueResult.secretVersion = this._secretVersion; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._passwordType = undefined; this._secretId = undefined; this._secretVersion = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._passwordType = value.passwordType; this._secretId = value.secretId; this._secretVersion = value.secretVersion; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } resetPassword() { this._password = undefined; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get passwordType() { return this.getStringAttribute('password_type'); } set passwordType(value) { this._passwordType = value; } // Temporarily expose input value. Use with caution. get passwordTypeInput() { return this._passwordType; } get secretId() { return this.getStringAttribute('secret_id'); } set secretId(value) { this._secretId = value; } resetSecretId() { this._secretId = undefined; } // Temporarily expose input value. Use with caution. get secretIdInput() { return this._secretId; } get secretVersion() { return this.getStringAttribute('secret_version'); } set secretVersion(value) { this._secretVersion = value; } resetSecretVersion() { this._secretVersion = undefined; } // Temporarily expose input value. Use with caution. get secretVersionInput() { return this._secretVersion; } } exports.PsqlDbSystemCredentialsPasswordDetailsOutputReference = PsqlDbSystemCredentialsPasswordDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; PsqlDbSystemCredentialsPasswordDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemCredentialsPasswordDetailsOutputReference", version: "1.0.0" }; function psqlDbSystemCredentialsToTerraform(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 { username: cdktf.stringToTerraform(struct.username), password_details: psqlDbSystemCredentialsPasswordDetailsToTerraform(struct.passwordDetails), }; } exports.psqlDbSystemCredentialsToTerraform = psqlDbSystemCredentialsToTerraform; function psqlDbSystemCredentialsToHclTerraform(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 = { username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, password_details: { value: psqlDbSystemCredentialsPasswordDetailsToHclTerraform(struct.passwordDetails), isBlock: true, type: "list", storageClassType: "PsqlDbSystemCredentialsPasswordDetailsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemCredentialsToHclTerraform = psqlDbSystemCredentialsToHclTerraform; class PsqlDbSystemCredentialsOutputReference 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; // password_details - computed: false, optional: false, required: true this._passwordDetails = new PsqlDbSystemCredentialsPasswordDetailsOutputReference(this, "password_details"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } if (this._passwordDetails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.passwordDetails = this._passwordDetails?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._username = undefined; this._passwordDetails.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._username = value.username; this._passwordDetails.internalValue = value.passwordDetails; } } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } get passwordDetails() { return this._passwordDetails; } putPasswordDetails(value) { this._passwordDetails.internalValue = value; } // Temporarily expose input value. Use with caution. get passwordDetailsInput() { return this._passwordDetails.internalValue; } } exports.PsqlDbSystemCredentialsOutputReference = PsqlDbSystemCredentialsOutputReference; _d = JSII_RTTI_SYMBOL_1; PsqlDbSystemCredentialsOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemCredentialsOutputReference", version: "1.0.0" }; function psqlDbSystemInstancesDetailsToTerraform(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 { description: cdktf.stringToTerraform(struct.description), display_name: cdktf.stringToTerraform(struct.displayName), private_ip: cdktf.stringToTerraform(struct.privateIp), }; } exports.psqlDbSystemInstancesDetailsToTerraform = psqlDbSystemInstancesDetailsToTerraform; function psqlDbSystemInstancesDetailsToHclTerraform(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 = { description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, private_ip: { value: cdktf.stringToHclTerraform(struct.privateIp), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemInstancesDetailsToHclTerraform = psqlDbSystemInstancesDetailsToHclTerraform; class PsqlDbSystemInstancesDetailsOutputReference 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._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } if (this._privateIp !== undefined) { hasAnyValues = true; internalValueResult.privateIp = this._privateIp; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._description = undefined; this._displayName = undefined; this._privateIp = 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._description = value.description; this._displayName = value.displayName; this._privateIp = value.privateIp; } } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get privateIp() { return this.getStringAttribute('private_ip'); } set privateIp(value) { this._privateIp = value; } resetPrivateIp() { this._privateIp = undefined; } // Temporarily expose input value. Use with caution. get privateIpInput() { return this._privateIp; } } exports.PsqlDbSystemInstancesDetailsOutputReference = PsqlDbSystemInstancesDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; PsqlDbSystemInstancesDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemInstancesDetailsOutputReference", version: "1.0.0" }; class PsqlDbSystemInstancesDetailsList 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 PsqlDbSystemInstancesDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PsqlDbSystemInstancesDetailsList = PsqlDbSystemInstancesDetailsList; _f = JSII_RTTI_SYMBOL_1; PsqlDbSystemInstancesDetailsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemInstancesDetailsList", version: "1.0.0" }; function psqlDbSystemManagementPolicyBackupPolicyToTerraform(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 { backup_start: cdktf.stringToTerraform(struct.backupStart), days_of_the_month: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.daysOfTheMonth), days_of_the_week: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.daysOfTheWeek), kind: cdktf.stringToTerraform(struct.kind), retention_days: cdktf.numberToTerraform(struct.retentionDays), }; } exports.psqlDbSystemManagementPolicyBackupPolicyToTerraform = psqlDbSystemManagementPolicyBackupPolicyToTerraform; function psqlDbSystemManagementPolicyBackupPolicyToHclTerraform(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 = { backup_start: { value: cdktf.stringToHclTerraform(struct.backupStart), isBlock: false, type: "simple", storageClassType: "string", }, days_of_the_month: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.daysOfTheMonth), isBlock: false, type: "list", storageClassType: "numberList", }, days_of_the_week: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.daysOfTheWeek), isBlock: false, type: "list", storageClassType: "stringList", }, kind: { value: cdktf.stringToHclTerraform(struct.kind), isBlock: false, type: "simple", storageClassType: "string", }, retention_days: { value: cdktf.numberToHclTerraform(struct.retentionDays), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemManagementPolicyBackupPolicyToHclTerraform = psqlDbSystemManagementPolicyBackupPolicyToHclTerraform; class PsqlDbSystemManagementPolicyBackupPolicyOutputReference 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._backupStart !== undefined) { hasAnyValues = true; internalValueResult.backupStart = this._backupStart; } if (this._daysOfTheMonth !== undefined) { hasAnyValues = true; internalValueResult.daysOfTheMonth = this._daysOfTheMonth; } if (this._daysOfTheWeek !== undefined) { hasAnyValues = true; internalValueResult.daysOfTheWeek = this._daysOfTheWeek; } if (this._kind !== undefined) { hasAnyValues = true; internalValueResult.kind = this._kind; } if (this._retentionDays !== undefined) { hasAnyValues = true; internalValueResult.retentionDays = this._retentionDays; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._backupStart = undefined; this._daysOfTheMonth = undefined; this._daysOfTheWeek = undefined; this._kind = undefined; this._retentionDays = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._backupStart = value.backupStart; this._daysOfTheMonth = value.daysOfTheMonth; this._daysOfTheWeek = value.daysOfTheWeek; this._kind = value.kind; this._retentionDays = value.retentionDays; } } get backupStart() { return this.getStringAttribute('backup_start'); } set backupStart(value) { this._backupStart = value; } resetBackupStart() { this._backupStart = undefined; } // Temporarily expose input value. Use with caution. get backupStartInput() { return this._backupStart; } get daysOfTheMonth() { return this.getNumberListAttribute('days_of_the_month'); } set daysOfTheMonth(value) { this._daysOfTheMonth = value; } resetDaysOfTheMonth() { this._daysOfTheMonth = undefined; } // Temporarily expose input value. Use with caution. get daysOfTheMonthInput() { return this._daysOfTheMonth; } get daysOfTheWeek() { return this.getListAttribute('days_of_the_week'); } set daysOfTheWeek(value) { this._daysOfTheWeek = value; } resetDaysOfTheWeek() { this._daysOfTheWeek = undefined; } // Temporarily expose input value. Use with caution. get daysOfTheWeekInput() { return this._daysOfTheWeek; } get kind() { return this.getStringAttribute('kind'); } set kind(value) { this._kind = value; } resetKind() { this._kind = undefined; } // Temporarily expose input value. Use with caution. get kindInput() { return this._kind; } get retentionDays() { return this.getNumberAttribute('retention_days'); } set retentionDays(value) { this._retentionDays = value; } resetRetentionDays() { this._retentionDays = undefined; } // Temporarily expose input value. Use with caution. get retentionDaysInput() { return this._retentionDays; } } exports.PsqlDbSystemManagementPolicyBackupPolicyOutputReference = PsqlDbSystemManagementPolicyBackupPolicyOutputReference; _g = JSII_RTTI_SYMBOL_1; PsqlDbSystemManagementPolicyBackupPolicyOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemManagementPolicyBackupPolicyOutputReference", version: "1.0.0" }; function psqlDbSystemManagementPolicyToTerraform(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 { maintenance_window_start: cdktf.stringToTerraform(struct.maintenanceWindowStart), backup_policy: psqlDbSystemManagementPolicyBackupPolicyToTerraform(struct.backupPolicy), }; } exports.psqlDbSystemManagementPolicyToTerraform = psqlDbSystemManagementPolicyToTerraform; function psqlDbSystemManagementPolicyToHclTerraform(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 = { maintenance_window_start: { value: cdktf.stringToHclTerraform(struct.maintenanceWindowStart), isBlock: false, type: "simple", storageClassType: "string", }, backup_policy: { value: psqlDbSystemManagementPolicyBackupPolicyToHclTerraform(struct.backupPolicy), isBlock: true, type: "list", storageClassType: "PsqlDbSystemManagementPolicyBackupPolicyList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemManagementPolicyToHclTerraform = psqlDbSystemManagementPolicyToHclTerraform; class PsqlDbSystemManagementPolicyOutputReference 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_policy - computed: false, optional: true, required: false this._backupPolicy = new PsqlDbSystemManagementPolicyBackupPolicyOutputReference(this, "backup_policy"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._maintenanceWindowStart !== undefined) { hasAnyValues = true; internalValueResult.maintenanceWindowStart = this._maintenanceWindowStart; } if (this._backupPolicy?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.backupPolicy = this._backupPolicy?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._maintenanceWindowStart = undefined; this._backupPolicy.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maintenanceWindowStart = value.maintenanceWindowStart; this._backupPolicy.internalValue = value.backupPolicy; } } get maintenanceWindowStart() { return this.getStringAttribute('maintenance_window_start'); } set maintenanceWindowStart(value) { this._maintenanceWindowStart = value; } resetMaintenanceWindowStart() { this._maintenanceWindowStart = undefined; } // Temporarily expose input value. Use with caution. get maintenanceWindowStartInput() { return this._maintenanceWindowStart; } get backupPolicy() { return this._backupPolicy; } putBackupPolicy(value) { this._backupPolicy.internalValue = value; } resetBackupPolicy() { this._backupPolicy.internalValue = undefined; } // Temporarily expose input value. Use with caution. get backupPolicyInput() { return this._backupPolicy.internalValue; } } exports.PsqlDbSystemManagementPolicyOutputReference = PsqlDbSystemManagementPolicyOutputReference; _h = JSII_RTTI_SYMBOL_1; PsqlDbSystemManagementPolicyOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemManagementPolicyOutputReference", version: "1.0.0" }; function psqlDbSystemNetworkDetailsToTerraform(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 { nsg_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.nsgIds), primary_db_endpoint_private_ip: cdktf.stringToTerraform(struct.primaryDbEndpointPrivateIp), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.psqlDbSystemNetworkDetailsToTerraform = psqlDbSystemNetworkDetailsToTerraform; function psqlDbSystemNetworkDetailsToHclTerraform(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 = { nsg_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.nsgIds), isBlock: false, type: "set", storageClassType: "stringList", }, primary_db_endpoint_private_ip: { value: cdktf.stringToHclTerraform(struct.primaryDbEndpointPrivateIp), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemNetworkDetailsToHclTerraform = psqlDbSystemNetworkDetailsToHclTerraform; class PsqlDbSystemNetworkDetailsOutputReference 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._nsgIds !== undefined) { hasAnyValues = true; internalValueResult.nsgIds = this._nsgIds; } if (this._primaryDbEndpointPrivateIp !== undefined) { hasAnyValues = true; internalValueResult.primaryDbEndpointPrivateIp = this._primaryDbEndpointPrivateIp; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._nsgIds = undefined; this._primaryDbEndpointPrivateIp = undefined; this._subnetId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._nsgIds = value.nsgIds; this._primaryDbEndpointPrivateIp = value.primaryDbEndpointPrivateIp; this._subnetId = value.subnetId; } } get nsgIds() { return cdktf.Fn.tolist(this.getListAttribute('nsg_ids')); } set nsgIds(value) { this._nsgIds = value; } resetNsgIds() { this._nsgIds = undefined; } // Temporarily expose input value. Use with caution. get nsgIdsInput() { return this._nsgIds; } get primaryDbEndpointPrivateIp() { return this.getStringAttribute('primary_db_endpoint_private_ip'); } set primaryDbEndpointPrivateIp(value) { this._primaryDbEndpointPrivateIp = value; } resetPrimaryDbEndpointPrivateIp() { this._primaryDbEndpointPrivateIp = undefined; } // Temporarily expose input value. Use with caution. get primaryDbEndpointPrivateIpInput() { return this._primaryDbEndpointPrivateIp; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.PsqlDbSystemNetworkDetailsOutputReference = PsqlDbSystemNetworkDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; PsqlDbSystemNetworkDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemNetworkDetailsOutputReference", version: "1.0.0" }; function psqlDbSystemPatchOperationsToTerraform(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 { from: cdktf.stringToTerraform(struct.from), operation: cdktf.stringToTerraform(struct.operation), position: cdktf.stringToTerraform(struct.position), selected_item: cdktf.stringToTerraform(struct.selectedItem), selection: cdktf.stringToTerraform(struct.selection), value: cdktf.hashMapper(cdktf.stringToTerraform)(struct.value), }; } exports.psqlDbSystemPatchOperationsToTerraform = psqlDbSystemPatchOperationsToTerraform; function psqlDbSystemPatchOperationsToHclTerraform(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 = { from: { value: cdktf.stringToHclTerraform(struct.from), isBlock: false, type: "simple", storageClassType: "string", }, operation: { value: cdktf.stringToHclTerraform(struct.operation), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.stringToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "string", }, selected_item: { value: cdktf.stringToHclTerraform(struct.selectedItem), isBlock: false, type: "simple", storageClassType: "string", }, selection: { value: cdktf.stringToHclTerraform(struct.selection), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.value), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemPatchOperationsToHclTerraform = psqlDbSystemPatchOperationsToHclTerraform; class PsqlDbSystemPatchOperationsOutputReference 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._from !== undefined) { hasAnyValues = true; internalValueResult.from = this._from; } if (this._operation !== undefined) { hasAnyValues = true; internalValueResult.operation = this._operation; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._selectedItem !== undefined) { hasAnyValues = true; internalValueResult.selectedItem = this._selectedItem; } if (this._selection !== undefined) { hasAnyValues = true; internalValueResult.selection = this._selection; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._from = undefined; this._operation = undefined; this._position = undefined; this._selectedItem = undefined; this._selection = undefined; this._value = 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._from = value.from; this._operation = value.operation; this._position = value.position; this._selectedItem = value.selectedItem; this._selection = value.selection; this._value = value.value; } } get from() { return this.getStringAttribute('from'); } set from(value) { this._from = value; } resetFrom() { this._from = undefined; } // Temporarily expose input value. Use with caution. get fromInput() { return this._from; } get operation() { return this.getStringAttribute('operation'); } set operation(value) { this._operation = value; } // Temporarily expose input value. Use with caution. get operationInput() { return this._operation; } get position() { return this.getStringAttribute('position'); } set position(value) { this._position = value; } resetPosition() { this._position = undefined; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get selectedItem() { return this.getStringAttribute('selected_item'); } set selectedItem(value) { this._selectedItem = value; } resetSelectedItem() { this._selectedItem = undefined; } // Temporarily expose input value. Use with caution. get selectedItemInput() { return this._selectedItem; } get selection() { return this.getStringAttribute('selection'); } set selection(value) { this._selection = value; } // Temporarily expose input value. Use with caution. get selectionInput() { return this._selection; } get value() { return this.getStringMapAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.PsqlDbSystemPatchOperationsOutputReference = PsqlDbSystemPatchOperationsOutputReference; _k = JSII_RTTI_SYMBOL_1; PsqlDbSystemPatchOperationsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemPatchOperationsOutputReference", version: "1.0.0" }; class PsqlDbSystemPatchOperationsList 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 PsqlDbSystemPatchOperationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PsqlDbSystemPatchOperationsList = PsqlDbSystemPatchOperationsList; _l = JSII_RTTI_SYMBOL_1; PsqlDbSystemPatchOperationsList[_l] = { fqn: "rhizo-co-terraform-provider-oci.psqlDbSystem.PsqlDbSystemPatchOperationsList", version: "1.0.0" }; function psqlDbSystemSourceToTerraform(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 { backup_id: cdktf.stringToTerraform(struct.backupId), is_having_restore_config_overrides: cdktf.booleanToTerraform(struct.isHavingRestoreConfigOverrides), source_type: cdktf.stringToTerraform(struct.sourceType), }; } exports.psqlDbSystemSourceToTerraform = psqlDbSystemSourceToTerraform; function psqlDbSystemSourceToHclTerraform(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 = { backup_id: { value: cdktf.stringToHclTerraform(struct.backupId), isBlock: false, type: "simple", storageClassType: "string", }, is_having_restore_config_overrides: { value: cdktf.booleanToHclTerraform(struct.isHavingRestoreConfigOverrides), isBlock: false, type: "simple", storageClassType: "boolean", }, source_type: { value: cdktf.stringToHclTerraform(struct.sourceType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.psqlDbSystemSourceToHclTerraform = psqlDbSystemSourceToHclTerraform; class PsqlDbSystemSourceOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute)