oci_ai_vision_model

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

Creates a new Model.

Example Usage

resource "oci_ai_vision_model" "test_model" {
    #Required
    compartment_id = var.compartment_id
    model_type = var.model_model_type
    project_id = oci_ai_vision_project.test_project.id
    training_dataset {
        #Required
        dataset_type = var.model_training_dataset_dataset_type

        #Optional
        bucket = var.model_training_dataset_bucket
        dataset_id = oci_data_labeling_service_dataset.test_dataset.id
        namespace_name = var.model_training_dataset_namespace
        object = var.model_training_dataset_object
    }

    #Optional
    defined_tags = {"foo-namespace.bar-key"= "value"}
    description = var.model_description
    display_name = var.model_display_name
    freeform_tags = {"bar-key"= "value"}
    is_quick_mode = var.model_is_quick_mode
    max_training_duration_in_hours = var.model_max_training_duration_in_hours
    model_version = var.model_model_version
    testing_dataset {
        #Required
        dataset_type = var.model_testing_dataset_dataset_type

        #Optional
        bucket = var.model_testing_dataset_bucket
        dataset_id = oci_data_labeling_service_dataset.test_dataset.id
        namespace_name = var.model_testing_dataset_namespace
        object = var.model_testing_dataset_object
    }
    validation_dataset {
        #Required
        dataset_type = var.model_validation_dataset_dataset_type

        #Optional
        bucket = var.model_validation_dataset_bucket
        dataset_id = oci_data_labeling_service_dataset.test_dataset.id
        namespace_name = var.model_validation_dataset_namespace
        object = var.model_validation_dataset_object
    }
}

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