@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,244 lines • 179 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OracleDatabaseCloudVmCluster = exports.OracleDatabaseCloudVmClusterTimeoutsOutputReference = exports.oracleDatabaseCloudVmClusterTimeoutsToHclTerraform = exports.oracleDatabaseCloudVmClusterTimeoutsToTerraform = exports.OracleDatabaseCloudVmClusterPropertiesOutputReference = exports.oracleDatabaseCloudVmClusterPropertiesToHclTerraform = exports.oracleDatabaseCloudVmClusterPropertiesToTerraform = exports.OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference = exports.oracleDatabaseCloudVmClusterPropertiesTimeZoneToHclTerraform = exports.oracleDatabaseCloudVmClusterPropertiesTimeZoneToTerraform = exports.OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference = exports.oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToHclTerraform = exports.oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToTerraform(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 {
diagnostics_events_enabled: cdktf.booleanToTerraform(struct.diagnosticsEventsEnabled),
health_monitoring_enabled: cdktf.booleanToTerraform(struct.healthMonitoringEnabled),
incident_logs_enabled: cdktf.booleanToTerraform(struct.incidentLogsEnabled),
};
}
exports.oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToTerraform = oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToTerraform;
function oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToHclTerraform(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 = {
diagnostics_events_enabled: {
value: cdktf.booleanToHclTerraform(struct.diagnosticsEventsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
health_monitoring_enabled: {
value: cdktf.booleanToHclTerraform(struct.healthMonitoringEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
incident_logs_enabled: {
value: cdktf.booleanToHclTerraform(struct.incidentLogsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToHclTerraform = oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToHclTerraform;
class OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference 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._diagnosticsEventsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.diagnosticsEventsEnabled = this._diagnosticsEventsEnabled;
}
if (this._healthMonitoringEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.healthMonitoringEnabled = this._healthMonitoringEnabled;
}
if (this._incidentLogsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.incidentLogsEnabled = this._incidentLogsEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._diagnosticsEventsEnabled = undefined;
this._healthMonitoringEnabled = undefined;
this._incidentLogsEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._diagnosticsEventsEnabled = value.diagnosticsEventsEnabled;
this._healthMonitoringEnabled = value.healthMonitoringEnabled;
this._incidentLogsEnabled = value.incidentLogsEnabled;
}
}
get diagnosticsEventsEnabled() {
return this.getBooleanAttribute('diagnostics_events_enabled');
}
set diagnosticsEventsEnabled(value) {
this._diagnosticsEventsEnabled = value;
}
resetDiagnosticsEventsEnabled() {
this._diagnosticsEventsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get diagnosticsEventsEnabledInput() {
return this._diagnosticsEventsEnabled;
}
get healthMonitoringEnabled() {
return this.getBooleanAttribute('health_monitoring_enabled');
}
set healthMonitoringEnabled(value) {
this._healthMonitoringEnabled = value;
}
resetHealthMonitoringEnabled() {
this._healthMonitoringEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get healthMonitoringEnabledInput() {
return this._healthMonitoringEnabled;
}
get incidentLogsEnabled() {
return this.getBooleanAttribute('incident_logs_enabled');
}
set incidentLogsEnabled(value) {
this._incidentLogsEnabled = value;
}
resetIncidentLogsEnabled() {
this._incidentLogsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get incidentLogsEnabledInput() {
return this._incidentLogsEnabled;
}
}
exports.OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference = OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference[_a] = { fqn: "@cdktf/provider-google.oracleDatabaseCloudVmCluster.OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference", version: "14.12.0" };
function oracleDatabaseCloudVmClusterPropertiesTimeZoneToTerraform(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 {
id: cdktf.stringToTerraform(struct.id),
};
}
exports.oracleDatabaseCloudVmClusterPropertiesTimeZoneToTerraform = oracleDatabaseCloudVmClusterPropertiesTimeZoneToTerraform;
function oracleDatabaseCloudVmClusterPropertiesTimeZoneToHclTerraform(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 = {
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.oracleDatabaseCloudVmClusterPropertiesTimeZoneToHclTerraform = oracleDatabaseCloudVmClusterPropertiesTimeZoneToHclTerraform;
class OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference 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._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._id = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._id = value.id;
}
}
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;
}
}
exports.OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference = OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference;
_b = JSII_RTTI_SYMBOL_1;
OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference[_b] = { fqn: "@cdktf/provider-google.oracleDatabaseCloudVmCluster.OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference", version: "14.12.0" };
function oracleDatabaseCloudVmClusterPropertiesToTerraform(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 {
cluster_name: cdktf.stringToTerraform(struct.clusterName),
cpu_core_count: cdktf.numberToTerraform(struct.cpuCoreCount),
data_storage_size_tb: cdktf.numberToTerraform(struct.dataStorageSizeTb),
db_node_storage_size_gb: cdktf.numberToTerraform(struct.dbNodeStorageSizeGb),
db_server_ocids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.dbServerOcids),
disk_redundancy: cdktf.stringToTerraform(struct.diskRedundancy),
gi_version: cdktf.stringToTerraform(struct.giVersion),
hostname_prefix: cdktf.stringToTerraform(struct.hostnamePrefix),
license_type: cdktf.stringToTerraform(struct.licenseType),
local_backup_enabled: cdktf.booleanToTerraform(struct.localBackupEnabled),
memory_size_gb: cdktf.numberToTerraform(struct.memorySizeGb),
node_count: cdktf.numberToTerraform(struct.nodeCount),
ocpu_count: cdktf.numberToTerraform(struct.ocpuCount),
sparse_diskgroup_enabled: cdktf.booleanToTerraform(struct.sparseDiskgroupEnabled),
ssh_public_keys: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.sshPublicKeys),
diagnostics_data_collection_options: oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToTerraform(struct.diagnosticsDataCollectionOptions),
time_zone: oracleDatabaseCloudVmClusterPropertiesTimeZoneToTerraform(struct.timeZone),
};
}
exports.oracleDatabaseCloudVmClusterPropertiesToTerraform = oracleDatabaseCloudVmClusterPropertiesToTerraform;
function oracleDatabaseCloudVmClusterPropertiesToHclTerraform(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 = {
cluster_name: {
value: cdktf.stringToHclTerraform(struct.clusterName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cpu_core_count: {
value: cdktf.numberToHclTerraform(struct.cpuCoreCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
data_storage_size_tb: {
value: cdktf.numberToHclTerraform(struct.dataStorageSizeTb),
isBlock: false,
type: "simple",
storageClassType: "number",
},
db_node_storage_size_gb: {
value: cdktf.numberToHclTerraform(struct.dbNodeStorageSizeGb),
isBlock: false,
type: "simple",
storageClassType: "number",
},
db_server_ocids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.dbServerOcids),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
disk_redundancy: {
value: cdktf.stringToHclTerraform(struct.diskRedundancy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
gi_version: {
value: cdktf.stringToHclTerraform(struct.giVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
hostname_prefix: {
value: cdktf.stringToHclTerraform(struct.hostnamePrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
license_type: {
value: cdktf.stringToHclTerraform(struct.licenseType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
local_backup_enabled: {
value: cdktf.booleanToHclTerraform(struct.localBackupEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
memory_size_gb: {
value: cdktf.numberToHclTerraform(struct.memorySizeGb),
isBlock: false,
type: "simple",
storageClassType: "number",
},
node_count: {
value: cdktf.numberToHclTerraform(struct.nodeCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ocpu_count: {
value: cdktf.numberToHclTerraform(struct.ocpuCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
sparse_diskgroup_enabled: {
value: cdktf.booleanToHclTerraform(struct.sparseDiskgroupEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssh_public_keys: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.sshPublicKeys),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
diagnostics_data_collection_options: {
value: oracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsToHclTerraform(struct.diagnosticsDataCollectionOptions),
isBlock: true,
type: "list",
storageClassType: "OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsList",
},
time_zone: {
value: oracleDatabaseCloudVmClusterPropertiesTimeZoneToHclTerraform(struct.timeZone),
isBlock: true,
type: "list",
storageClassType: "OracleDatabaseCloudVmClusterPropertiesTimeZoneList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.oracleDatabaseCloudVmClusterPropertiesToHclTerraform = oracleDatabaseCloudVmClusterPropertiesToHclTerraform;
class OracleDatabaseCloudVmClusterPropertiesOutputReference 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;
// diagnostics_data_collection_options - computed: false, optional: true, required: false
this._diagnosticsDataCollectionOptions = new OracleDatabaseCloudVmClusterPropertiesDiagnosticsDataCollectionOptionsOutputReference(this, "diagnostics_data_collection_options");
// time_zone - computed: false, optional: true, required: false
this._timeZone = new OracleDatabaseCloudVmClusterPropertiesTimeZoneOutputReference(this, "time_zone");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._clusterName !== undefined) {
hasAnyValues = true;
internalValueResult.clusterName = this._clusterName;
}
if (this._cpuCoreCount !== undefined) {
hasAnyValues = true;
internalValueResult.cpuCoreCount = this._cpuCoreCount;
}
if (this._dataStorageSizeTb !== undefined) {
hasAnyValues = true;
internalValueResult.dataStorageSizeTb = this._dataStorageSizeTb;
}
if (this._dbNodeStorageSizeGb !== undefined) {
hasAnyValues = true;
internalValueResult.dbNodeStorageSizeGb = this._dbNodeStorageSizeGb;
}
if (this._dbServerOcids !== undefined) {
hasAnyValues = true;
internalValueResult.dbServerOcids = this._dbServerOcids;
}
if (this._diskRedundancy !== undefined) {
hasAnyValues = true;
internalValueResult.diskRedundancy = this._diskRedundancy;
}
if (this._giVersion !== undefined) {
hasAnyValues = true;
internalValueResult.giVersion = this._giVersion;
}
if (this._hostnamePrefix !== undefined) {
hasAnyValues = true;
internalValueResult.hostnamePrefix = this._hostnamePrefix;
}
if (this._licenseType !== undefined) {
hasAnyValues = true;
internalValueResult.licenseType = this._licenseType;
}
if (this._localBackupEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.localBackupEnabled = this._localBackupEnabled;
}
if (this._memorySizeGb !== undefined) {
hasAnyValues = true;
internalValueResult.memorySizeGb = this._memorySizeGb;
}
if (this._nodeCount !== undefined) {
hasAnyValues = true;
internalValueResult.nodeCount = this._nodeCount;
}
if (this._ocpuCount !== undefined) {
hasAnyValues = true;
internalValueResult.ocpuCount = this._ocpuCount;
}
if (this._sparseDiskgroupEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.sparseDiskgroupEnabled = this._sparseDiskgroupEnabled;
}
if (this._sshPublicKeys !== undefined) {
hasAnyValues = true;
internalValueResult.sshPublicKeys = this._sshPublicKeys;
}
if (this._diagnosticsDataCollectionOptions?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.diagnosticsDataCollectionOptions = this._diagnosticsDataCollectionOptions?.internalValue;
}
if (this._timeZone?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.timeZone = this._timeZone?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clusterName = undefined;
this._cpuCoreCount = undefined;
this._dataStorageSizeTb = undefined;
this._dbNodeStorageSizeGb = undefined;
this._dbServerOcids = undefined;
this._diskRedundancy = undefined;
this._giVersion = undefined;
this._hostnamePrefix = undefined;
this._licenseType = undefined;
this._localBackupEnabled = undefined;
this._memorySizeGb = undefined;
this._nodeCount = undefined;
this._ocpuCount = undefined;
this._sparseDiskgroupEnabled = undefined;
this._sshPublicKeys = undefined;
this._diagnosticsDataCollectionOptions.internalValue = undefined;
this._timeZone.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clusterName = value.clusterName;
this._cpuCoreCount = value.cpuCoreCount;
this._dataStorageSizeTb = value.dataStorageSizeTb;
this._dbNodeStorageSizeGb = value.dbNodeStorageSizeGb;
this._dbServerOcids = value.dbServerOcids;
this._diskRedundancy = value.diskRedundancy;
this._giVersion = value.giVersion;
this._hostnamePrefix = value.hostnamePrefix;
this._licenseType = value.licenseType;
this._localBackupEnabled = value.localBackupEnabled;
this._memorySizeGb = value.memorySizeGb;
this._nodeCount = value.nodeCount;
this._ocpuCount = value.ocpuCount;
this._sparseDiskgroupEnabled = value.sparseDiskgroupEnabled;
this._sshPublicKeys = value.sshPublicKeys;
this._diagnosticsDataCollectionOptions.internalValue = value.diagnosticsDataCollectionOptions;
this._timeZone.internalValue = value.timeZone;
}
}
get clusterName() {
return this.getStringAttribute('cluster_name');
}
set clusterName(value) {
this._clusterName = value;
}
resetClusterName() {
this._clusterName = undefined;
}
// Temporarily expose input value. Use with caution.
get clusterNameInput() {
return this._clusterName;
}
// compartment_id - computed: true, optional: false, required: false
get compartmentId() {
return this.getStringAttribute('compartment_id');
}
get cpuCoreCount() {
return this.getNumberAttribute('cpu_core_count');
}
set cpuCoreCount(value) {
this._cpuCoreCount = value;
}
// Temporarily expose input value. Use with caution.
get cpuCoreCountInput() {
return this._cpuCoreCount;
}
get dataStorageSizeTb() {
return this.getNumberAttribute('data_storage_size_tb');
}
set dataStorageSizeTb(value) {
this._dataStorageSizeTb = value;
}
resetDataStorageSizeTb() {
this._dataStorageSizeTb = undefined;
}
// Temporarily expose input value. Use with caution.
get dataStorageSizeTbInput() {
return this._dataStorageSizeTb;
}
get dbNodeStorageSizeGb() {
return this.getNumberAttribute('db_node_storage_size_gb');
}
set dbNodeStorageSizeGb(value) {
this._dbNodeStorageSizeGb = value;
}
resetDbNodeStorageSizeGb() {
this._dbNodeStorageSizeGb = undefined;
}
// Temporarily expose input value. Use with caution.
get dbNodeStorageSizeGbInput() {
return this._dbNodeStorageSizeGb;
}
get dbServerOcids() {
return this.getListAttribute('db_server_ocids');
}
set dbServerOcids(value) {
this._dbServerOcids = value;
}
resetDbServerOcids() {
this._dbServerOcids = undefined;
}
// Temporarily expose input value. Use with caution.
get dbServerOcidsInput() {
return this._dbServerOcids;
}
get diskRedundancy() {
return this.getStringAttribute('disk_redundancy');
}
set diskRedundancy(value) {
this._diskRedundancy = value;
}
resetDiskRedundancy() {
this._diskRedundancy = undefined;
}
// Temporarily expose input value. Use with caution.
get diskRedundancyInput() {
return this._diskRedundancy;
}
// dns_listener_ip - computed: true, optional: false, required: false
get dnsListenerIp() {
return this.getStringAttribute('dns_listener_ip');
}
// domain - computed: true, optional: false, required: false
get domain() {
return this.getStringAttribute('domain');
}
get giVersion() {
return this.getStringAttribute('gi_version');
}
set giVersion(value) {
this._giVersion = value;
}
resetGiVersion() {
this._giVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get giVersionInput() {
return this._giVersion;
}
// hostname - computed: true, optional: false, required: false
get hostname() {
return this.getStringAttribute('hostname');
}
get hostnamePrefix() {
return this.getStringAttribute('hostname_prefix');
}
set hostnamePrefix(value) {
this._hostnamePrefix = value;
}
resetHostnamePrefix() {
this._hostnamePrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get hostnamePrefixInput() {
return this._hostnamePrefix;
}
get licenseType() {
return this.getStringAttribute('license_type');
}
set licenseType(value) {
this._licenseType = value;
}
// Temporarily expose input value. Use with caution.
get licenseTypeInput() {
return this._licenseType;
}
get localBackupEnabled() {
return this.getBooleanAttribute('local_backup_enabled');
}
set localBackupEnabled(value) {
this._localBackupEnabled = value;
}
resetLocalBackupEnabled() {
this._localBackupEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get localBackupEnabledInput() {
return this._localBackupEnabled;
}
get memorySizeGb() {
return this.getNumberAttribute('memory_size_gb');
}
set memorySizeGb(value) {
this._memorySizeGb = value;
}
resetMemorySizeGb() {
this._memorySizeGb = undefined;
}
// Temporarily expose input value. Use with caution.
get memorySizeGbInput() {
return this._memorySizeGb;
}
get nodeCount() {
return this.getNumberAttribute('node_count');
}
set nodeCount(value) {
this._nodeCount = value;
}
resetNodeCount() {
this._nodeCount = undefined;
}
// Temporarily expose input value. Use with caution.
get nodeCountInput() {
return this._nodeCount;
}
// oci_url - computed: true, optional: false, required: false
get ociUrl() {
return this.getStringAttribute('oci_url');
}
// ocid - computed: true, optional: false, required: false
get ocid() {
return this.getStringAttribute('ocid');
}
get ocpuCount() {
return this.getNumberAttribute('ocpu_count');
}
set ocpuCount(value) {
this._ocpuCount = value;
}
resetOcpuCount() {
this._ocpuCount = undefined;
}
// Temporarily expose input value. Use with caution.
get ocpuCountInput() {
return this._ocpuCount;
}
// scan_dns - computed: true, optional: false, required: false
get scanDns() {
return this.getStringAttribute('scan_dns');
}
// scan_dns_record_id - computed: true, optional: false, required: false
get scanDnsRecordId() {
return this.getStringAttribute('scan_dns_record_id');
}
// scan_ip_ids - computed: true, optional: false, required: false
get scanIpIds() {
return this.getListAttribute('scan_ip_ids');
}
// scan_listener_port_tcp - computed: true, optional: false, required: false
get scanListenerPortTcp() {
return this.getNumberAttribute('scan_listener_port_tcp');
}
// scan_listener_port_tcp_ssl - computed: true, optional: false, required: false
get scanListenerPortTcpSsl() {
return this.getNumberAttribute('scan_listener_port_tcp_ssl');
}
// shape - computed: true, optional: false, required: false
get shape() {
return this.getStringAttribute('shape');
}
get sparseDiskgroupEnabled() {
return this.getBooleanAttribute('sparse_diskgroup_enabled');
}
set sparseDiskgroupEnabled(value) {
this._sparseDiskgroupEnabled = value;
}
resetSparseDiskgroupEnabled() {
this._sparseDiskgroupEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get sparseDiskgroupEnabledInput() {
return this._sparseDiskgroupEnabled;
}
get sshPublicKeys() {
return this.getListAttribute('ssh_public_keys');
}
set sshPublicKeys(value) {
this._sshPublicKeys = value;
}
resetSshPublicKeys() {
this._sshPublicKeys = undefined;
}
// Temporarily expose input value. Use with caution.
get sshPublicKeysInput() {
return this._sshPublicKeys;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// storage_size_gb - computed: true, optional: false, required: false
get storageSizeGb() {
return this.getNumberAttribute('storage_size_gb');
}
// system_version - computed: true, optional: false, required: false
get systemVersion() {
return this.getStringAttribute('system_version');
}
get diagnosticsDataCollectionOptions() {
return this._diagnosticsDataCollectionOptions;
}
putDiagnosticsDataCollectionOptions(value) {
this._diagnosticsDataCollectionOptions.internalValue = value;
}
resetDiagnosticsDataCollectionOptions() {
this._diagnosticsDataCollectionOptions.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get diagnosticsDataCollectionOptionsInput() {
return this._diagnosticsDataCollectionOptions.internalValue;
}
get timeZone() {
return this._timeZone;
}
putTimeZone(value) {
this._timeZone.internalValue = value;
}
resetTimeZone() {
this._timeZone.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeZoneInput() {
return this._timeZone.internalValue;
}
}
exports.OracleDatabaseCloudVmClusterPropertiesOutputReference = OracleDatabaseCloudVmClusterPropertiesOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OracleDatabaseCloudVmClusterPropertiesOutputReference[_c] = { fqn: "@cdktf/provider-google.oracleDatabaseCloudVmCluster.OracleDatabaseCloudVmClusterPropertiesOutputReference", version: "14.12.0" };
function oracleDatabaseCloudVmClusterTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.oracleDatabaseCloudVmClusterTimeoutsToTerraform = oracleDatabaseCloudVmClusterTimeoutsToTerraform;
function oracleDatabaseCloudVmClusterTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.oracleDatabaseCloudVmClusterTimeoutsToHclTerraform = oracleDatabaseCloudVmClusterTimeoutsToHclTerraform;
class OracleDatabaseCloudVmClusterTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.OracleDatabaseCloudVmClusterTimeoutsOutputReference = OracleDatabaseCloudVmClusterTimeoutsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
OracleDatabaseCloudVmClusterTimeoutsOutputReference[_d] = { fqn: "@cdktf/provider-google.oracleDatabaseCloudVmCluster.OracleDatabaseCloudVmClusterTimeoutsOutputReference", version: "14.12.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/oracle_database_cloud_vm_cluster google_oracle_database_cloud_vm_cluster}
*/
class OracleDatabaseCloudVmCluster extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a OracleDatabaseCloudVmCluster resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the OracleDatabaseCloudVmCluster to import
* @param importFromId The id of the existing OracleDatabaseCloudVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/oracle_database_cloud_vm_cluster#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the OracleDatabaseCloudVmCluster to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_oracle_database_cloud_vm_cluster", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/oracle_database_cloud_vm_cluster google_oracle_database_cloud_vm_cluster} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options OracleDatabaseCloudVmClusterConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_oracle_database_cloud_vm_cluster',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.13.0',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
// properties - computed: false, optional: true, required: false
this._properties = new OracleDatabaseCloudVmClusterPropertiesOutputReference(this, "properties");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new OracleDatabaseCloudVmClusterTimeoutsOutputReference(this, "timeouts");
this._backupSubnetCidr = config.backupSubnetCidr;
this._cidr = config.cidr;
this._cloudVmClusterId = config.cloudVmClusterId;
this._deletionProtection = config.deletionProtection;
this._displayName = config.displayName;
this._exadataInfrastructure = config.exadataInfrastructure;
this._id = config.id;
this._labels = config.labels;
this._location = config.location;
this._network = config.network;
this._project = config.project;
this._properties.internalValue = config.properties;
this._timeouts.internalValue = config.timeouts;
}
get backupSubnetCidr() {
return this.getStringAttribute('backup_subnet_cidr');
}
set backupSubnetCidr(value) {
this._backupSubnetCidr = value;
}
// Temporarily expose input value. Use with caution.
get backupSubnetCidrInput() {
return this._backupSubnetCidr;
}
get cidr() {
return this.getStringAttribute('cidr');
}
set cidr(value) {
this._cidr = value;
}
// Temporarily expose input value. Use with caution.
get cidrInput() {
return this._cidr;
}
get cloudVmClusterId() {
return this.getStringAttribute('cloud_vm_cluster_id');
}
set cloudVmClusterId(value) {
this._cloudVmClusterId = value;
}
// Temporarily expose input value. Use with caution.
get cloudVmClusterIdInput() {
return this._cloudVmClusterId;
}
// create_time - computed: true, optional: false, required: false
get createTime() {
return this.getStringAttribute('create_time');
}
get deletionProtection() {
return this.getBooleanAttribute('deletion_protection');
}
set deletionProtection(value) {
this._deletionProtection = value;
}
resetDeletionProtection() {
this._deletionProtection = undefined;
}
// Temporarily expose input value. Use with caution.
get deletionProtectionInput() {
return this._deletionProtection;
}
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 effectiveLabels() {
return this._effectiveLabels;
}
get exadataInfrastructure() {
return this.getStringAttribute('exadata_infrastructure');
}
set exadataInfrastructure(value) {
this._exadataInfrastructure = value;
}
// Temporarily expose input value. Use with caution.
get exadataInfrastructureInput() {
return this._exadataInfrastructure;
}
// gcp_oracle_zone - computed: true, optional: false, required: false
get gcpOracleZone() {
return this.getStringAttribute('gcp_oracle_zone');
}
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 labels() {
return this.getStringMapAttribute('labels');
}
set labels(value) {
this._labels = value;
}
resetLabels() {
this._labels = undefined;
}
// Temporarily expose input value. Use with caution.
get labelsInput() {
return this._labels;
}
get location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
get network() {
return this.getStringAttribute('network');
}
set network(value) {
this._network = value;
}
// Temporarily expose input value. Use with caution.
get networkInput() {
return this._network;
}
get project() {
return this.getStringAttribute('project');
}
set project(value) {
this._project = value;
}
resetProject() {
this._project = undefined;
}
// Temporarily expose input value. Use with caution.
get projectInput() {
return this._project;
}
get terraformLabels() {
return this._terraformLabels;
}
get properties() {
return this._properties;
}
putProperties(value) {
this._properties.internalValue = value;
}
resetProperties() {
this._properties.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get propertiesInput() {
return this._properties.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
backup_subnet_cidr: cdktf.stringToTerraform(this._backupSubnetCidr),
cidr: cdktf.stringToTerraform(this._cidr),
cloud_vm_cluster_id: cdktf.stringToTerraform(this._cloudVmClusterId),
deletion_protection: cdktf.booleanToTerraform(this._deletionProtection),
display_name: cdktf.stringToTerraform(this._displayName),
exadata_infrastructure: cdktf.stringToTerraform(this._exadataInfrastructure),
id: cdktf.stringToTerraform(this._id),
labels: cdktf.hashMapper(cdktf.stringToTerraform)(this._labels),
location: cdktf.stringToTerraform(this._location),
network: cdktf.stringToTerraform(this._network),
project: cdktf.stringToTerraform(this._project),
properties: oracleDatabaseCloudVmClusterPropertiesToTerraform(this._properties.internalValue),
timeouts: oracleDatabaseCloudVmClusterTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
backup_subnet_cidr: {
value: cdktf.stringToHclTerraform(this._backupSubnetCidr),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cidr: {
value: cdktf.stringToHclTerraform(this._cidr),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloud_vm_cluster_id: {
value: cdktf.stringToHclTerraform(this._cloudVmClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
deletion_protection: {
value: cdktf.booleanToHclTerraform(this._deletionProtection),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
display_name: {
value: cdktf.stringToHclTerraform(this._displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
exadata_infrastructure: {
value: cdktf.stringToHclTerraform(this._exadataInfrastructure),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
labels: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._labels),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
location: {
value: cdktf.stringToHclTerraform(this._location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
network: {
value: cdktf.stringToHclTerraform(this._network),
isBlock: false,
type: "simple",
storageClassType: "string",
},
project: {
value: cdktf.stringToHclTerraform(this._project),
isBlock: false,
type: "simple",
storageClassType: "string",
},
properties: {
value: oracleDatabaseCloudVmClusterPropertiesToHclTerraform(this._properties.internalValue),
isBlock: true,
type: "list",
storageClassType: "OracleDatabaseCloudVmClusterPropertiesList",
},
timeouts: {
value: oracleDatabaseCloudVmClusterTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "OracleDatabaseCloudVmClusterTimeouts",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.OracleDatabaseCloudVmCluster = OracleDatabaseCloudVmCluster;
_e = JSII_RTTI_SYMBOL_1;
OracleDatabaseCloudVmCluster[_e] = { fqn: "@cdktf/provider-google.oracleDatabaseCloudVmCluster.OracleDatabaseCloudVmCluster", version: "14.12.0" };
// =================
// STATIC PROPERTIES
// =================
OracleDatabaseCloudVmCluster.tfResourceType = "google_oracle_database_cloud_vm_cluster";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb3JhY2xlLWRhdGFiYXNlLWNsb3VkLXZtLWNsdXN0ZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFTQSwrQkFBK0I7QUFrSC9CLFNBQWdCLGlGQUFpRixDQUFDLE1BQXVLO0lBQ3ZRLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQy