SearchIndexArgs

data class SearchIndexArgs(val indexName: Output<String>? = null, val instanceName: Output<String>? = null, val schemas: Output<List<SearchIndexSchemaArgs>>? = null, val tableName: Output<String>? = null, val timeToLive: Output<Int>? = null) : ConvertibleToJava<SearchIndexArgs>

Provides an OTS search index resource. For information about OTS search index and how to use it, see Search index overview.

NOTE: Available since v1.187.0.

Example Usage

No Java example available.

Import

OTS search index can be imported using id, e.g.

$ pulumi import alicloud:ots/searchIndex:SearchIndex index1 <instance_name>:<table_name>:<index_name>:<index_type>

Constructors

Link copied to clipboard
fun SearchIndexArgs(indexName: Output<String>? = null, instanceName: Output<String>? = null, schemas: Output<List<SearchIndexSchemaArgs>>? = null, tableName: Output<String>? = null, timeToLive: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SearchIndexArgs

Properties

Link copied to clipboard
val indexName: Output<String>? = null

The index name of the OTS Table. If changed, a new index would be created.

Link copied to clipboard
val instanceName: Output<String>? = null

The name of the OTS instance in which table will located.

Link copied to clipboard
val schemas: Output<List<SearchIndexSchemaArgs>>? = null

The schema of the search index. If changed, a new index would be created. See schema below.

Link copied to clipboard
val tableName: Output<String>? = null

The name of the OTS table. If changed, a new table would be created.

Link copied to clipboard
val timeToLive: Output<Int>? = null

The index type of the OTS Table. Specifies the retention period of data in the search index. Unit: seconds. Default value: -1. If the retention period exceeds the TTL value, OTS automatically deletes expired data.