oci_ai_vision_stream_job

This resource provides the Stream Job resource in Oracle Cloud Infrastructure Ai Vision service.

Create a stream analysis job with given inputs and features.

Example Usage

resource "oci_ai_vision_stream_job" "test_stream_job" {
	#Required
	compartment_id = var.compartment_id
	features {
		#Required
		feature_type = var.stream_job_features_feature_type

		#Optional
		max_results = var.stream_job_features_max_results
		should_return_landmarks = var.stream_job_features_should_return_landmarks
		tracking_types {

			#Optional
			biometric_store_compartment_id = oci_identity_compartment.test_compartment.id
			biometric_store_id = oci_ai_vision_biometric_store.test_biometric_store.id
			detection_model_id = oci_ai_vision_model.test_model.id
			max_results = var.stream_job_features_tracking_types_max_results
			objects = var.stream_job_features_tracking_types_objects
			should_return_landmarks = var.stream_job_features_tracking_types_should_return_landmarks
			tracking_model_id = oci_ai_vision_model.test_model.id
		}
	}
	stream_output_location {
		#Required
		bucket = var.stream_job_stream_output_location_bucket
		namespace = var.stream_job_stream_output_location_namespace
		output_location_type = var.stream_job_stream_output_location_output_location_type
		prefix = var.stream_job_stream_output_location_prefix

		#Optional
		obo_token = var.stream_job_stream_output_location_obo_token
	}
	stream_source_id = oci_ai_vision_stream_source.test_stream_source.id

	#Optional
	defined_tags = var.stream_job_defined_tags
	display_name = var.stream_job_display_name
	freeform_tags = var.stream_job_freeform_tags
}

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 Stream Job * update - (Defaults to 20 minutes), when updating the Stream Job * delete - (Defaults to 20 minutes), when destroying the Stream Job

Import

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

$ terraform import oci_ai_vision_stream_job.test_stream_job "id"