UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,130 lines 318 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatasciencePipeline = exports.DatasciencePipelineTimeoutsOutputReference = exports.datasciencePipelineTimeoutsToHclTerraform = exports.datasciencePipelineTimeoutsToTerraform = exports.DatasciencePipelineStepDetailsList = exports.DatasciencePipelineStepDetailsOutputReference = exports.datasciencePipelineStepDetailsToHclTerraform = exports.datasciencePipelineStepDetailsToTerraform = exports.DatasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsOutputReference = exports.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsToHclTerraform = exports.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsToTerraform = exports.DatasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference = exports.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform = exports.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform = exports.DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference = exports.datasciencePipelineStepDetailsStepContainerConfigurationDetailsToHclTerraform = exports.datasciencePipelineStepDetailsStepContainerConfigurationDetailsToTerraform = exports.DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference = exports.datasciencePipelineStepDetailsStepConfigurationDetailsToHclTerraform = exports.datasciencePipelineStepDetailsStepConfigurationDetailsToTerraform = exports.DatasciencePipelineStepArtifactList = exports.DatasciencePipelineStepArtifactOutputReference = exports.datasciencePipelineStepArtifactToHclTerraform = exports.datasciencePipelineStepArtifactToTerraform = exports.DatasciencePipelineLogConfigurationDetailsOutputReference = exports.datasciencePipelineLogConfigurationDetailsToHclTerraform = exports.datasciencePipelineLogConfigurationDetailsToTerraform = exports.DatasciencePipelineInfrastructureConfigurationDetailsOutputReference = exports.datasciencePipelineInfrastructureConfigurationDetailsToHclTerraform = exports.datasciencePipelineInfrastructureConfigurationDetailsToTerraform = exports.DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference = exports.datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform = exports.datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform = exports.DatasciencePipelineConfigurationDetailsOutputReference = exports.datasciencePipelineConfigurationDetailsToHclTerraform = exports.datasciencePipelineConfigurationDetailsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function datasciencePipelineConfigurationDetailsToTerraform(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), maximum_runtime_in_minutes: cdktf.stringToTerraform(struct.maximumRuntimeInMinutes), type: cdktf.stringToTerraform(struct.type), }; } exports.datasciencePipelineConfigurationDetailsToTerraform = datasciencePipelineConfigurationDetailsToTerraform; function datasciencePipelineConfigurationDetailsToHclTerraform(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", }, maximum_runtime_in_minutes: { value: cdktf.stringToHclTerraform(struct.maximumRuntimeInMinutes), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datasciencePipelineConfigurationDetailsToHclTerraform = datasciencePipelineConfigurationDetailsToHclTerraform; class DatasciencePipelineConfigurationDetailsOutputReference 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._maximumRuntimeInMinutes !== undefined) { hasAnyValues = true; internalValueResult.maximumRuntimeInMinutes = this._maximumRuntimeInMinutes; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._commandLineArguments = undefined; this._environmentVariables = undefined; this._maximumRuntimeInMinutes = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._commandLineArguments = value.commandLineArguments; this._environmentVariables = value.environmentVariables; this._maximumRuntimeInMinutes = value.maximumRuntimeInMinutes; this._type = value.type; } } 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 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; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.DatasciencePipelineConfigurationDetailsOutputReference = DatasciencePipelineConfigurationDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; DatasciencePipelineConfigurationDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineConfigurationDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform(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.datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform = datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform; function datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform(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.datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform = datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform; class DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference 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.DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference = DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference; _b = JSII_RTTI_SYMBOL_1; DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineInfrastructureConfigurationDetailsToTerraform(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), shape_name: cdktf.stringToTerraform(struct.shapeName), subnet_id: cdktf.stringToTerraform(struct.subnetId), shape_config_details: datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform(struct.shapeConfigDetails), }; } exports.datasciencePipelineInfrastructureConfigurationDetailsToTerraform = datasciencePipelineInfrastructureConfigurationDetailsToTerraform; function datasciencePipelineInfrastructureConfigurationDetailsToHclTerraform(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", }, 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", }, shape_config_details: { value: datasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform(struct.shapeConfigDetails), isBlock: true, type: "list", storageClassType: "DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datasciencePipelineInfrastructureConfigurationDetailsToHclTerraform = datasciencePipelineInfrastructureConfigurationDetailsToHclTerraform; class DatasciencePipelineInfrastructureConfigurationDetailsOutputReference 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_details - computed: false, optional: true, required: false this._shapeConfigDetails = new DatasciencePipelineInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference(this, "shape_config_details"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._blockStorageSizeInGbs !== undefined) { hasAnyValues = true; internalValueResult.blockStorageSizeInGbs = this._blockStorageSizeInGbs; } if (this._shapeName !== undefined) { hasAnyValues = true; internalValueResult.shapeName = this._shapeName; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._shapeConfigDetails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.shapeConfigDetails = this._shapeConfigDetails?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._blockStorageSizeInGbs = undefined; this._shapeName = undefined; this._subnetId = undefined; this._shapeConfigDetails.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._blockStorageSizeInGbs = value.blockStorageSizeInGbs; this._shapeName = value.shapeName; this._subnetId = value.subnetId; this._shapeConfigDetails.internalValue = value.shapeConfigDetails; } } 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 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 shapeConfigDetails() { return this._shapeConfigDetails; } putShapeConfigDetails(value) { this._shapeConfigDetails.internalValue = value; } resetShapeConfigDetails() { this._shapeConfigDetails.internalValue = undefined; } // Temporarily expose input value. Use with caution. get shapeConfigDetailsInput() { return this._shapeConfigDetails.internalValue; } } exports.DatasciencePipelineInfrastructureConfigurationDetailsOutputReference = DatasciencePipelineInfrastructureConfigurationDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; DatasciencePipelineInfrastructureConfigurationDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineInfrastructureConfigurationDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineLogConfigurationDetailsToTerraform(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.datasciencePipelineLogConfigurationDetailsToTerraform = datasciencePipelineLogConfigurationDetailsToTerraform; function datasciencePipelineLogConfigurationDetailsToHclTerraform(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.datasciencePipelineLogConfigurationDetailsToHclTerraform = datasciencePipelineLogConfigurationDetailsToHclTerraform; class DatasciencePipelineLogConfigurationDetailsOutputReference 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.DatasciencePipelineLogConfigurationDetailsOutputReference = DatasciencePipelineLogConfigurationDetailsOutputReference; _d = JSII_RTTI_SYMBOL_1; DatasciencePipelineLogConfigurationDetailsOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineLogConfigurationDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineStepArtifactToTerraform(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 { artifact_content_disposition: cdktf.stringToTerraform(struct.artifactContentDisposition), artifact_content_length: cdktf.stringToTerraform(struct.artifactContentLength), pipeline_step_artifact: cdktf.stringToTerraform(struct.pipelineStepArtifact), step_name: cdktf.stringToTerraform(struct.stepName), }; } exports.datasciencePipelineStepArtifactToTerraform = datasciencePipelineStepArtifactToTerraform; function datasciencePipelineStepArtifactToHclTerraform(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 = { artifact_content_disposition: { value: cdktf.stringToHclTerraform(struct.artifactContentDisposition), isBlock: false, type: "simple", storageClassType: "string", }, artifact_content_length: { value: cdktf.stringToHclTerraform(struct.artifactContentLength), isBlock: false, type: "simple", storageClassType: "string", }, pipeline_step_artifact: { value: cdktf.stringToHclTerraform(struct.pipelineStepArtifact), isBlock: false, type: "simple", storageClassType: "string", }, step_name: { value: cdktf.stringToHclTerraform(struct.stepName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datasciencePipelineStepArtifactToHclTerraform = datasciencePipelineStepArtifactToHclTerraform; class DatasciencePipelineStepArtifactOutputReference 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._artifactContentDisposition !== undefined) { hasAnyValues = true; internalValueResult.artifactContentDisposition = this._artifactContentDisposition; } if (this._artifactContentLength !== undefined) { hasAnyValues = true; internalValueResult.artifactContentLength = this._artifactContentLength; } if (this._pipelineStepArtifact !== undefined) { hasAnyValues = true; internalValueResult.pipelineStepArtifact = this._pipelineStepArtifact; } if (this._stepName !== undefined) { hasAnyValues = true; internalValueResult.stepName = this._stepName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._artifactContentDisposition = undefined; this._artifactContentLength = undefined; this._pipelineStepArtifact = undefined; this._stepName = 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._artifactContentDisposition = value.artifactContentDisposition; this._artifactContentLength = value.artifactContentLength; this._pipelineStepArtifact = value.pipelineStepArtifact; this._stepName = value.stepName; } } get artifactContentDisposition() { return this.getStringAttribute('artifact_content_disposition'); } set artifactContentDisposition(value) { this._artifactContentDisposition = value; } resetArtifactContentDisposition() { this._artifactContentDisposition = undefined; } // Temporarily expose input value. Use with caution. get artifactContentDispositionInput() { return this._artifactContentDisposition; } get artifactContentLength() { return this.getStringAttribute('artifact_content_length'); } set artifactContentLength(value) { this._artifactContentLength = value; } // Temporarily expose input value. Use with caution. get artifactContentLengthInput() { return this._artifactContentLength; } // artifact_content_md5 - computed: true, optional: false, required: false get artifactContentMd5() { return this.getStringAttribute('artifact_content_md5'); } // artifact_last_modified - computed: true, optional: false, required: false get artifactLastModified() { return this.getStringAttribute('artifact_last_modified'); } get pipelineStepArtifact() { return this.getStringAttribute('pipeline_step_artifact'); } set pipelineStepArtifact(value) { this._pipelineStepArtifact = value; } // Temporarily expose input value. Use with caution. get pipelineStepArtifactInput() { return this._pipelineStepArtifact; } get stepName() { return this.getStringAttribute('step_name'); } set stepName(value) { this._stepName = value; } // Temporarily expose input value. Use with caution. get stepNameInput() { return this._stepName; } } exports.DatasciencePipelineStepArtifactOutputReference = DatasciencePipelineStepArtifactOutputReference; _e = JSII_RTTI_SYMBOL_1; DatasciencePipelineStepArtifactOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineStepArtifactOutputReference", version: "1.0.0" }; class DatasciencePipelineStepArtifactList 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 DatasciencePipelineStepArtifactOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DatasciencePipelineStepArtifactList = DatasciencePipelineStepArtifactList; _f = JSII_RTTI_SYMBOL_1; DatasciencePipelineStepArtifactList[_f] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineStepArtifactList", version: "1.0.0" }; function datasciencePipelineStepDetailsStepConfigurationDetailsToTerraform(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), maximum_runtime_in_minutes: cdktf.stringToTerraform(struct.maximumRuntimeInMinutes), }; } exports.datasciencePipelineStepDetailsStepConfigurationDetailsToTerraform = datasciencePipelineStepDetailsStepConfigurationDetailsToTerraform; function datasciencePipelineStepDetailsStepConfigurationDetailsToHclTerraform(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", }, 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.datasciencePipelineStepDetailsStepConfigurationDetailsToHclTerraform = datasciencePipelineStepDetailsStepConfigurationDetailsToHclTerraform; class DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference 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._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._maximumRuntimeInMinutes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._commandLineArguments = value.commandLineArguments; this._environmentVariables = value.environmentVariables; 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 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.DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference = DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference; _g = JSII_RTTI_SYMBOL_1; DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineStepDetailsStepConfigurationDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineStepDetailsStepContainerConfigurationDetailsToTerraform(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), container_type: cdktf.stringToTerraform(struct.containerType), 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), }; } exports.datasciencePipelineStepDetailsStepContainerConfigurationDetailsToTerraform = datasciencePipelineStepDetailsStepContainerConfigurationDetailsToTerraform; function datasciencePipelineStepDetailsStepContainerConfigurationDetailsToHclTerraform(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", }, container_type: { value: cdktf.stringToHclTerraform(struct.containerType), isBlock: false, type: "simple", storageClassType: "string", }, 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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.datasciencePipelineStepDetailsStepContainerConfigurationDetailsToHclTerraform = datasciencePipelineStepDetailsStepContainerConfigurationDetailsToHclTerraform; class DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference 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._containerType !== undefined) { hasAnyValues = true; internalValueResult.containerType = this._containerType; } 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._cmd = undefined; this._containerType = undefined; this._entrypoint = undefined; this._image = undefined; this._imageDigest = undefined; this._imageSignatureId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cmd = value.cmd; this._containerType = value.containerType; this._entrypoint = value.entrypoint; this._image = value.image; this._imageDigest = value.imageDigest; this._imageSignatureId = value.imageSignatureId; } } 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 containerType() { return this.getStringAttribute('container_type'); } set containerType(value) { this._containerType = value; } // Temporarily expose input value. Use with caution. get containerTypeInput() { return this._containerType; } 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; } } exports.DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference = DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference; _h = JSII_RTTI_SYMBOL_1; DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.datasciencePipeline.DatasciencePipelineStepDetailsStepContainerConfigurationDetailsOutputReference", version: "1.0.0" }; function datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform(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.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform = datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToTerraform; function datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform(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.datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform = datasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsToHclTerraform; class DatasciencePipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsOutputReference 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.memoryI