Skip to content

IndexProps

Properties for defining a Index.

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

Initializer

import com.aliyun.ros.cdk.sls.IndexProps;
IndexProps.builder()
    .fullTextIndex(IResolvable)
    .fullTextIndex(FullTextIndexProperty)
    .logstoreName(java.lang.String)
    .logstoreName(IResolvable)
    .projectName(java.lang.String)
    .projectName(IResolvable)
//  .keyIndices(IResolvable)
//  .keyIndices(java.util.List<IResolvable)
//  .keyIndices(KeyIndicesProperty>)
//  .logReduce(java.lang.Boolean)
//  .logReduce(IResolvable)
    .build();

Properties

Name Type Description
fullTextIndex com.aliyun.ros.cdk.core.IResolvable OR FullTextIndexProperty Property fullTextIndex: Full-text indexing configuration.
logstoreName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property logstoreName: Logstore name: 1.
projectName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property projectName: Project name: 1.
keyIndices com.aliyun.ros.cdk.core.IResolvable OR java.util.ListKeyIndicesProperty> Property keyIndices: Key index configurations.
logReduce java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property logReduce: Whether to enable log reduce.

fullTextIndexRequired

public java.lang.Object getFullTextIndex();

Property fullTextIndex: Full-text indexing configuration.

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


logstoreNameRequired

public java.lang.Object getLogstoreName();
  • Type: java.lang.String OR com.aliyun.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.


projectNameRequired

public java.lang.Object getProjectName();
  • Type: java.lang.String OR com.aliyun.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.


keyIndicesOptional

public java.lang.Object getKeyIndices();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListKeyIndicesProperty>

Property keyIndices: Key index configurations.

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


logReduceOptional

public java.lang.Object getLogReduce();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property logReduce: Whether to enable log reduce.

Default to false.