oci_ai_document_model

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

Create a new model.

Updates the model metadata only selected path parameter.

Example Usage

resource "oci_ai_document_model" "test_model" {
    #Required
    compartment_id = var.compartment_id
    model_id = var.model_model_id
    model_type = var.model_model_type
    project_id = oci_ai_document_project.test_project.id

    #Optional
    alias_name = var.model_alias_name
    component_models {

        #Optional
        model_id = oci_ai_document_model.test_model.id
    }
    defined_tags = var.model_defined_tags
    description = var.model_description
    display_name = var.model_display_name
    freeform_tags = var.model_freeform_tags
    is_quick_mode = var.model_is_quick_mode
    max_training_time_in_hours = var.model_max_training_time_in_hours
    model_version = var.model_model_version
    operations {

        #Optional
        operation = var.model_operations_operation
        path = var.model_operations_path
        value = var.model_operations_value
    }
    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 = var.model_testing_dataset_namespace
        object = var.model_testing_dataset_object
    }
    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 = var.model_training_dataset_namespace
        object = var.model_training_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 = 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_document_model.test_model "id"