oci_ai_anomaly_detection_model

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

Creates a new Model.

Example Usage

resource "oci_ai_anomaly_detection_model" "test_model" {
	#Required
	compartment_id = var.compartment_id
	model_training_details {
		#Required
		data_asset_ids = var.model_model_training_details_data_asset_ids

		#Optional
		algorithm_hint = var.model_model_training_details_algorithm_hint
		target_fap = var.model_model_training_details_target_fap
		training_fraction = var.model_model_training_details_training_fraction
		window_size = var.model_model_training_details_window_size
	}
	project_id = oci_ai_anomaly_detection_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"}
}

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_anomaly_detection_model.test_model "id"