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
    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
}

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"