Skip to content

IndexProps

Properties for defining a Index.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-index

Initializer

import ros_cdk_sls
ros_cdk_sls.IndexProps(
  full_text_index: typing.Union[IResolvable, FullTextIndexProperty],
  logstore_name: typing.Union[str, IResolvable],
  project_name: typing.Union[str, IResolvable],
  key_indices: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyIndicesProperty]]] = None,
  log_reduce: typing.Union[bool, IResolvable] = None
)

Properties

Name Type Description
full_text_index typing.Union[ros_cdk_core.IResolvable, FullTextIndexProperty] Property fullTextIndex: Full-text indexing configuration.
logstore_name typing.Union[str, ros_cdk_core.IResolvable] Property logstoreName: Logstore name: 1.
project_name typing.Union[str, ros_cdk_core.IResolvable] Property projectName: Project name: 1.
key_indices typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, KeyIndicesProperty]]] Property keyIndices: Key index configurations.
log_reduce typing.Union[bool, ros_cdk_core.IResolvable] Property logReduce: Whether to enable log reduce.

full_text_indexRequired

full_text_index: typing.Union[IResolvable, FullTextIndexProperty]

Property fullTextIndex: Full-text indexing configuration.

Full-text indexing and key indexing must have at least one enabled.


logstore_nameRequired

logstore_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property logstoreName: Logstore name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


project_nameRequired

project_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property projectName: Project name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


key_indicesOptional

key_indices: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyIndicesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, KeyIndicesProperty]]]

Property keyIndices: Key index configurations.

Full-text indexing and key indexing must have at least one enabled.


log_reduceOptional

log_reduce: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property logReduce: Whether to enable log reduce.

Default to false.