oci_datascience_model_custom_metadata_artifact
This resource provides the Model Custom Metadata Artifact resource in Oracle Cloud Infrastructure Data Science service.
Creates model custom metadata artifact for specified model.
Example Usage
resource "oci_datascience_model_custom_metadata_artifact" "test_model_custom_metadata_artifact" {
#Required
model_custom_metadatum_artifact = var.model_custom_metadata_artifact_model_custom_metadatum_artifact
content_length = var.model_custom_metadata_artifact_content_length
metadatum_key_name = oci_kms_key.test_key.name
model_id = oci_datascience_model.test_model.id
#Optional
content_disposition = var.model_custom_metadata_artifact_content_disposition
}
Argument Reference
The following arguments are supported:
model_custom_metadatum_artifact
- (Required) (Updatable) The model custom metadata artifact to upload.content_disposition
- (Optional) (Updatable) This header allows you to specify a filename during upload. This file name is used to dispose of the file contents while downloading the file. If this optional field is not populated in the request, then the OCID of the model is used for the file name when downloading. Example:{"Content-Disposition": "attachment" "filename"="model.tar.gz" "Content-Length": "2347" "Content-Type": "application/gzip"}
content_length
- (Required) (Updatable) The content length of the body.metadatum_key_name
- (Required) The name of the model metadatum in the metadata.model_id
- (Required) The OCID of the model.
** 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 Custom Metadata Artifact
* update
- (Defaults to 20 minutes), when updating the Model Custom Metadata Artifact
* delete
- (Defaults to 20 minutes), when destroying the Model Custom Metadata Artifact
Import
ModelCustomMetadataArtifacts can be imported using the id
, e.g.
$ terraform import oci_datascience_model_custom_metadata_artifact.test_model_custom_metadata_artifact "id"