UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,096 lines 454 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; Object.defineProperty(exports, "__esModule", { value: true }); exports.BdsBdsInstanceTimeoutsOutputReference = exports.bdsBdsInstanceTimeoutsToHclTerraform = exports.bdsBdsInstanceTimeoutsToTerraform = exports.BdsBdsInstanceNetworkConfigOutputReference = exports.bdsBdsInstanceNetworkConfigToHclTerraform = exports.bdsBdsInstanceNetworkConfigToTerraform = exports.BdsBdsInstanceMasterNodeOutputReference = exports.bdsBdsInstanceMasterNodeToHclTerraform = exports.bdsBdsInstanceMasterNodeToTerraform = exports.BdsBdsInstanceMasterNodeShapeConfigOutputReference = exports.bdsBdsInstanceMasterNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceMasterNodeShapeConfigToTerraform = exports.BdsBdsInstanceKafkaBrokerNodeOutputReference = exports.bdsBdsInstanceKafkaBrokerNodeToHclTerraform = exports.bdsBdsInstanceKafkaBrokerNodeToTerraform = exports.BdsBdsInstanceKafkaBrokerNodeShapeConfigOutputReference = exports.bdsBdsInstanceKafkaBrokerNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceKafkaBrokerNodeShapeConfigToTerraform = exports.BdsBdsInstanceEdgeNodeOutputReference = exports.bdsBdsInstanceEdgeNodeToHclTerraform = exports.bdsBdsInstanceEdgeNodeToTerraform = exports.BdsBdsInstanceEdgeNodeShapeConfigOutputReference = exports.bdsBdsInstanceEdgeNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceEdgeNodeShapeConfigToTerraform = exports.BdsBdsInstanceComputeOnlyWorkerNodeOutputReference = exports.bdsBdsInstanceComputeOnlyWorkerNodeToHclTerraform = exports.bdsBdsInstanceComputeOnlyWorkerNodeToTerraform = exports.BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference = exports.bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToTerraform = exports.BdsBdsInstanceCloudSqlDetailsList = exports.BdsBdsInstanceCloudSqlDetailsOutputReference = exports.bdsBdsInstanceCloudSqlDetailsToHclTerraform = exports.bdsBdsInstanceCloudSqlDetailsToTerraform = exports.BdsBdsInstanceCloudSqlDetailsKerberosDetailsList = exports.BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference = exports.bdsBdsInstanceCloudSqlDetailsKerberosDetailsToHclTerraform = exports.bdsBdsInstanceCloudSqlDetailsKerberosDetailsToTerraform = exports.BdsBdsInstanceNodesList = exports.BdsBdsInstanceNodesOutputReference = exports.bdsBdsInstanceNodesToHclTerraform = exports.bdsBdsInstanceNodesToTerraform = exports.BdsBdsInstanceNodesAttachedBlockVolumesList = exports.BdsBdsInstanceNodesAttachedBlockVolumesOutputReference = exports.bdsBdsInstanceNodesAttachedBlockVolumesToHclTerraform = exports.bdsBdsInstanceNodesAttachedBlockVolumesToTerraform = exports.BdsBdsInstanceClusterDetailsList = exports.BdsBdsInstanceClusterDetailsOutputReference = exports.bdsBdsInstanceClusterDetailsToHclTerraform = exports.bdsBdsInstanceClusterDetailsToTerraform = void 0; exports.BdsBdsInstance = exports.BdsBdsInstanceWorkerNodeOutputReference = exports.bdsBdsInstanceWorkerNodeToHclTerraform = exports.bdsBdsInstanceWorkerNodeToTerraform = exports.BdsBdsInstanceWorkerNodeShapeConfigOutputReference = exports.bdsBdsInstanceWorkerNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceWorkerNodeShapeConfigToTerraform = exports.BdsBdsInstanceUtilNodeOutputReference = exports.bdsBdsInstanceUtilNodeToHclTerraform = exports.bdsBdsInstanceUtilNodeToTerraform = exports.BdsBdsInstanceUtilNodeShapeConfigOutputReference = exports.bdsBdsInstanceUtilNodeShapeConfigToHclTerraform = exports.bdsBdsInstanceUtilNodeShapeConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bdsBdsInstanceClusterDetailsToTerraform(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.bdsBdsInstanceClusterDetailsToTerraform = bdsBdsInstanceClusterDetailsToTerraform; function bdsBdsInstanceClusterDetailsToHclTerraform(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.bdsBdsInstanceClusterDetailsToHclTerraform = bdsBdsInstanceClusterDetailsToHclTerraform; class BdsBdsInstanceClusterDetailsOutputReference 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; } } // ambari_url - computed: true, optional: false, required: false get ambariUrl() { return this.getStringAttribute('ambari_url'); } // bd_cell_version - computed: true, optional: false, required: false get bdCellVersion() { return this.getStringAttribute('bd_cell_version'); } // bda_version - computed: true, optional: false, required: false get bdaVersion() { return this.getStringAttribute('bda_version'); } // bdm_version - computed: true, optional: false, required: false get bdmVersion() { return this.getStringAttribute('bdm_version'); } // bds_version - computed: true, optional: false, required: false get bdsVersion() { return this.getStringAttribute('bds_version'); } // big_data_manager_url - computed: true, optional: false, required: false get bigDataManagerUrl() { return this.getStringAttribute('big_data_manager_url'); } // cloudera_manager_url - computed: true, optional: false, required: false get clouderaManagerUrl() { return this.getStringAttribute('cloudera_manager_url'); } // csql_cell_version - computed: true, optional: false, required: false get csqlCellVersion() { return this.getStringAttribute('csql_cell_version'); } // db_version - computed: true, optional: false, required: false get dbVersion() { return this.getStringAttribute('db_version'); } // hue_server_url - computed: true, optional: false, required: false get hueServerUrl() { return this.getStringAttribute('hue_server_url'); } // jupyter_hub_url - computed: true, optional: false, required: false get jupyterHubUrl() { return this.getStringAttribute('jupyter_hub_url'); } // odh_version - computed: true, optional: false, required: false get odhVersion() { return this.getStringAttribute('odh_version'); } // os_version - computed: true, optional: false, required: false get osVersion() { return this.getStringAttribute('os_version'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_refreshed - computed: true, optional: false, required: false get timeRefreshed() { return this.getStringAttribute('time_refreshed'); } } exports.BdsBdsInstanceClusterDetailsOutputReference = BdsBdsInstanceClusterDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; BdsBdsInstanceClusterDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceClusterDetailsOutputReference", version: "1.0.0" }; class BdsBdsInstanceClusterDetailsList 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 BdsBdsInstanceClusterDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BdsBdsInstanceClusterDetailsList = BdsBdsInstanceClusterDetailsList; _b = JSII_RTTI_SYMBOL_1; BdsBdsInstanceClusterDetailsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceClusterDetailsList", version: "1.0.0" }; function bdsBdsInstanceNodesAttachedBlockVolumesToTerraform(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.bdsBdsInstanceNodesAttachedBlockVolumesToTerraform = bdsBdsInstanceNodesAttachedBlockVolumesToTerraform; function bdsBdsInstanceNodesAttachedBlockVolumesToHclTerraform(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.bdsBdsInstanceNodesAttachedBlockVolumesToHclTerraform = bdsBdsInstanceNodesAttachedBlockVolumesToHclTerraform; class BdsBdsInstanceNodesAttachedBlockVolumesOutputReference 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; } } // volume_attachment_id - computed: true, optional: false, required: false get volumeAttachmentId() { return this.getStringAttribute('volume_attachment_id'); } // volume_size_in_gbs - computed: true, optional: false, required: false get volumeSizeInGbs() { return this.getStringAttribute('volume_size_in_gbs'); } } exports.BdsBdsInstanceNodesAttachedBlockVolumesOutputReference = BdsBdsInstanceNodesAttachedBlockVolumesOutputReference; _c = JSII_RTTI_SYMBOL_1; BdsBdsInstanceNodesAttachedBlockVolumesOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceNodesAttachedBlockVolumesOutputReference", version: "1.0.0" }; class BdsBdsInstanceNodesAttachedBlockVolumesList 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 BdsBdsInstanceNodesAttachedBlockVolumesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BdsBdsInstanceNodesAttachedBlockVolumesList = BdsBdsInstanceNodesAttachedBlockVolumesList; _d = JSII_RTTI_SYMBOL_1; BdsBdsInstanceNodesAttachedBlockVolumesList[_d] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceNodesAttachedBlockVolumesList", version: "1.0.0" }; function bdsBdsInstanceNodesToTerraform(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.bdsBdsInstanceNodesToTerraform = bdsBdsInstanceNodesToTerraform; function bdsBdsInstanceNodesToHclTerraform(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.bdsBdsInstanceNodesToHclTerraform = bdsBdsInstanceNodesToHclTerraform; class BdsBdsInstanceNodesOutputReference 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; // attached_block_volumes - computed: true, optional: false, required: false this._attachedBlockVolumes = new BdsBdsInstanceNodesAttachedBlockVolumesList(this, "attached_block_volumes", 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; } } get attachedBlockVolumes() { return this._attachedBlockVolumes; } // availability_domain - computed: true, optional: false, required: false get availabilityDomain() { return this.getStringAttribute('availability_domain'); } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } // fault_domain - computed: true, optional: false, required: false get faultDomain() { return this.getStringAttribute('fault_domain'); } // hostname - computed: true, optional: false, required: false get hostname() { return this.getStringAttribute('hostname'); } // image_id - computed: true, optional: false, required: false get imageId() { return this.getStringAttribute('image_id'); } // instance_id - computed: true, optional: false, required: false get instanceId() { return this.getStringAttribute('instance_id'); } // ip_address - computed: true, optional: false, required: false get ipAddress() { return this.getStringAttribute('ip_address'); } // is_reboot_required - computed: true, optional: false, required: false get isRebootRequired() { return this.getBooleanAttribute('is_reboot_required'); } // local_disks_total_size_in_gbs - computed: true, optional: false, required: false get localDisksTotalSizeInGbs() { return this.getNumberAttribute('local_disks_total_size_in_gbs'); } // memory_in_gbs - computed: true, optional: false, required: false get memoryInGbs() { return this.getNumberAttribute('memory_in_gbs'); } // node_type - computed: true, optional: false, required: false get nodeType() { return this.getStringAttribute('node_type'); } // nvmes - computed: true, optional: false, required: false get nvmes() { return this.getNumberAttribute('nvmes'); } // ocpus - computed: true, optional: false, required: false get ocpus() { return this.getNumberAttribute('ocpus'); } // os_version - computed: true, optional: false, required: false get osVersion() { return this.getStringAttribute('os_version'); } // shape - computed: true, optional: false, required: false get shape() { return this.getStringAttribute('shape'); } // ssh_fingerprint - computed: true, optional: false, required: false get sshFingerprint() { return this.getStringAttribute('ssh_fingerprint'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // subnet_id - computed: true, optional: false, required: false get subnetId() { return this.getStringAttribute('subnet_id'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_maintenance_reboot_due - computed: true, optional: false, required: false get timeMaintenanceRebootDue() { return this.getStringAttribute('time_maintenance_reboot_due'); } } exports.BdsBdsInstanceNodesOutputReference = BdsBdsInstanceNodesOutputReference; _e = JSII_RTTI_SYMBOL_1; BdsBdsInstanceNodesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceNodesOutputReference", version: "1.0.0" }; class BdsBdsInstanceNodesList 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 BdsBdsInstanceNodesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BdsBdsInstanceNodesList = BdsBdsInstanceNodesList; _f = JSII_RTTI_SYMBOL_1; BdsBdsInstanceNodesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceNodesList", version: "1.0.0" }; function bdsBdsInstanceCloudSqlDetailsKerberosDetailsToTerraform(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.bdsBdsInstanceCloudSqlDetailsKerberosDetailsToTerraform = bdsBdsInstanceCloudSqlDetailsKerberosDetailsToTerraform; function bdsBdsInstanceCloudSqlDetailsKerberosDetailsToHclTerraform(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.bdsBdsInstanceCloudSqlDetailsKerberosDetailsToHclTerraform = bdsBdsInstanceCloudSqlDetailsKerberosDetailsToHclTerraform; class BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference 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; } } // keytab_file - computed: true, optional: false, required: false get keytabFile() { return this.getStringAttribute('keytab_file'); } // principal_name - computed: true, optional: false, required: false get principalName() { return this.getStringAttribute('principal_name'); } } exports.BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference = BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference; _g = JSII_RTTI_SYMBOL_1; BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference", version: "1.0.0" }; class BdsBdsInstanceCloudSqlDetailsKerberosDetailsList 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 BdsBdsInstanceCloudSqlDetailsKerberosDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BdsBdsInstanceCloudSqlDetailsKerberosDetailsList = BdsBdsInstanceCloudSqlDetailsKerberosDetailsList; _h = JSII_RTTI_SYMBOL_1; BdsBdsInstanceCloudSqlDetailsKerberosDetailsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceCloudSqlDetailsKerberosDetailsList", version: "1.0.0" }; function bdsBdsInstanceCloudSqlDetailsToTerraform(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 { shape: cdktf.stringToTerraform(struct.shape), }; } exports.bdsBdsInstanceCloudSqlDetailsToTerraform = bdsBdsInstanceCloudSqlDetailsToTerraform; function bdsBdsInstanceCloudSqlDetailsToHclTerraform(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 = { shape: { value: cdktf.stringToHclTerraform(struct.shape), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bdsBdsInstanceCloudSqlDetailsToHclTerraform = bdsBdsInstanceCloudSqlDetailsToHclTerraform; class BdsBdsInstanceCloudSqlDetailsOutputReference 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; // kerberos_details - computed: true, optional: false, required: false this._kerberosDetails = new BdsBdsInstanceCloudSqlDetailsKerberosDetailsList(this, "kerberos_details", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._shape !== undefined) { hasAnyValues = true; internalValueResult.shape = this._shape; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._shape = 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._shape = value.shape; } } // block_volume_size_in_gbs - computed: true, optional: false, required: false get blockVolumeSizeInGbs() { return this.getStringAttribute('block_volume_size_in_gbs'); } // ip_address - computed: true, optional: false, required: false get ipAddress() { return this.getStringAttribute('ip_address'); } // is_kerberos_mapped_to_database_users - computed: true, optional: false, required: false get isKerberosMappedToDatabaseUsers() { return this.getBooleanAttribute('is_kerberos_mapped_to_database_users'); } get kerberosDetails() { return this._kerberosDetails; } // memory_in_gbs - computed: true, optional: false, required: false get memoryInGbs() { return this.getNumberAttribute('memory_in_gbs'); } // nvmes - computed: true, optional: false, required: false get nvmes() { return this.getNumberAttribute('nvmes'); } // ocpus - computed: true, optional: false, required: false get ocpus() { return this.getNumberAttribute('ocpus'); } get shape() { return this.getStringAttribute('shape'); } set shape(value) { this._shape = value; } // Temporarily expose input value. Use with caution. get shapeInput() { return this._shape; } } exports.BdsBdsInstanceCloudSqlDetailsOutputReference = BdsBdsInstanceCloudSqlDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; BdsBdsInstanceCloudSqlDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceCloudSqlDetailsOutputReference", version: "1.0.0" }; class BdsBdsInstanceCloudSqlDetailsList 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 BdsBdsInstanceCloudSqlDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BdsBdsInstanceCloudSqlDetailsList = BdsBdsInstanceCloudSqlDetailsList; _k = JSII_RTTI_SYMBOL_1; BdsBdsInstanceCloudSqlDetailsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceCloudSqlDetailsList", version: "1.0.0" }; function bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToTerraform(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 { memory_in_gbs: cdktf.numberToTerraform(struct.memoryInGbs), nvmes: cdktf.numberToTerraform(struct.nvmes), ocpus: cdktf.numberToTerraform(struct.ocpus), }; } exports.bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToTerraform = bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToTerraform; function bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToHclTerraform(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 = { memory_in_gbs: { value: cdktf.numberToHclTerraform(struct.memoryInGbs), isBlock: false, type: "simple", storageClassType: "number", }, nvmes: { value: cdktf.numberToHclTerraform(struct.nvmes), isBlock: false, type: "simple", storageClassType: "number", }, ocpus: { value: cdktf.numberToHclTerraform(struct.ocpus), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToHclTerraform = bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToHclTerraform; class BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference 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._memoryInGbs !== undefined) { hasAnyValues = true; internalValueResult.memoryInGbs = this._memoryInGbs; } if (this._nvmes !== undefined) { hasAnyValues = true; internalValueResult.nvmes = this._nvmes; } if (this._ocpus !== undefined) { hasAnyValues = true; internalValueResult.ocpus = this._ocpus; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._memoryInGbs = undefined; this._nvmes = undefined; this._ocpus = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._memoryInGbs = value.memoryInGbs; this._nvmes = value.nvmes; this._ocpus = value.ocpus; } } get memoryInGbs() { return this.getNumberAttribute('memory_in_gbs'); } set memoryInGbs(value) { this._memoryInGbs = value; } resetMemoryInGbs() { this._memoryInGbs = undefined; } // Temporarily expose input value. Use with caution. get memoryInGbsInput() { return this._memoryInGbs; } get nvmes() { return this.getNumberAttribute('nvmes'); } set nvmes(value) { this._nvmes = value; } resetNvmes() { this._nvmes = undefined; } // Temporarily expose input value. Use with caution. get nvmesInput() { return this._nvmes; } get ocpus() { return this.getNumberAttribute('ocpus'); } set ocpus(value) { this._ocpus = value; } resetOcpus() { this._ocpus = undefined; } // Temporarily expose input value. Use with caution. get ocpusInput() { return this._ocpus; } } exports.BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference = BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference", version: "1.0.0" }; function bdsBdsInstanceComputeOnlyWorkerNodeToTerraform(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 { block_volume_size_in_gbs: cdktf.stringToTerraform(struct.blockVolumeSizeInGbs), number_of_nodes: cdktf.numberToTerraform(struct.numberOfNodes), shape: cdktf.stringToTerraform(struct.shape), subnet_id: cdktf.stringToTerraform(struct.subnetId), shape_config: bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToTerraform(struct.shapeConfig), }; } exports.bdsBdsInstanceComputeOnlyWorkerNodeToTerraform = bdsBdsInstanceComputeOnlyWorkerNodeToTerraform; function bdsBdsInstanceComputeOnlyWorkerNodeToHclTerraform(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 = { block_volume_size_in_gbs: { value: cdktf.stringToHclTerraform(struct.blockVolumeSizeInGbs), isBlock: false, type: "simple", storageClassType: "string", }, number_of_nodes: { value: cdktf.numberToHclTerraform(struct.numberOfNodes), isBlock: false, type: "simple", storageClassType: "number", }, shape: { value: cdktf.stringToHclTerraform(struct.shape), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, shape_config: { value: bdsBdsInstanceComputeOnlyWorkerNodeShapeConfigToHclTerraform(struct.shapeConfig), isBlock: true, type: "list", storageClassType: "BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bdsBdsInstanceComputeOnlyWorkerNodeToHclTerraform = bdsBdsInstanceComputeOnlyWorkerNodeToHclTerraform; class BdsBdsInstanceComputeOnlyWorkerNodeOutputReference 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; // shape_config - computed: false, optional: true, required: false this._shapeConfig = new BdsBdsInstanceComputeOnlyWorkerNodeShapeConfigOutputReference(this, "shape_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._blockVolumeSizeInGbs !== undefined) { hasAnyValues = true; internalValueResult.blockVolumeSizeInGbs = this._blockVolumeSizeInGbs; } if (this._numberOfNodes !== undefined) { hasAnyValues = true; internalValueResult.numberOfNodes = this._numberOfNodes; } if (this._shape !== undefined) { hasAnyValues = true; internalValueResult.shape = this._shape; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._shapeConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.shapeConfig = this._shapeConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._blockVolumeSizeInGbs = undefined; this._numberOfNodes = undefined; this._shape = undefined; this._subnetId = undefined; this._shapeConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._blockVolumeSizeInGbs = value.blockVolumeSizeInGbs; this._numberOfNodes = value.numberOfNodes; this._shape = value.shape; this._subnetId = value.subnetId; this._shapeConfig.internalValue = value.shapeConfig; } } get blockVolumeSizeInGbs() { return this.getStringAttribute('block_volume_size_in_gbs'); } set blockVolumeSizeInGbs(value) { this._blockVolumeSizeInGbs = value; } resetBlockVolumeSizeInGbs() { this._blockVolumeSizeInGbs = undefined; } // Temporarily expose input value. Use with caution. get blockVolumeSizeInGbsInput() { return this._blockVolumeSizeInGbs; } get numberOfNodes() { return this.getNumberAttribute('number_of_nodes'); } set numberOfNodes(value) { this._numberOfNodes = value; } // Temporarily expose input value. Use with caution. get numberOfNodesInput() { return this._numberOfNodes; } get shape() { return this.getStringAttribute('shape'); } set shape(value) { this._shape = value; } // Temporarily expose input value. Use with caution. get shapeInput() { return this._shape; } 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; } get shapeConfig() { return this._shapeConfig; } putShapeConfig(value) { this._shapeConfig.internalValue = value; } resetShapeConfig() { this._shapeConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get shapeConfigInput() { return this._shapeConfig.internalValue; } } exports.BdsBdsInstanceComputeOnlyWorkerNodeOutputReference = BdsBdsInstanceComputeOnlyWorkerNodeOutputReference; _m = JSII_RTTI_SYMBOL_1; BdsBdsInstanceComputeOnlyWorkerNodeOutputReference[_m] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceComputeOnlyWorkerNodeOutputReference", version: "1.0.0" }; function bdsBdsInstanceEdgeNodeShapeConfigToTerraform(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 { memory_in_gbs: cdktf.numberToTerraform(struct.memoryInGbs), nvmes: cdktf.numberToTerraform(struct.nvmes), ocpus: cdktf.numberToTerraform(struct.ocpus), }; } exports.bdsBdsInstanceEdgeNodeShapeConfigToTerraform = bdsBdsInstanceEdgeNodeShapeConfigToTerraform; function bdsBdsInstanceEdgeNodeShapeConfigToHclTerraform(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 = { memory_in_gbs: { value: cdktf.numberToHclTerraform(struct.memoryInGbs), isBlock: false, type: "simple", storageClassType: "number", }, nvmes: { value: cdktf.numberToHclTerraform(struct.nvmes), isBlock: false, type: "simple", storageClassType: "number", }, ocpus: { value: cdktf.numberToHclTerraform(struct.ocpus), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bdsBdsInstanceEdgeNodeShapeConfigToHclTerraform = bdsBdsInstanceEdgeNodeShapeConfigToHclTerraform; class BdsBdsInstanceEdgeNodeShapeConfigOutputReference 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._memoryInGbs !== undefined) { hasAnyValues = true; internalValueResult.memoryInGbs = this._memoryInGbs; } if (this._nvmes !== undefined) { hasAnyValues = true; internalValueResult.nvmes = this._nvmes; } if (this._ocpus !== undefined) { hasAnyValues = true; internalValueResult.ocpus = this._ocpus; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._memoryInGbs = undefined; this._nvmes = undefined; this._ocpus = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._memoryInGbs = value.memoryInGbs; this._nvmes = value.nvmes; this._ocpus = value.ocpus; } } get memoryInGbs() { return this.getNumberAttribute('memory_in_gbs'); } set memoryInGbs(value) { this._memoryInGbs = value; } resetMemoryInGbs() { this._memoryInGbs = undefined; } // Temporarily expose input value. Use with caution. get memoryInGbsInput() { return this._memoryInGbs; } get nvmes() { return this.getNumberAttribute('nvmes'); } set nvmes(value) { this._nvmes = value; } resetNvmes() { this._nvmes = undefined; } // Temporarily expose input value. Use with caution. get nvmesInput() { return this._nvmes; } get ocpus() { return this.getNumberAttribute('ocpus'); } set ocpus(value) { this._ocpus = value; } resetOcpus() { this._ocpus = undefined; } // Temporarily expose input value. Use with caution. get ocpusInput() { return this._ocpus; } } exports.BdsBdsInstanceEdgeNodeShapeConfigOutputReference = BdsBdsInstanceEdgeNodeShapeConfigOutputReference; _o = JSII_RTTI_SYMBOL_1; BdsBdsInstanceEdgeNodeShapeConfigOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.bdsBdsInstance.BdsBdsInstanceEdgeNodeShapeConfigOutputReference", version: "1.0.0" }; function bdsBdsInstanceEdgeNodeToTerraform(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 { block_volume_size_in_gbs: cdktf.stringToTerraform(struct.blockVolumeSizeInGbs), number_of_nodes: cdktf.numberToTerraform(struct.numberOfNodes), shape: cdktf.stringToTerraform(struct.shape), subnet_id: cdktf.stringToTerraform(struct.subnetId), shape_config: bdsBdsInstanceEdgeNodeShapeConfigToTerraform(struct.shapeConfig), }; } exports.bdsBdsInstanceEdgeNodeToTerraform = bdsBdsInstanceEdgeNodeToTerraform; function bdsBdsInstanceEdgeNodeToHclTerraform(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 = { block_volume_size_in_gbs: { value: cdktf.stringToHclTerraform(struct.blockVolumeSizeInGbs), isBlock: false, type: "simple", storageClassType: "string", }, number_of_nodes: { value: cdktf.numberToHclTerraform(struct.numberOfNodes), isBlock: false, type: "simple", storageClassType: "number", }, shape: { value: cdktf.stringToHclTerraform(struct.shape), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, shape_config: { value: bdsBdsInstanceEdgeNodeShapeConfigToHclTerraform(struct.shapeConfig), isBlock: true, type: "list", storageClassType: "BdsBdsInstanceEdgeNodeShapeConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bdsBdsInstanceEdgeNodeToHclTerraform = bdsBdsInstanceEdgeNodeToHclTerraform; class BdsBdsInstanceEdgeNodeOutputReference 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; // shape_config - computed: false, optional: true, required: false this._shapeConfig = new BdsBdsInstanceEdgeNodeShapeConfigOutputReference(this, "shape_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._blockVolumeSizeInGbs !== undefined) { hasAnyValues = true; internalValueResult.blockVolumeSizeInGbs = this._blockVolumeSizeInGbs; } if (this._numberOfNodes !== undefined) { hasAnyValues = true; internalValueResult.numberOfNodes = this._numberO