oci_data_labeling_service_dataset

This resource provides the Dataset resource in Oracle Cloud Infrastructure Data Labeling Service service.

Creates a new Dataset.

Example Usage

resource "oci_data_labeling_service_dataset" "test_dataset" {
	#Required
	annotation_format = var.dataset_annotation_format
	compartment_id = var.compartment_id
	dataset_format_details {
		#Required
		format_type = var.dataset_dataset_format_details_format_type

		#Optional
		text_file_type_metadata {
			#Required
			column_index = var.dataset_dataset_format_details_text_file_type_metadata_column_index
			format_type = var.dataset_dataset_format_details_text_file_type_metadata_format_type

			#Optional
			column_delimiter = var.dataset_dataset_format_details_text_file_type_metadata_column_delimiter
			column_name = var.dataset_dataset_format_details_text_file_type_metadata_column_name
			escape_character = var.dataset_dataset_format_details_text_file_type_metadata_escape_character
			line_delimiter = var.dataset_dataset_format_details_text_file_type_metadata_line_delimiter
		}
	}
	dataset_source_details {
		#Required
		bucket = var.dataset_dataset_source_details_bucket
		namespace = var.dataset_dataset_source_details_namespace
		source_type = var.dataset_dataset_source_details_source_type

		#Optional
		prefix = var.dataset_dataset_source_details_prefix
	}
	label_set {

		#Required
		items {

			#Required
			name = var.dataset_label_set_items_name
		}
	}

	#Optional
	defined_tags = var.dataset_defined_tags
	description = var.dataset_description
	display_name = var.dataset_display_name
	freeform_tags = var.dataset_freeform_tags
	initial_import_dataset_configuration {
		#Required
		import_format {
			#Required
			name = var.dataset_initial_import_dataset_configuration_import_format_name

			#Optional
			version = var.dataset_initial_import_dataset_configuration_import_format_version
		}
		import_metadata_path {
			#Required
			bucket = var.dataset_initial_import_dataset_configuration_import_metadata_path_bucket
			namespace = var.dataset_initial_import_dataset_configuration_import_metadata_path_namespace
			path = var.dataset_initial_import_dataset_configuration_import_metadata_path_path
			source_type = var.dataset_initial_import_dataset_configuration_import_metadata_path_source_type
		}
	}
	initial_record_generation_configuration {
	}
	labeling_instructions = var.dataset_labeling_instructions
}

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

Import

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

$ terraform import oci_data_labeling_service_dataset.test_dataset "id"