oci_ai_language_model

This resource provides the Model resource in Oracle Cloud Infrastructure Ai Language service.

Creates a new model for training and train the model with date provided.

Example Usage

resource "oci_ai_language_model" "test_model" {
	#Required
	compartment_id = var.compartment_id
	model_details {
		#Required
		model_type = var.model_model_details_model_type

		#Optional
		classification_mode {
			#Required
			classification_mode = var.model_model_details_classification_mode_classification_mode

			#Optional
			version = var.model_model_details_classification_mode_version
		}
		language_code = var.model_model_details_language_code
		version = var.model_model_details_version
	}
	project_id = oci_ai_language_project.test_project.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.model_description
	display_name = var.model_display_name
	freeform_tags = {"bar-key"= "value"}
	test_strategy {
		#Required
		strategy_type = var.model_test_strategy_strategy_type
		testing_dataset {
			#Required
			dataset_type = var.model_test_strategy_testing_dataset_dataset_type

			#Optional
			dataset_id = oci_data_labeling_service_dataset.test_dataset.id
			location_details {
				#Required
				bucket = var.model_test_strategy_testing_dataset_location_details_bucket
				location_type = var.model_test_strategy_testing_dataset_location_details_location_type
				namespace = var.model_test_strategy_testing_dataset_location_details_namespace
				object_names = var.model_test_strategy_testing_dataset_location_details_object_names
			}
		}

		#Optional
		validation_dataset {
			#Required
			dataset_type = var.model_test_strategy_validation_dataset_dataset_type

			#Optional
			dataset_id = oci_data_labeling_service_dataset.test_dataset.id
			location_details {
				#Required
				bucket = var.model_test_strategy_validation_dataset_location_details_bucket
				location_type = var.model_test_strategy_validation_dataset_location_details_location_type
				namespace = var.model_test_strategy_validation_dataset_location_details_namespace
				object_names = var.model_test_strategy_validation_dataset_location_details_object_names
			}
		}
	}
	training_dataset {
		#Required
		dataset_type = var.model_training_dataset_dataset_type

		#Optional
		dataset_id = oci_data_labeling_service_dataset.test_dataset.id
		location_details {
			#Required
			bucket = var.model_training_dataset_location_details_bucket
			location_type = var.model_training_dataset_location_details_location_type
			namespace = var.model_training_dataset_location_details_namespace
			object_names = var.model_training_dataset_location_details_object_names
		}
	}
}

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

Import

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

$ terraform import oci_ai_language_model.test_model "id"