rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,025 lines (1,024 loc) • 337 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.GloballyDistributedDatabaseShardedDatabase = exports.GloballyDistributedDatabaseShardedDatabaseTimeoutsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseTimeoutsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseTimeoutsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseShardDetailsList = exports.GloballyDistributedDatabaseShardedDatabaseShardDetailsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseShardDetailsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseShardDetailsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToTerraform = exports.GloballyDistributedDatabaseShardedDatabasePatchOperationsList = exports.GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference = exports.globallyDistributedDatabaseShardedDatabasePatchOperationsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabasePatchOperationsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList = exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseGsmsList = exports.GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseGsmsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseGsmsToTerraform = exports.GloballyDistributedDatabaseShardedDatabaseConnectionStringsList = exports.GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference = exports.globallyDistributedDatabaseShardedDatabaseConnectionStringsToHclTerraform = exports.globallyDistributedDatabaseShardedDatabaseConnectionStringsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function globallyDistributedDatabaseShardedDatabaseConnectionStringsToTerraform(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.globallyDistributedDatabaseShardedDatabaseConnectionStringsToTerraform = globallyDistributedDatabaseShardedDatabaseConnectionStringsToTerraform;
function globallyDistributedDatabaseShardedDatabaseConnectionStringsToHclTerraform(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.globallyDistributedDatabaseShardedDatabaseConnectionStringsToHclTerraform = globallyDistributedDatabaseShardedDatabaseConnectionStringsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference 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;
}
}
exports.GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference = GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference", version: "1.0.0" };
class GloballyDistributedDatabaseShardedDatabaseConnectionStringsList 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 GloballyDistributedDatabaseShardedDatabaseConnectionStringsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GloballyDistributedDatabaseShardedDatabaseConnectionStringsList = GloballyDistributedDatabaseShardedDatabaseConnectionStringsList;
_b = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseConnectionStringsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseConnectionStringsList", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabaseGsmsToTerraform(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.globallyDistributedDatabaseShardedDatabaseGsmsToTerraform = globallyDistributedDatabaseShardedDatabaseGsmsToTerraform;
function globallyDistributedDatabaseShardedDatabaseGsmsToHclTerraform(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.globallyDistributedDatabaseShardedDatabaseGsmsToHclTerraform = globallyDistributedDatabaseShardedDatabaseGsmsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference 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;
// metadata - computed: true, optional: false, required: false
this._metadata = new cdktf.StringMap(this, "metadata");
}
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;
}
}
// compute_count - computed: true, optional: false, required: false
get computeCount() {
return this.getNumberAttribute('compute_count');
}
// data_storage_size_in_gbs - computed: true, optional: false, required: false
get dataStorageSizeInGbs() {
return this.getNumberAttribute('data_storage_size_in_gbs');
}
get metadata() {
return this._metadata;
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
// supporting_resource_id - computed: true, optional: false, required: false
get supportingResourceId() {
return this.getStringAttribute('supporting_resource_id');
}
// time_created - computed: true, optional: false, required: false
get timeCreated() {
return this.getStringAttribute('time_created');
}
// time_ssl_certificate_expires - computed: true, optional: false, required: false
get timeSslCertificateExpires() {
return this.getStringAttribute('time_ssl_certificate_expires');
}
// time_updated - computed: true, optional: false, required: false
get timeUpdated() {
return this.getStringAttribute('time_updated');
}
}
exports.GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference = GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference", version: "1.0.0" };
class GloballyDistributedDatabaseShardedDatabaseGsmsList 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 GloballyDistributedDatabaseShardedDatabaseGsmsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GloballyDistributedDatabaseShardedDatabaseGsmsList = GloballyDistributedDatabaseShardedDatabaseGsmsList;
_d = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseGsmsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseGsmsList", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToTerraform(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 {
kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId),
kms_key_version_id: cdktf.stringToTerraform(struct.kmsKeyVersionId),
vault_id: cdktf.stringToTerraform(struct.vaultId),
};
}
exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToTerraform = globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToTerraform;
function globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToHclTerraform(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 = {
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",
},
vault_id: {
value: cdktf.stringToHclTerraform(struct.vaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToHclTerraform = globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference 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._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
if (this._kmsKeyVersionId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyVersionId = this._kmsKeyVersionId;
}
if (this._vaultId !== undefined) {
hasAnyValues = true;
internalValueResult.vaultId = this._vaultId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKeyId = undefined;
this._kmsKeyVersionId = undefined;
this._vaultId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKeyId = value.kmsKeyId;
this._kmsKeyVersionId = value.kmsKeyVersionId;
this._vaultId = value.vaultId;
}
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
// 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;
}
get vaultId() {
return this.getStringAttribute('vault_id');
}
set vaultId(value) {
this._vaultId = value;
}
// Temporarily expose input value. Use with caution.
get vaultIdInput() {
return this._vaultId;
}
}
exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference = GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabaseCatalogDetailsToTerraform(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),
cloud_autonomous_vm_cluster_id: cdktf.stringToTerraform(struct.cloudAutonomousVmClusterId),
compute_count: cdktf.numberToTerraform(struct.computeCount),
data_storage_size_in_gbs: cdktf.numberToTerraform(struct.dataStorageSizeInGbs),
is_auto_scaling_enabled: cdktf.booleanToTerraform(struct.isAutoScalingEnabled),
peer_cloud_autonomous_vm_cluster_id: cdktf.stringToTerraform(struct.peerCloudAutonomousVmClusterId),
encryption_key_details: globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToTerraform(struct.encryptionKeyDetails),
};
}
exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsToTerraform = globallyDistributedDatabaseShardedDatabaseCatalogDetailsToTerraform;
function globallyDistributedDatabaseShardedDatabaseCatalogDetailsToHclTerraform(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",
},
cloud_autonomous_vm_cluster_id: {
value: cdktf.stringToHclTerraform(struct.cloudAutonomousVmClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
compute_count: {
value: cdktf.numberToHclTerraform(struct.computeCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
data_storage_size_in_gbs: {
value: cdktf.numberToHclTerraform(struct.dataStorageSizeInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
is_auto_scaling_enabled: {
value: cdktf.booleanToHclTerraform(struct.isAutoScalingEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
peer_cloud_autonomous_vm_cluster_id: {
value: cdktf.stringToHclTerraform(struct.peerCloudAutonomousVmClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
encryption_key_details: {
value: globallyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsToHclTerraform(struct.encryptionKeyDetails),
isBlock: true,
type: "list",
storageClassType: "GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.globallyDistributedDatabaseShardedDatabaseCatalogDetailsToHclTerraform = globallyDistributedDatabaseShardedDatabaseCatalogDetailsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference 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;
// metadata - computed: true, optional: false, required: false
this._metadata = new cdktf.StringMap(this, "metadata");
// encryption_key_details - computed: false, optional: true, required: false
this._encryptionKeyDetails = new GloballyDistributedDatabaseShardedDatabaseCatalogDetailsEncryptionKeyDetailsOutputReference(this, "encryption_key_details");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._adminPassword !== undefined) {
hasAnyValues = true;
internalValueResult.adminPassword = this._adminPassword;
}
if (this._cloudAutonomousVmClusterId !== undefined) {
hasAnyValues = true;
internalValueResult.cloudAutonomousVmClusterId = this._cloudAutonomousVmClusterId;
}
if (this._computeCount !== undefined) {
hasAnyValues = true;
internalValueResult.computeCount = this._computeCount;
}
if (this._dataStorageSizeInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.dataStorageSizeInGbs = this._dataStorageSizeInGbs;
}
if (this._isAutoScalingEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isAutoScalingEnabled = this._isAutoScalingEnabled;
}
if (this._peerCloudAutonomousVmClusterId !== undefined) {
hasAnyValues = true;
internalValueResult.peerCloudAutonomousVmClusterId = this._peerCloudAutonomousVmClusterId;
}
if (this._encryptionKeyDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.encryptionKeyDetails = this._encryptionKeyDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._adminPassword = undefined;
this._cloudAutonomousVmClusterId = undefined;
this._computeCount = undefined;
this._dataStorageSizeInGbs = undefined;
this._isAutoScalingEnabled = undefined;
this._peerCloudAutonomousVmClusterId = undefined;
this._encryptionKeyDetails.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._adminPassword = value.adminPassword;
this._cloudAutonomousVmClusterId = value.cloudAutonomousVmClusterId;
this._computeCount = value.computeCount;
this._dataStorageSizeInGbs = value.dataStorageSizeInGbs;
this._isAutoScalingEnabled = value.isAutoScalingEnabled;
this._peerCloudAutonomousVmClusterId = value.peerCloudAutonomousVmClusterId;
this._encryptionKeyDetails.internalValue = value.encryptionKeyDetails;
}
}
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 cloudAutonomousVmClusterId() {
return this.getStringAttribute('cloud_autonomous_vm_cluster_id');
}
set cloudAutonomousVmClusterId(value) {
this._cloudAutonomousVmClusterId = value;
}
// Temporarily expose input value. Use with caution.
get cloudAutonomousVmClusterIdInput() {
return this._cloudAutonomousVmClusterId;
}
get computeCount() {
return this.getNumberAttribute('compute_count');
}
set computeCount(value) {
this._computeCount = value;
}
// Temporarily expose input value. Use with caution.
get computeCountInput() {
return this._computeCount;
}
// container_database_id - computed: true, optional: false, required: false
get containerDatabaseId() {
return this.getStringAttribute('container_database_id');
}
// container_database_parent_id - computed: true, optional: false, required: false
get containerDatabaseParentId() {
return this.getStringAttribute('container_database_parent_id');
}
get dataStorageSizeInGbs() {
return this.getNumberAttribute('data_storage_size_in_gbs');
}
set dataStorageSizeInGbs(value) {
this._dataStorageSizeInGbs = value;
}
// Temporarily expose input value. Use with caution.
get dataStorageSizeInGbsInput() {
return this._dataStorageSizeInGbs;
}
get isAutoScalingEnabled() {
return this.getBooleanAttribute('is_auto_scaling_enabled');
}
set isAutoScalingEnabled(value) {
this._isAutoScalingEnabled = value;
}
// Temporarily expose input value. Use with caution.
get isAutoScalingEnabledInput() {
return this._isAutoScalingEnabled;
}
get metadata() {
return this._metadata;
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
get peerCloudAutonomousVmClusterId() {
return this.getStringAttribute('peer_cloud_autonomous_vm_cluster_id');
}
set peerCloudAutonomousVmClusterId(value) {
this._peerCloudAutonomousVmClusterId = value;
}
resetPeerCloudAutonomousVmClusterId() {
this._peerCloudAutonomousVmClusterId = undefined;
}
// Temporarily expose input value. Use with caution.
get peerCloudAutonomousVmClusterIdInput() {
return this._peerCloudAutonomousVmClusterId;
}
// shard_group - computed: true, optional: false, required: false
get shardGroup() {
return this.getStringAttribute('shard_group');
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
// supporting_resource_id - computed: true, optional: false, required: false
get supportingResourceId() {
return this.getStringAttribute('supporting_resource_id');
}
// time_created - computed: true, optional: false, required: false
get timeCreated() {
return this.getStringAttribute('time_created');
}
// time_ssl_certificate_expires - computed: true, optional: false, required: false
get timeSslCertificateExpires() {
return this.getStringAttribute('time_ssl_certificate_expires');
}
// time_updated - computed: true, optional: false, required: false
get timeUpdated() {
return this.getStringAttribute('time_updated');
}
get encryptionKeyDetails() {
return this._encryptionKeyDetails;
}
putEncryptionKeyDetails(value) {
this._encryptionKeyDetails.internalValue = value;
}
resetEncryptionKeyDetails() {
this._encryptionKeyDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get encryptionKeyDetailsInput() {
return this._encryptionKeyDetails.internalValue;
}
}
exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference = GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference", version: "1.0.0" };
class GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList 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 GloballyDistributedDatabaseShardedDatabaseCatalogDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList = GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList;
_g = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList[_g] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseCatalogDetailsList", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabasePatchOperationsToTerraform(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 {
operation: cdktf.stringToTerraform(struct.operation),
selection: cdktf.stringToTerraform(struct.selection),
value: cdktf.stringToTerraform(struct.value),
};
}
exports.globallyDistributedDatabaseShardedDatabasePatchOperationsToTerraform = globallyDistributedDatabaseShardedDatabasePatchOperationsToTerraform;
function globallyDistributedDatabaseShardedDatabasePatchOperationsToHclTerraform(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 = {
operation: {
value: cdktf.stringToHclTerraform(struct.operation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
selection: {
value: cdktf.stringToHclTerraform(struct.selection),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.globallyDistributedDatabaseShardedDatabasePatchOperationsToHclTerraform = globallyDistributedDatabaseShardedDatabasePatchOperationsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference 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._operation !== undefined) {
hasAnyValues = true;
internalValueResult.operation = this._operation;
}
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._operation = 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._operation = value.operation;
this._selection = value.selection;
this._value = value.value;
}
}
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 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.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference = GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference", version: "1.0.0" };
class GloballyDistributedDatabaseShardedDatabasePatchOperationsList 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 GloballyDistributedDatabaseShardedDatabasePatchOperationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GloballyDistributedDatabaseShardedDatabasePatchOperationsList = GloballyDistributedDatabaseShardedDatabasePatchOperationsList;
_j = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabasePatchOperationsList[_j] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabasePatchOperationsList", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToTerraform(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 {
kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId),
kms_key_version_id: cdktf.stringToTerraform(struct.kmsKeyVersionId),
vault_id: cdktf.stringToTerraform(struct.vaultId),
};
}
exports.globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToTerraform = globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToTerraform;
function globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToHclTerraform(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 = {
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",
},
vault_id: {
value: cdktf.stringToHclTerraform(struct.vaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToHclTerraform = globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference 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._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
if (this._kmsKeyVersionId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyVersionId = this._kmsKeyVersionId;
}
if (this._vaultId !== undefined) {
hasAnyValues = true;
internalValueResult.vaultId = this._vaultId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKeyId = undefined;
this._kmsKeyVersionId = undefined;
this._vaultId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKeyId = value.kmsKeyId;
this._kmsKeyVersionId = value.kmsKeyVersionId;
this._vaultId = value.vaultId;
}
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
// 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;
}
get vaultId() {
return this.getStringAttribute('vault_id');
}
set vaultId(value) {
this._vaultId = value;
}
// Temporarily expose input value. Use with caution.
get vaultIdInput() {
return this._vaultId;
}
}
exports.GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference = GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference;
_k = JSII_RTTI_SYMBOL_1;
GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.globallyDistributedDatabaseShardedDatabase.GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference", version: "1.0.0" };
function globallyDistributedDatabaseShardedDatabaseShardDetailsToTerraform(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),
cloud_autonomous_vm_cluster_id: cdktf.stringToTerraform(struct.cloudAutonomousVmClusterId),
compute_count: cdktf.numberToTerraform(struct.computeCount),
data_storage_size_in_gbs: cdktf.numberToTerraform(struct.dataStorageSizeInGbs),
is_auto_scaling_enabled: cdktf.booleanToTerraform(struct.isAutoScalingEnabled),
peer_cloud_autonomous_vm_cluster_id: cdktf.stringToTerraform(struct.peerCloudAutonomousVmClusterId),
shard_space: cdktf.stringToTerraform(struct.shardSpace),
encryption_key_details: globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToTerraform(struct.encryptionKeyDetails),
};
}
exports.globallyDistributedDatabaseShardedDatabaseShardDetailsToTerraform = globallyDistributedDatabaseShardedDatabaseShardDetailsToTerraform;
function globallyDistributedDatabaseShardedDatabaseShardDetailsToHclTerraform(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",
},
cloud_autonomous_vm_cluster_id: {
value: cdktf.stringToHclTerraform(struct.cloudAutonomousVmClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
compute_count: {
value: cdktf.numberToHclTerraform(struct.computeCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
data_storage_size_in_gbs: {
value: cdktf.numberToHclTerraform(struct.dataStorageSizeInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
is_auto_scaling_enabled: {
value: cdktf.booleanToHclTerraform(struct.isAutoScalingEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
peer_cloud_autonomous_vm_cluster_id: {
value: cdktf.stringToHclTerraform(struct.peerCloudAutonomousVmClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
shard_space: {
value: cdktf.stringToHclTerraform(struct.shardSpace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
encryption_key_details: {
value: globallyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsToHclTerraform(struct.encryptionKeyDetails),
isBlock: true,
type: "list",
storageClassType: "GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.globallyDistributedDatabaseShardedDatabaseShardDetailsToHclTerraform = globallyDistributedDatabaseShardedDatabaseShardDetailsToHclTerraform;
class GloballyDistributedDatabaseShardedDatabaseShardDetailsOutputReference 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;
// metadata - computed: true, optional: false, required: false
this._metadata = new cdktf.StringMap(this, "metadata");
// encryption_key_details - computed: false, optional: true, required: false
this._encryptionKeyDetails = new GloballyDistributedDatabaseShardedDatabaseShardDetailsEncryptionKeyDetailsOutputReference(this, "encryption_key_details");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._adminPassword !== undefined) {
hasAnyValues = true;
internalValueResult.adminPassword = this._adminPassword;
}
if (this._cloudAutonomousVmClusterId !== undefined) {
hasAnyValues = true;
internalValueResult.cloudAutonomousVmClusterId = this._cloudAutonomousVmClusterId;
}
if (this._computeCount !== undefined) {
hasAnyValues = true;
internalValueResult.computeCount = this._computeCount;
}
if (this._dataStorageSizeInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.dataStorageSizeInGbs = this._dataStorageSizeInGbs;
}
if (this._isAutoScalingEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isAutoScalingEnabled = this._isAutoScalingEnabled;
}
if (this._peerCloudAutonomousVmClusterId !== undefined) {
hasAnyValues = true;
internalValueResult.peerCloudAutonomousVmClusterId = this._peerCloudAutonomousVmClusterId;
}
if (this._shardSpace !== undefined) {
hasAnyValues = true;
internalValueResult.shardSpace = this._shardSpace;
}
if (this._encryptionKeyDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.encryptionKeyDetails = this._encryptionKeyDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._adminPassword = undefined;
this._cloudAutonomousVmClusterId = undefined;
this._computeCount = undefined;
this._dataStorageSizeInGbs = undefined;
this._isAutoScalingEnabled = undefined;
this._peerCloudAutonomousVmClusterId = undefined;