oci_ai_document_processor_job

This resource provides the Processor Job resource in Oracle Cloud Infrastructure Ai Document service.

Create a processor job for document analysis.

Example Usage

resource "oci_ai_document_processor_job" "test_processor_job" {
	#Required
	compartment_id = var.compartment_id
	input_location {
		#Required
		source_type = var.processor_job_input_location_source_type

		#Optional
		data = var.processor_job_input_location_data
		object_locations {

			#Optional
			bucket = var.processor_job_input_location_object_locations_bucket
			namespace = var.processor_job_input_location_object_locations_namespace
			object = var.processor_job_input_location_object_locations_object
		}
	}
	output_location {
		#Required
		bucket = var.processor_job_output_location_bucket
		namespace = var.processor_job_output_location_namespace
		prefix = var.processor_job_output_location_prefix
	}
	processor_config {
		#Required
		features {
			#Required
			feature_type = var.processor_job_processor_config_features_feature_type

			#Optional
			generate_searchable_pdf = var.processor_job_processor_config_features_generate_searchable_pdf
			max_results = var.processor_job_processor_config_features_max_results
			model_id = oci_ai_document_model.test_model.id
			tenancy_id = oci_identity_tenancy.test_tenancy.id
		}
		processor_type = var.processor_job_processor_config_processor_type

		#Optional
		document_type = var.processor_job_processor_config_document_type
		is_zip_output_enabled = var.processor_job_processor_config_is_zip_output_enabled
		language = var.processor_job_processor_config_language
	}

	#Optional
	display_name = var.processor_job_display_name
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Processor Job * update - (Defaults to 20 minutes), when updating the Processor Job * delete - (Defaults to 20 minutes), when destroying the Processor Job

Import

ProcessorJobs can be imported using the id, e.g.

$ terraform import oci_ai_document_processor_job.test_processor_job "id"