UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,220 lines 238 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatascienceJob = exports.DatascienceJobTimeoutsOutputReference = exports.datascienceJobTimeoutsToHclTerraform = exports.datascienceJobTimeoutsToTerraform = exports.DatascienceJobJobStorageMountConfigurationDetailsListStructList = exports.DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference = exports.datascienceJobJobStorageMountConfigurationDetailsListStructToHclTerraform = exports.datascienceJobJobStorageMountConfigurationDetailsListStructToTerraform = exports.DatascienceJobJobLogConfigurationDetailsOutputReference = exports.datascienceJobJobLogConfigurationDetailsToHclTerraform = exports.datascienceJobJobLogConfigurationDetailsToTerraform = exports.DatascienceJobJobInfrastructureConfigurationDetailsOutputReference = exports.datascienceJobJobInfrastructureConfigurationDetailsToHclTerraform = exports.datascienceJobJobInfrastructureConfigurationDetailsToTerraform = exports.DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference = exports.datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToHclTerraform = exports.datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToTerraform = exports.DatascienceJobJobEnvironmentConfigurationDetailsOutputReference = exports.datascienceJobJobEnvironmentConfigurationDetailsToHclTerraform = exports.datascienceJobJobEnvironmentConfigurationDetailsToTerraform = exports.DatascienceJobJobConfigurationDetailsOutputReference = exports.datascienceJobJobConfigurationDetailsToHclTerraform = exports.datascienceJobJobConfigurationDetailsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function datascienceJobJobConfigurationDetailsToTerraform(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 { command_line_arguments: cdktf.stringToTerraform(struct.commandLineArguments), environment_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.environmentVariables), job_type: cdktf.stringToTerraform(struct.jobType), maximum_runtime_in_minutes: cdktf.stringToTerraform(struct.maximumRuntimeInMinutes), }; } exports.datascienceJobJobConfigurationDetailsToTerraform = datascienceJobJobConfigurationDetailsToTerraform; function datascienceJobJobConfigurationDetailsToHclTerraform(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 = { command_line_arguments: { value: cdktf.stringToHclTerraform(struct.commandLineArguments), isBlock: false, type: "simple", storageClassType: "string", }, environment_variables: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.environmentVariables), isBlock: false, type: "map", storageClassType: "stringMap", }, job_type: { value: cdktf.stringToHclTerraform(struct.jobType), isBlock: false, type: "simple", storageClassType: "string", }, maximum_runtime_in_minutes: { value: cdktf.stringToHclTerraform(struct.maximumRuntimeInMinutes), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceJobJobConfigurationDetailsToHclTerraform = datascienceJobJobConfigurationDetailsToHclTerraform; class DatascienceJobJobConfigurationDetailsOutputReference 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._commandLineArguments !== undefined) { hasAnyValues = true; internalValueResult.commandLineArguments = this._commandLineArguments; } if (this._environmentVariables !== undefined) { hasAnyValues = true; internalValueResult.environmentVariables = this._environmentVariables; } if (this._jobType !== undefined) { hasAnyValues = true; internalValueResult.jobType = this._jobType; } if (this._maximumRuntimeInMinutes !== undefined) { hasAnyValues = true; internalValueResult.maximumRuntimeInMinutes = this._maximumRuntimeInMinutes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._commandLineArguments = undefined; this._environmentVariables = undefined; this._jobType = undefined; this._maximumRuntimeInMinutes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._commandLineArguments = value.commandLineArguments; this._environmentVariables = value.environmentVariables; this._jobType = value.jobType; this._maximumRuntimeInMinutes = value.maximumRuntimeInMinutes; } } get commandLineArguments() { return this.getStringAttribute('command_line_arguments'); } set commandLineArguments(value) { this._commandLineArguments = value; } resetCommandLineArguments() { this._commandLineArguments = undefined; } // Temporarily expose input value. Use with caution. get commandLineArgumentsInput() { return this._commandLineArguments; } get environmentVariables() { return this.getStringMapAttribute('environment_variables'); } set environmentVariables(value) { this._environmentVariables = value; } resetEnvironmentVariables() { this._environmentVariables = undefined; } // Temporarily expose input value. Use with caution. get environmentVariablesInput() { return this._environmentVariables; } get jobType() { return this.getStringAttribute('job_type'); } set jobType(value) { this._jobType = value; } // Temporarily expose input value. Use with caution. get jobTypeInput() { return this._jobType; } get maximumRuntimeInMinutes() { return this.getStringAttribute('maximum_runtime_in_minutes'); } set maximumRuntimeInMinutes(value) { this._maximumRuntimeInMinutes = value; } resetMaximumRuntimeInMinutes() { this._maximumRuntimeInMinutes = undefined; } // Temporarily expose input value. Use with caution. get maximumRuntimeInMinutesInput() { return this._maximumRuntimeInMinutes; } } exports.DatascienceJobJobConfigurationDetailsOutputReference = DatascienceJobJobConfigurationDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatascienceJobJobConfigurationDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobConfigurationDetailsOutputReference", version: "1.0.0" }; function datascienceJobJobEnvironmentConfigurationDetailsToTerraform(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 { cmd: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.cmd), entrypoint: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.entrypoint), image: cdktf.stringToTerraform(struct.image), image_digest: cdktf.stringToTerraform(struct.imageDigest), image_signature_id: cdktf.stringToTerraform(struct.imageSignatureId), job_environment_type: cdktf.stringToTerraform(struct.jobEnvironmentType), }; } exports.datascienceJobJobEnvironmentConfigurationDetailsToTerraform = datascienceJobJobEnvironmentConfigurationDetailsToTerraform; function datascienceJobJobEnvironmentConfigurationDetailsToHclTerraform(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 = { cmd: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.cmd), isBlock: false, type: "list", storageClassType: "stringList", }, entrypoint: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.entrypoint), isBlock: false, type: "list", storageClassType: "stringList", }, image: { value: cdktf.stringToHclTerraform(struct.image), isBlock: false, type: "simple", storageClassType: "string", }, image_digest: { value: cdktf.stringToHclTerraform(struct.imageDigest), isBlock: false, type: "simple", storageClassType: "string", }, image_signature_id: { value: cdktf.stringToHclTerraform(struct.imageSignatureId), isBlock: false, type: "simple", storageClassType: "string", }, job_environment_type: { value: cdktf.stringToHclTerraform(struct.jobEnvironmentType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceJobJobEnvironmentConfigurationDetailsToHclTerraform = datascienceJobJobEnvironmentConfigurationDetailsToHclTerraform; class DatascienceJobJobEnvironmentConfigurationDetailsOutputReference 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._cmd !== undefined) { hasAnyValues = true; internalValueResult.cmd = this._cmd; } if (this._entrypoint !== undefined) { hasAnyValues = true; internalValueResult.entrypoint = this._entrypoint; } if (this._image !== undefined) { hasAnyValues = true; internalValueResult.image = this._image; } if (this._imageDigest !== undefined) { hasAnyValues = true; internalValueResult.imageDigest = this._imageDigest; } if (this._imageSignatureId !== undefined) { hasAnyValues = true; internalValueResult.imageSignatureId = this._imageSignatureId; } if (this._jobEnvironmentType !== undefined) { hasAnyValues = true; internalValueResult.jobEnvironmentType = this._jobEnvironmentType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._cmd = undefined; this._entrypoint = undefined; this._image = undefined; this._imageDigest = undefined; this._imageSignatureId = undefined; this._jobEnvironmentType = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cmd = value.cmd; this._entrypoint = value.entrypoint; this._image = value.image; this._imageDigest = value.imageDigest; this._imageSignatureId = value.imageSignatureId; this._jobEnvironmentType = value.jobEnvironmentType; } } get cmd() { return this.getListAttribute('cmd'); } set cmd(value) { this._cmd = value; } resetCmd() { this._cmd = undefined; } // Temporarily expose input value. Use with caution. get cmdInput() { return this._cmd; } get entrypoint() { return this.getListAttribute('entrypoint'); } set entrypoint(value) { this._entrypoint = value; } resetEntrypoint() { this._entrypoint = undefined; } // Temporarily expose input value. Use with caution. get entrypointInput() { return this._entrypoint; } get image() { return this.getStringAttribute('image'); } set image(value) { this._image = value; } // Temporarily expose input value. Use with caution. get imageInput() { return this._image; } get imageDigest() { return this.getStringAttribute('image_digest'); } set imageDigest(value) { this._imageDigest = value; } resetImageDigest() { this._imageDigest = undefined; } // Temporarily expose input value. Use with caution. get imageDigestInput() { return this._imageDigest; } get imageSignatureId() { return this.getStringAttribute('image_signature_id'); } set imageSignatureId(value) { this._imageSignatureId = value; } resetImageSignatureId() { this._imageSignatureId = undefined; } // Temporarily expose input value. Use with caution. get imageSignatureIdInput() { return this._imageSignatureId; } get jobEnvironmentType() { return this.getStringAttribute('job_environment_type'); } set jobEnvironmentType(value) { this._jobEnvironmentType = value; } // Temporarily expose input value. Use with caution. get jobEnvironmentTypeInput() { return this._jobEnvironmentType; } } exports.DatascienceJobJobEnvironmentConfigurationDetailsOutputReference = DatascienceJobJobEnvironmentConfigurationDetailsOutputReference; _b = JSII_RTTI_SYMBOL_1; DatascienceJobJobEnvironmentConfigurationDetailsOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobEnvironmentConfigurationDetailsOutputReference", version: "1.0.0" }; function datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToTerraform(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), ocpus: cdktf.numberToTerraform(struct.ocpus), }; } exports.datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToTerraform = datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToTerraform; function datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToHclTerraform(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", }, 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.datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToHclTerraform = datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToHclTerraform; class DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference 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._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._ocpus = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._memoryInGbs = value.memoryInGbs; 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 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.DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference = DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference", version: "1.0.0" }; function datascienceJobJobInfrastructureConfigurationDetailsToTerraform(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_storage_size_in_gbs: cdktf.numberToTerraform(struct.blockStorageSizeInGbs), job_infrastructure_type: cdktf.stringToTerraform(struct.jobInfrastructureType), shape_name: cdktf.stringToTerraform(struct.shapeName), subnet_id: cdktf.stringToTerraform(struct.subnetId), job_shape_config_details: datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToTerraform(struct.jobShapeConfigDetails), }; } exports.datascienceJobJobInfrastructureConfigurationDetailsToTerraform = datascienceJobJobInfrastructureConfigurationDetailsToTerraform; function datascienceJobJobInfrastructureConfigurationDetailsToHclTerraform(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_storage_size_in_gbs: { value: cdktf.numberToHclTerraform(struct.blockStorageSizeInGbs), isBlock: false, type: "simple", storageClassType: "number", }, job_infrastructure_type: { value: cdktf.stringToHclTerraform(struct.jobInfrastructureType), isBlock: false, type: "simple", storageClassType: "string", }, shape_name: { value: cdktf.stringToHclTerraform(struct.shapeName), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, job_shape_config_details: { value: datascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsToHclTerraform(struct.jobShapeConfigDetails), isBlock: true, type: "list", storageClassType: "DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceJobJobInfrastructureConfigurationDetailsToHclTerraform = datascienceJobJobInfrastructureConfigurationDetailsToHclTerraform; class DatascienceJobJobInfrastructureConfigurationDetailsOutputReference 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; // job_shape_config_details - computed: false, optional: true, required: false this._jobShapeConfigDetails = new DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOutputReference(this, "job_shape_config_details"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._blockStorageSizeInGbs !== undefined) { hasAnyValues = true; internalValueResult.blockStorageSizeInGbs = this._blockStorageSizeInGbs; } if (this._jobInfrastructureType !== undefined) { hasAnyValues = true; internalValueResult.jobInfrastructureType = this._jobInfrastructureType; } if (this._shapeName !== undefined) { hasAnyValues = true; internalValueResult.shapeName = this._shapeName; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._jobShapeConfigDetails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.jobShapeConfigDetails = this._jobShapeConfigDetails?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._blockStorageSizeInGbs = undefined; this._jobInfrastructureType = undefined; this._shapeName = undefined; this._subnetId = undefined; this._jobShapeConfigDetails.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._blockStorageSizeInGbs = value.blockStorageSizeInGbs; this._jobInfrastructureType = value.jobInfrastructureType; this._shapeName = value.shapeName; this._subnetId = value.subnetId; this._jobShapeConfigDetails.internalValue = value.jobShapeConfigDetails; } } get blockStorageSizeInGbs() { return this.getNumberAttribute('block_storage_size_in_gbs'); } set blockStorageSizeInGbs(value) { this._blockStorageSizeInGbs = value; } // Temporarily expose input value. Use with caution. get blockStorageSizeInGbsInput() { return this._blockStorageSizeInGbs; } get jobInfrastructureType() { return this.getStringAttribute('job_infrastructure_type'); } set jobInfrastructureType(value) { this._jobInfrastructureType = value; } // Temporarily expose input value. Use with caution. get jobInfrastructureTypeInput() { return this._jobInfrastructureType; } get shapeName() { return this.getStringAttribute('shape_name'); } set shapeName(value) { this._shapeName = value; } // Temporarily expose input value. Use with caution. get shapeNameInput() { return this._shapeName; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } resetSubnetId() { this._subnetId = undefined; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } get jobShapeConfigDetails() { return this._jobShapeConfigDetails; } putJobShapeConfigDetails(value) { this._jobShapeConfigDetails.internalValue = value; } resetJobShapeConfigDetails() { this._jobShapeConfigDetails.internalValue = undefined; } // Temporarily expose input value. Use with caution. get jobShapeConfigDetailsInput() { return this._jobShapeConfigDetails.internalValue; } } exports.DatascienceJobJobInfrastructureConfigurationDetailsOutputReference = DatascienceJobJobInfrastructureConfigurationDetailsOutputReference; _d = JSII_RTTI_SYMBOL_1; DatascienceJobJobInfrastructureConfigurationDetailsOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobInfrastructureConfigurationDetailsOutputReference", version: "1.0.0" }; function datascienceJobJobLogConfigurationDetailsToTerraform(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 { enable_auto_log_creation: cdktf.booleanToTerraform(struct.enableAutoLogCreation), enable_logging: cdktf.booleanToTerraform(struct.enableLogging), log_group_id: cdktf.stringToTerraform(struct.logGroupId), log_id: cdktf.stringToTerraform(struct.logId), }; } exports.datascienceJobJobLogConfigurationDetailsToTerraform = datascienceJobJobLogConfigurationDetailsToTerraform; function datascienceJobJobLogConfigurationDetailsToHclTerraform(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 = { enable_auto_log_creation: { value: cdktf.booleanToHclTerraform(struct.enableAutoLogCreation), isBlock: false, type: "simple", storageClassType: "boolean", }, enable_logging: { value: cdktf.booleanToHclTerraform(struct.enableLogging), isBlock: false, type: "simple", storageClassType: "boolean", }, log_group_id: { value: cdktf.stringToHclTerraform(struct.logGroupId), isBlock: false, type: "simple", storageClassType: "string", }, log_id: { value: cdktf.stringToHclTerraform(struct.logId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceJobJobLogConfigurationDetailsToHclTerraform = datascienceJobJobLogConfigurationDetailsToHclTerraform; class DatascienceJobJobLogConfigurationDetailsOutputReference 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._enableAutoLogCreation !== undefined) { hasAnyValues = true; internalValueResult.enableAutoLogCreation = this._enableAutoLogCreation; } if (this._enableLogging !== undefined) { hasAnyValues = true; internalValueResult.enableLogging = this._enableLogging; } if (this._logGroupId !== undefined) { hasAnyValues = true; internalValueResult.logGroupId = this._logGroupId; } if (this._logId !== undefined) { hasAnyValues = true; internalValueResult.logId = this._logId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enableAutoLogCreation = undefined; this._enableLogging = undefined; this._logGroupId = undefined; this._logId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enableAutoLogCreation = value.enableAutoLogCreation; this._enableLogging = value.enableLogging; this._logGroupId = value.logGroupId; this._logId = value.logId; } } get enableAutoLogCreation() { return this.getBooleanAttribute('enable_auto_log_creation'); } set enableAutoLogCreation(value) { this._enableAutoLogCreation = value; } resetEnableAutoLogCreation() { this._enableAutoLogCreation = undefined; } // Temporarily expose input value. Use with caution. get enableAutoLogCreationInput() { return this._enableAutoLogCreation; } get enableLogging() { return this.getBooleanAttribute('enable_logging'); } set enableLogging(value) { this._enableLogging = value; } resetEnableLogging() { this._enableLogging = undefined; } // Temporarily expose input value. Use with caution. get enableLoggingInput() { return this._enableLogging; } get logGroupId() { return this.getStringAttribute('log_group_id'); } set logGroupId(value) { this._logGroupId = value; } resetLogGroupId() { this._logGroupId = undefined; } // Temporarily expose input value. Use with caution. get logGroupIdInput() { return this._logGroupId; } get logId() { return this.getStringAttribute('log_id'); } set logId(value) { this._logId = value; } resetLogId() { this._logId = undefined; } // Temporarily expose input value. Use with caution. get logIdInput() { return this._logId; } } exports.DatascienceJobJobLogConfigurationDetailsOutputReference = DatascienceJobJobLogConfigurationDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; DatascienceJobJobLogConfigurationDetailsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobLogConfigurationDetailsOutputReference", version: "1.0.0" }; function datascienceJobJobStorageMountConfigurationDetailsListStructToTerraform(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 { bucket: cdktf.stringToTerraform(struct.bucket), destination_directory_name: cdktf.stringToTerraform(struct.destinationDirectoryName), destination_path: cdktf.stringToTerraform(struct.destinationPath), export_id: cdktf.stringToTerraform(struct.exportId), mount_target_id: cdktf.stringToTerraform(struct.mountTargetId), namespace: cdktf.stringToTerraform(struct.namespace), prefix: cdktf.stringToTerraform(struct.prefix), storage_type: cdktf.stringToTerraform(struct.storageType), }; } exports.datascienceJobJobStorageMountConfigurationDetailsListStructToTerraform = datascienceJobJobStorageMountConfigurationDetailsListStructToTerraform; function datascienceJobJobStorageMountConfigurationDetailsListStructToHclTerraform(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 = { bucket: { value: cdktf.stringToHclTerraform(struct.bucket), isBlock: false, type: "simple", storageClassType: "string", }, destination_directory_name: { value: cdktf.stringToHclTerraform(struct.destinationDirectoryName), isBlock: false, type: "simple", storageClassType: "string", }, destination_path: { value: cdktf.stringToHclTerraform(struct.destinationPath), isBlock: false, type: "simple", storageClassType: "string", }, export_id: { value: cdktf.stringToHclTerraform(struct.exportId), isBlock: false, type: "simple", storageClassType: "string", }, mount_target_id: { value: cdktf.stringToHclTerraform(struct.mountTargetId), isBlock: false, type: "simple", storageClassType: "string", }, namespace: { value: cdktf.stringToHclTerraform(struct.namespace), isBlock: false, type: "simple", storageClassType: "string", }, prefix: { value: cdktf.stringToHclTerraform(struct.prefix), isBlock: false, type: "simple", storageClassType: "string", }, storage_type: { value: cdktf.stringToHclTerraform(struct.storageType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datascienceJobJobStorageMountConfigurationDetailsListStructToHclTerraform = datascienceJobJobStorageMountConfigurationDetailsListStructToHclTerraform; class DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference 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._bucket !== undefined) { hasAnyValues = true; internalValueResult.bucket = this._bucket; } if (this._destinationDirectoryName !== undefined) { hasAnyValues = true; internalValueResult.destinationDirectoryName = this._destinationDirectoryName; } if (this._destinationPath !== undefined) { hasAnyValues = true; internalValueResult.destinationPath = this._destinationPath; } if (this._exportId !== undefined) { hasAnyValues = true; internalValueResult.exportId = this._exportId; } if (this._mountTargetId !== undefined) { hasAnyValues = true; internalValueResult.mountTargetId = this._mountTargetId; } if (this._namespace !== undefined) { hasAnyValues = true; internalValueResult.namespace = this._namespace; } if (this._prefix !== undefined) { hasAnyValues = true; internalValueResult.prefix = this._prefix; } if (this._storageType !== undefined) { hasAnyValues = true; internalValueResult.storageType = this._storageType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._bucket = undefined; this._destinationDirectoryName = undefined; this._destinationPath = undefined; this._exportId = undefined; this._mountTargetId = undefined; this._namespace = undefined; this._prefix = undefined; this._storageType = 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._bucket = value.bucket; this._destinationDirectoryName = value.destinationDirectoryName; this._destinationPath = value.destinationPath; this._exportId = value.exportId; this._mountTargetId = value.mountTargetId; this._namespace = value.namespace; this._prefix = value.prefix; this._storageType = value.storageType; } } get bucket() { return this.getStringAttribute('bucket'); } set bucket(value) { this._bucket = value; } resetBucket() { this._bucket = undefined; } // Temporarily expose input value. Use with caution. get bucketInput() { return this._bucket; } get destinationDirectoryName() { return this.getStringAttribute('destination_directory_name'); } set destinationDirectoryName(value) { this._destinationDirectoryName = value; } // Temporarily expose input value. Use with caution. get destinationDirectoryNameInput() { return this._destinationDirectoryName; } get destinationPath() { return this.getStringAttribute('destination_path'); } set destinationPath(value) { this._destinationPath = value; } resetDestinationPath() { this._destinationPath = undefined; } // Temporarily expose input value. Use with caution. get destinationPathInput() { return this._destinationPath; } get exportId() { return this.getStringAttribute('export_id'); } set exportId(value) { this._exportId = value; } resetExportId() { this._exportId = undefined; } // Temporarily expose input value. Use with caution. get exportIdInput() { return this._exportId; } get mountTargetId() { return this.getStringAttribute('mount_target_id'); } set mountTargetId(value) { this._mountTargetId = value; } resetMountTargetId() { this._mountTargetId = undefined; } // Temporarily expose input value. Use with caution. get mountTargetIdInput() { return this._mountTargetId; } get namespace() { return this.getStringAttribute('namespace'); } set namespace(value) { this._namespace = value; } resetNamespace() { this._namespace = undefined; } // Temporarily expose input value. Use with caution. get namespaceInput() { return this._namespace; } get prefix() { return this.getStringAttribute('prefix'); } set prefix(value) { this._prefix = value; } resetPrefix() { this._prefix = undefined; } // Temporarily expose input value. Use with caution. get prefixInput() { return this._prefix; } get storageType() { return this.getStringAttribute('storage_type'); } set storageType(value) { this._storageType = value; } // Temporarily expose input value. Use with caution. get storageTypeInput() { return this._storageType; } } exports.DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference = DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference; _f = JSII_RTTI_SYMBOL_1; DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference", version: "1.0.0" }; class DatascienceJobJobStorageMountConfigurationDetailsListStructList 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 DatascienceJobJobStorageMountConfigurationDetailsListStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatascienceJobJobStorageMountConfigurationDetailsListStructList = DatascienceJobJobStorageMountConfigurationDetailsListStructList; _g = JSII_RTTI_SYMBOL_1; DatascienceJobJobStorageMountConfigurationDetailsListStructList[_g] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobJobStorageMountConfigurationDetailsListStructList", version: "1.0.0" }; function datascienceJobTimeoutsToTerraform(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.datascienceJobTimeoutsToTerraform = datascienceJobTimeoutsToTerraform; function datascienceJobTimeoutsToHclTerraform(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.datascienceJobTimeoutsToHclTerraform = datascienceJobTimeoutsToHclTerraform; class DatascienceJobTimeoutsOutputReference 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.DatascienceJobTimeoutsOutputReference = DatascienceJobTimeoutsOutputReference; _h = JSII_RTTI_SYMBOL_1; DatascienceJobTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.datascienceJob.DatascienceJobTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/datascience_job oci_datascience_job} */ class DatascienceJob extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DatascienceJob 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 DatascienceJob to import * @p