oci_datascience_model

This resource provides the Model resource in Oracle Cloud Infrastructure Data Science service.

Creates a new model.

Example Usage

resource "oci_datascience_model" "test_model" {
	#Required
	compartment_id = var.compartment_id
	project_id = oci_datascience_project.test_project.id

	#Optional
	backup_setting {
		#Required
		backup_region = var.model_backup_setting_backup_region
		is_backup_enabled = var.model_backup_setting_is_backup_enabled

		#Optional
		customer_notification_type = var.model_backup_setting_customer_notification_type
	}
	custom_metadata_list {

		#Optional
		category = var.model_custom_metadata_list_category
		description = var.model_custom_metadata_list_description
		key = var.model_custom_metadata_list_key
		value = var.model_custom_metadata_list_value
	}
	defined_metadata_list {

		#Optional
		category = var.model_defined_metadata_list_category
		description = var.model_defined_metadata_list_description
		key = var.model_defined_metadata_list_key
		value = var.model_defined_metadata_list_value
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.model_description
	display_name = var.model_display_name
	freeform_tags = {"Department"= "Finance"}
	input_schema = var.model_input_schema
	output_schema = var.model_output_schema
	retention_setting {
		#Required
		archive_after_days = var.model_retention_setting_archive_after_days

		#Optional
		customer_notification_type = var.model_retention_setting_customer_notification_type
		delete_after_days = var.model_retention_setting_delete_after_days
	}
	version_label = var.model_version_label
}

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