oci_generative_ai_imported_model

This resource provides the Imported Model resource in Oracle Cloud Infrastructure Generative AI service.

Import a model from ModelDataSource.

The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the importedModel creation progress.

Example Usage

resource "oci_generative_ai_imported_model" "test_imported_model" {
	#Required
	compartment_id = var.compartment_id
	data_source {

		#Optional
		access_token = var.imported_model_data_source_access_token
		branch = var.imported_model_data_source_branch
		bucket = var.imported_model_data_source_bucket
		commit = var.imported_model_data_source_commit
		model_id = oci_generative_ai_model.test_model.id
		namespace = var.imported_model_data_source_namespace
		prefix_name = var.imported_model_data_source_prefix_name
		region = var.imported_model_data_source_region
		source_type = var.imported_model_data_source_source_type
	}

	#Optional
	capabilities = var.imported_model_capabilities
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.imported_model_description
	display_name = var.imported_model_display_name
	freeform_tags = {"Department"= "Finance"}
	vendor = var.imported_model_vendor
	version = var.imported_model_version
}

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 Imported Model * update - (Defaults to 20 minutes), when updating the Imported Model * delete - (Defaults to 20 minutes), when destroying the Imported Model

Import

ImportedModels can be imported using the id, e.g.

$ terraform import oci_generative_ai_imported_model.test_imported_model "id"