UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,107 lines 160 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h; Object.defineProperty(exports, "__esModule", { value: true }); exports.OdbCloudVmCluster = exports.OdbCloudVmClusterTimeoutsOutputReference = exports.OdbCloudVmClusterDataCollectionOptionsList = exports.OdbCloudVmClusterDataCollectionOptionsOutputReference = exports.OdbCloudVmClusterIormConfigCacheList = exports.OdbCloudVmClusterIormConfigCacheOutputReference = exports.OdbCloudVmClusterIormConfigCacheDbPlansList = exports.OdbCloudVmClusterIormConfigCacheDbPlansOutputReference = void 0; exports.odbCloudVmClusterIormConfigCacheDbPlansToTerraform = odbCloudVmClusterIormConfigCacheDbPlansToTerraform; exports.odbCloudVmClusterIormConfigCacheDbPlansToHclTerraform = odbCloudVmClusterIormConfigCacheDbPlansToHclTerraform; exports.odbCloudVmClusterIormConfigCacheToTerraform = odbCloudVmClusterIormConfigCacheToTerraform; exports.odbCloudVmClusterIormConfigCacheToHclTerraform = odbCloudVmClusterIormConfigCacheToHclTerraform; exports.odbCloudVmClusterDataCollectionOptionsToTerraform = odbCloudVmClusterDataCollectionOptionsToTerraform; exports.odbCloudVmClusterDataCollectionOptionsToHclTerraform = odbCloudVmClusterDataCollectionOptionsToHclTerraform; exports.odbCloudVmClusterTimeoutsToTerraform = odbCloudVmClusterTimeoutsToTerraform; exports.odbCloudVmClusterTimeoutsToHclTerraform = odbCloudVmClusterTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function odbCloudVmClusterIormConfigCacheDbPlansToTerraform(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 {}; } function odbCloudVmClusterIormConfigCacheDbPlansToHclTerraform(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; } class OdbCloudVmClusterIormConfigCacheDbPlansOutputReference 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; } } // db_name - computed: true, optional: false, required: false get dbName() { return this.getStringAttribute('db_name'); } // flash_cache_limit - computed: true, optional: false, required: false get flashCacheLimit() { return this.getStringAttribute('flash_cache_limit'); } // share - computed: true, optional: false, required: false get share() { return this.getNumberAttribute('share'); } } exports.OdbCloudVmClusterIormConfigCacheDbPlansOutputReference = OdbCloudVmClusterIormConfigCacheDbPlansOutputReference; _a = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterIormConfigCacheDbPlansOutputReference[_a] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterIormConfigCacheDbPlansOutputReference", version: "21.22.1" }; class OdbCloudVmClusterIormConfigCacheDbPlansList 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 OdbCloudVmClusterIormConfigCacheDbPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudVmClusterIormConfigCacheDbPlansList = OdbCloudVmClusterIormConfigCacheDbPlansList; _b = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterIormConfigCacheDbPlansList[_b] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterIormConfigCacheDbPlansList", version: "21.22.1" }; function odbCloudVmClusterIormConfigCacheToTerraform(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 {}; } function odbCloudVmClusterIormConfigCacheToHclTerraform(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; } class OdbCloudVmClusterIormConfigCacheOutputReference 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; // db_plans - computed: true, optional: false, required: false this._dbPlans = new OdbCloudVmClusterIormConfigCacheDbPlansList(this, "db_plans", 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 dbPlans() { return this._dbPlans; } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // lifecycle_state - computed: true, optional: false, required: false get lifecycleState() { return this.getStringAttribute('lifecycle_state'); } // objective - computed: true, optional: false, required: false get objective() { return this.getStringAttribute('objective'); } } exports.OdbCloudVmClusterIormConfigCacheOutputReference = OdbCloudVmClusterIormConfigCacheOutputReference; _c = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterIormConfigCacheOutputReference[_c] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterIormConfigCacheOutputReference", version: "21.22.1" }; class OdbCloudVmClusterIormConfigCacheList 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 OdbCloudVmClusterIormConfigCacheOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudVmClusterIormConfigCacheList = OdbCloudVmClusterIormConfigCacheList; _d = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterIormConfigCacheList[_d] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterIormConfigCacheList", version: "21.22.1" }; function odbCloudVmClusterDataCollectionOptionsToTerraform(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 { is_diagnostics_events_enabled: cdktf.booleanToTerraform(struct.isDiagnosticsEventsEnabled), is_health_monitoring_enabled: cdktf.booleanToTerraform(struct.isHealthMonitoringEnabled), is_incident_logs_enabled: cdktf.booleanToTerraform(struct.isIncidentLogsEnabled), }; } function odbCloudVmClusterDataCollectionOptionsToHclTerraform(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 = { is_diagnostics_events_enabled: { value: cdktf.booleanToHclTerraform(struct.isDiagnosticsEventsEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_health_monitoring_enabled: { value: cdktf.booleanToHclTerraform(struct.isHealthMonitoringEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_incident_logs_enabled: { value: cdktf.booleanToHclTerraform(struct.isIncidentLogsEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbCloudVmClusterDataCollectionOptionsOutputReference 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._isDiagnosticsEventsEnabled !== undefined) { hasAnyValues = true; internalValueResult.isDiagnosticsEventsEnabled = this._isDiagnosticsEventsEnabled; } if (this._isHealthMonitoringEnabled !== undefined) { hasAnyValues = true; internalValueResult.isHealthMonitoringEnabled = this._isHealthMonitoringEnabled; } if (this._isIncidentLogsEnabled !== undefined) { hasAnyValues = true; internalValueResult.isIncidentLogsEnabled = this._isIncidentLogsEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isDiagnosticsEventsEnabled = undefined; this._isHealthMonitoringEnabled = undefined; this._isIncidentLogsEnabled = 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._isDiagnosticsEventsEnabled = value.isDiagnosticsEventsEnabled; this._isHealthMonitoringEnabled = value.isHealthMonitoringEnabled; this._isIncidentLogsEnabled = value.isIncidentLogsEnabled; } } get isDiagnosticsEventsEnabled() { return this.getBooleanAttribute('is_diagnostics_events_enabled'); } set isDiagnosticsEventsEnabled(value) { this._isDiagnosticsEventsEnabled = value; } // Temporarily expose input value. Use with caution. get isDiagnosticsEventsEnabledInput() { return this._isDiagnosticsEventsEnabled; } get isHealthMonitoringEnabled() { return this.getBooleanAttribute('is_health_monitoring_enabled'); } set isHealthMonitoringEnabled(value) { this._isHealthMonitoringEnabled = value; } // Temporarily expose input value. Use with caution. get isHealthMonitoringEnabledInput() { return this._isHealthMonitoringEnabled; } get isIncidentLogsEnabled() { return this.getBooleanAttribute('is_incident_logs_enabled'); } set isIncidentLogsEnabled(value) { this._isIncidentLogsEnabled = value; } // Temporarily expose input value. Use with caution. get isIncidentLogsEnabledInput() { return this._isIncidentLogsEnabled; } } exports.OdbCloudVmClusterDataCollectionOptionsOutputReference = OdbCloudVmClusterDataCollectionOptionsOutputReference; _e = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterDataCollectionOptionsOutputReference[_e] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterDataCollectionOptionsOutputReference", version: "21.22.1" }; class OdbCloudVmClusterDataCollectionOptionsList 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 OdbCloudVmClusterDataCollectionOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudVmClusterDataCollectionOptionsList = OdbCloudVmClusterDataCollectionOptionsList; _f = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterDataCollectionOptionsList[_f] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterDataCollectionOptionsList", version: "21.22.1" }; function odbCloudVmClusterTimeoutsToTerraform(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), }; } function odbCloudVmClusterTimeoutsToHclTerraform(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)); } class OdbCloudVmClusterTimeoutsOutputReference 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.OdbCloudVmClusterTimeoutsOutputReference = OdbCloudVmClusterTimeoutsOutputReference; _g = JSII_RTTI_SYMBOL_1; OdbCloudVmClusterTimeoutsOutputReference[_g] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmClusterTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_vm_cluster aws_odb_cloud_vm_cluster} */ class OdbCloudVmCluster extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a OdbCloudVmCluster 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 OdbCloudVmCluster to import * @param importFromId The id of the existing OdbCloudVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_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 OdbCloudVmCluster to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_odb_cloud_vm_cluster", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_vm_cluster aws_odb_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 OdbCloudVmClusterConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_odb_cloud_vm_cluster', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.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 }); // iorm_config_cache - computed: true, optional: false, required: false this._iormConfigCache = new OdbCloudVmClusterIormConfigCacheList(this, "iorm_config_cache", false); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // data_collection_options - computed: false, optional: true, required: false this._dataCollectionOptions = new OdbCloudVmClusterDataCollectionOptionsList(this, "data_collection_options", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new OdbCloudVmClusterTimeoutsOutputReference(this, "timeouts"); this._cloudExadataInfrastructureArn = config.cloudExadataInfrastructureArn; this._cloudExadataInfrastructureId = config.cloudExadataInfrastructureId; this._clusterName = config.clusterName; this._cpuCoreCount = config.cpuCoreCount; this._dataStorageSizeInTbs = config.dataStorageSizeInTbs; this._dbNodeStorageSizeInGbs = config.dbNodeStorageSizeInGbs; this._dbServers = config.dbServers; this._displayName = config.displayName; this._giVersion = config.giVersion; this._hostnamePrefix = config.hostnamePrefix; this._isLocalBackupEnabled = config.isLocalBackupEnabled; this._isSparseDiskgroupEnabled = config.isSparseDiskgroupEnabled; this._licenseModel = config.licenseModel; this._memorySizeInGbs = config.memorySizeInGbs; this._odbNetworkArn = config.odbNetworkArn; this._odbNetworkId = config.odbNetworkId; this._region = config.region; this._scanListenerPortTcp = config.scanListenerPortTcp; this._sshPublicKeys = config.sshPublicKeys; this._tags = config.tags; this._timezone = config.timezone; this._dataCollectionOptions.internalValue = config.dataCollectionOptions; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get cloudExadataInfrastructureArn() { return this.getStringAttribute('cloud_exadata_infrastructure_arn'); } set cloudExadataInfrastructureArn(value) { this._cloudExadataInfrastructureArn = value; } resetCloudExadataInfrastructureArn() { this._cloudExadataInfrastructureArn = undefined; } // Temporarily expose input value. Use with caution. get cloudExadataInfrastructureArnInput() { return this._cloudExadataInfrastructureArn; } get cloudExadataInfrastructureId() { return this.getStringAttribute('cloud_exadata_infrastructure_id'); } set cloudExadataInfrastructureId(value) { this._cloudExadataInfrastructureId = value; } resetCloudExadataInfrastructureId() { this._cloudExadataInfrastructureId = undefined; } // Temporarily expose input value. Use with caution. get cloudExadataInfrastructureIdInput() { return this._cloudExadataInfrastructureId; } 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; } // compute_model - computed: true, optional: false, required: false get computeModel() { return this.getStringAttribute('compute_model'); } 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; } // created_at - computed: true, optional: false, required: false get createdAt() { return this.getStringAttribute('created_at'); } get dataStorageSizeInTbs() { return this.getNumberAttribute('data_storage_size_in_tbs'); } set dataStorageSizeInTbs(value) { this._dataStorageSizeInTbs = value; } // Temporarily expose input value. Use with caution. get dataStorageSizeInTbsInput() { return this._dataStorageSizeInTbs; } get dbNodeStorageSizeInGbs() { return this.getNumberAttribute('db_node_storage_size_in_gbs'); } set dbNodeStorageSizeInGbs(value) { this._dbNodeStorageSizeInGbs = value; } resetDbNodeStorageSizeInGbs() { this._dbNodeStorageSizeInGbs = undefined; } // Temporarily expose input value. Use with caution. get dbNodeStorageSizeInGbsInput() { return this._dbNodeStorageSizeInGbs; } get dbServers() { return cdktf.Fn.tolist(this.getListAttribute('db_servers')); } set dbServers(value) { this._dbServers = value; } // Temporarily expose input value. Use with caution. get dbServersInput() { return this._dbServers; } // disk_redundancy - computed: true, optional: false, required: false get diskRedundancy() { return this.getStringAttribute('disk_redundancy'); } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } // 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; } // Temporarily expose input value. Use with caution. get giVersionInput() { return this._giVersion; } // gi_version_computed - computed: true, optional: false, required: false get giVersionComputed() { return this.getStringAttribute('gi_version_computed'); } get hostnamePrefix() { return this.getStringAttribute('hostname_prefix'); } set hostnamePrefix(value) { this._hostnamePrefix = value; } // Temporarily expose input value. Use with caution. get hostnamePrefixInput() { return this._hostnamePrefix; } // hostname_prefix_computed - computed: true, optional: false, required: false get hostnamePrefixComputed() { return this.getStringAttribute('hostname_prefix_computed'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } get iormConfigCache() { return this._iormConfigCache; } get isLocalBackupEnabled() { return this.getBooleanAttribute('is_local_backup_enabled'); } set isLocalBackupEnabled(value) { this._isLocalBackupEnabled = value; } resetIsLocalBackupEnabled() { this._isLocalBackupEnabled = undefined; } // Temporarily expose input value. Use with caution. get isLocalBackupEnabledInput() { return this._isLocalBackupEnabled; } get isSparseDiskgroupEnabled() { return this.getBooleanAttribute('is_sparse_diskgroup_enabled'); } set isSparseDiskgroupEnabled(value) { this._isSparseDiskgroupEnabled = value; } resetIsSparseDiskgroupEnabled() { this._isSparseDiskgroupEnabled = undefined; } // Temporarily expose input value. Use with caution. get isSparseDiskgroupEnabledInput() { return this._isSparseDiskgroupEnabled; } // last_update_history_entry_id - computed: true, optional: false, required: false get lastUpdateHistoryEntryId() { return this.getStringAttribute('last_update_history_entry_id'); } get licenseModel() { return this.getStringAttribute('license_model'); } set licenseModel(value) { this._licenseModel = value; } resetLicenseModel() { this._licenseModel = undefined; } // Temporarily expose input value. Use with caution. get licenseModelInput() { return this._licenseModel; } // listener_port - computed: true, optional: false, required: false get listenerPort() { return this.getNumberAttribute('listener_port'); } get memorySizeInGbs() { return this.getNumberAttribute('memory_size_in_gbs'); } set memorySizeInGbs(value) { this._memorySizeInGbs = value; } resetMemorySizeInGbs() { this._memorySizeInGbs = undefined; } // Temporarily expose input value. Use with caution. get memorySizeInGbsInput() { return this._memorySizeInGbs; } // node_count - computed: true, optional: false, required: false get nodeCount() { return this.getNumberAttribute('node_count'); } // oci_resource_anchor_name - computed: true, optional: false, required: false get ociResourceAnchorName() { return this.getStringAttribute('oci_resource_anchor_name'); } // 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 odbNetworkArn() { return this.getStringAttribute('odb_network_arn'); } set odbNetworkArn(value) { this._odbNetworkArn = value; } resetOdbNetworkArn() { this._odbNetworkArn = undefined; } // Temporarily expose input value. Use with caution. get odbNetworkArnInput() { return this._odbNetworkArn; } get odbNetworkId() { return this.getStringAttribute('odb_network_id'); } set odbNetworkId(value) { this._odbNetworkId = value; } resetOdbNetworkId() { this._odbNetworkId = undefined; } // Temporarily expose input value. Use with caution. get odbNetworkIdInput() { return this._odbNetworkId; } // percent_progress - computed: true, optional: false, required: false get percentProgress() { return this.getNumberAttribute('percent_progress'); } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } // scan_dns_name - computed: true, optional: false, required: false get scanDnsName() { return this.getStringAttribute('scan_dns_name'); } // 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'); } get scanListenerPortTcp() { return this.getNumberAttribute('scan_listener_port_tcp'); } set scanListenerPortTcp(value) { this._scanListenerPortTcp = value; } resetScanListenerPortTcp() { this._scanListenerPortTcp = undefined; } // Temporarily expose input value. Use with caution. get scanListenerPortTcpInput() { return this._scanListenerPortTcp; } // shape - computed: true, optional: false, required: false get shape() { return this.getStringAttribute('shape'); } get sshPublicKeys() { return cdktf.Fn.tolist(this.getListAttribute('ssh_public_keys')); } set sshPublicKeys(value) { this._sshPublicKeys = value; } // Temporarily expose input value. Use with caution. get sshPublicKeysInput() { return this._sshPublicKeys; } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } // status_reason - computed: true, optional: false, required: false get statusReason() { return this.getStringAttribute('status_reason'); } // storage_size_in_gbs - computed: true, optional: false, required: false get storageSizeInGbs() { return this.getNumberAttribute('storage_size_in_gbs'); } // system_version - computed: true, optional: false, required: false get systemVersion() { return this.getStringAttribute('system_version'); } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this._tagsAll; } get timezone() { return this.getStringAttribute('timezone'); } set timezone(value) { this._timezone = value; } resetTimezone() { this._timezone = undefined; } // Temporarily expose input value. Use with caution. get timezoneInput() { return this._timezone; } // vip_ids - computed: true, optional: false, required: false get vipIds() { return this.getListAttribute('vip_ids'); } get dataCollectionOptions() { return this._dataCollectionOptions; } putDataCollectionOptions(value) { this._dataCollectionOptions.internalValue = value; } resetDataCollectionOptions() { this._dataCollectionOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dataCollectionOptionsInput() { return this._dataCollectionOptions.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 { cloud_exadata_infrastructure_arn: cdktf.stringToTerraform(this._cloudExadataInfrastructureArn), cloud_exadata_infrastructure_id: cdktf.stringToTerraform(this._cloudExadataInfrastructureId), cluster_name: cdktf.stringToTerraform(this._clusterName), cpu_core_count: cdktf.numberToTerraform(this._cpuCoreCount), data_storage_size_in_tbs: cdktf.numberToTerraform(this._dataStorageSizeInTbs), db_node_storage_size_in_gbs: cdktf.numberToTerraform(this._dbNodeStorageSizeInGbs), db_servers: cdktf.listMapper(cdktf.stringToTerraform, false)(this._dbServers), display_name: cdktf.stringToTerraform(this._displayName), gi_version: cdktf.stringToTerraform(this._giVersion), hostname_prefix: cdktf.stringToTerraform(this._hostnamePrefix), is_local_backup_enabled: cdktf.booleanToTerraform(this._isLocalBackupEnabled), is_sparse_diskgroup_enabled: cdktf.booleanToTerraform(this._isSparseDiskgroupEnabled), license_model: cdktf.stringToTerraform(this._licenseModel), memory_size_in_gbs: cdktf.numberToTerraform(this._memorySizeInGbs), odb_network_arn: cdktf.stringToTerraform(this._odbNetworkArn), odb_network_id: cdktf.stringToTerraform(this._odbNetworkId), region: cdktf.stringToTerraform(this._region), scan_listener_port_tcp: cdktf.numberToTerraform(this._scanListenerPortTcp), ssh_public_keys: cdktf.listMapper(cdktf.stringToTerraform, false)(this._sshPublicKeys), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), timezone: cdktf.stringToTerraform(this._timezone), data_collection_options: cdktf.listMapper(odbCloudVmClusterDataCollectionOptionsToTerraform, true)(this._dataCollectionOptions.internalValue), timeouts: odbCloudVmClusterTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { cloud_exadata_infrastructure_arn: { value: cdktf.stringToHclTerraform(this._cloudExadataInfrastructureArn), isBlock: false, type: "simple", storageClassType: "string", }, cloud_exadata_infrastructure_id: { value: cdktf.stringToHclTerraform(this._cloudExadataInfrastructureId), isBlock: false, type: "simple", storageClassType: "string", }, cluster_name: { value: cdktf.stringToHclTerraform(this._clusterName), isBlock: false, type: "simple", storageClassType: "string", }, cpu_core_count: { value: cdktf.numberToHclTerraform(this._cpuCoreCount), isBlock: false, type: "simple", storageClassType: "number", }, data_storage_size_in_tbs: { value: cdktf.numberToHclTerraform(this._dataStorageSizeInTbs), isBlock: false, type: "simple", storageClassType: "number", }, db_node_storage_size_in_gbs: { value: cdktf.numberToHclTerraform(this._dbNodeStorageSizeInGbs), isBlock: false, type: "simple", storageClassType: "number", }, db_servers: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._dbServers), isBlock: false, type: "set", storageClassType: "stringList", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, gi_version: { value: cdktf.stringToHclTerraform(this._giVersion), isBlock: false, type: "simple", storageClassType: "string", }, hostname_prefix: { value: cdktf.stringToHclTerraform(this._hostnamePrefix), isBlock: false, type: "simple", storageClassType: "string", }, is_local_backup_enabled: { value: cdktf.booleanToHclTerraform(this._isLocalBackupEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, is_sparse_diskgroup_enabled: { value: cdktf.booleanToHclTerraform(this._isSparseDiskgroupEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, license_model: { value: cdktf.stringToHclTerraform(this._licenseModel), isBlock: false, type: "simple", storageClassType: "string", }, memory_size_in_gbs: { value: cdktf.numberToHclTerraform(this._memorySizeInGbs), isBlock: false, type: "simple", storageClassType: "number", }, odb_network_arn: { value: cdktf.stringToHclTerraform(this._odbNetworkArn), isBlock: false, type: "simple", storageClassType: "string", }, odb_network_id: { value: cdktf.stringToHclTerraform(this._odbNetworkId), isBlock: false, type: "simple", storageClassType: "string", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, scan_listener_port_tcp: { value: cdktf.numberToHclTerraform(this._scanListenerPortTcp), isBlock: false, type: "simple", storageClassType: "number", }, ssh_public_keys: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._sshPublicKeys), isBlock: false, type: "set", storageClassType: "stringList", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, timezone: { value: cdktf.stringToHclTerraform(this._timezone), isBlock: false, type: "simple", storageClassType: "string", }, data_collection_options: { value: cdktf.listMapperHcl(odbCloudVmClusterDataCollectionOptionsToHclTerraform, true)(this._dataCollectionOptions.internalValue), isBlock: true, type: "list", storageClassType: "OdbCloudVmClusterDataCollectionOptionsList", }, timeouts: { value: odbCloudVmClusterTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "OdbCloudVmClusterTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.OdbCloudVmCluster = OdbCloudVmCluster; _h = JSII_RTTI_SYMBOL_1; OdbCloudVmCluster[_h] = { fqn: "@cdktf/provider-aws.odbCloudVmCluster.OdbCloudVmCluster", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= OdbCloudVmCluster.tfResourceType = "aws_odb_cloud_vm_cluster"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb2RiLWNsb3VkLXZtLWNsdXN0ZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQTBKQSxnSEFPQztBQUdELHNIQVFDO0FBbUVELGtHQU9DO0FBR0Qsd0dBUUM7QUFxRkQsOEdBVUM7QUFHRCxvSEE0QkM7QUEwSUQsb0ZBVUM7QUFHRCwwRkE0QkM7O0FBemlCRCwrQkFBK0I7QUFpSi9CLFNBQWdCLGtEQUFrRCxDQUFDLE1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