oci_nosql_index

This resource provides the Index resource in Oracle Cloud Infrastructure NoSQL Database service.

Create a new index on the table identified by tableNameOrId.

Example Usage

resource "oci_nosql_index" "test_index" {
	#Required
	keys {
		#Required
		column_name = var.index_keys_column_name

		#Optional
		json_field_type = var.index_keys_json_field_type
		json_path = var.index_keys_json_path
	}
	name = var.index_name
	table_name_or_id = oci_nosql_table_name_or.test_table_name_or.id

	#Optional
	compartment_id = var.compartment_id
	is_if_not_exists = var.index_is_if_not_exists
}

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

Import

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

$ terraform import oci_nosql_index.test_index "tables/{tableNameOrId}/indexes/{indexName}"