StoreArgs

data class StoreArgs(val appendMeta: Output<Boolean>? = null, val autoSplit: Output<Boolean>? = null, val enableWebTracking: Output<Boolean>? = null, val encryptConf: Output<StoreEncryptConfArgs>? = null, val hotTtl: Output<Int>? = null, val maxSplitShardCount: Output<Int>? = null, val mode: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val retentionPeriod: Output<Int>? = null, val shardCount: Output<Int>? = null, val telemetryType: Output<String>? = null) : ConvertibleToJava<StoreArgs>

The log store is a unit in Log Service to collect, store, and query the log data. Each log store belongs to a project, and each project can create multiple Logstores. Refer to details

NOTE: Available since v1.0.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new RandomInteger("default", RandomIntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(exampleProject.name())
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
}
}

Module Support

You can use the existing sls module to create SLS project, store and store index one-click, like ECS instances.

Import

Log store can be imported using the id, e.g.

$ pulumi import alicloud:log/store:Store example tf-log:tf-log-store

Constructors

Link copied to clipboard
fun StoreArgs(appendMeta: Output<Boolean>? = null, autoSplit: Output<Boolean>? = null, enableWebTracking: Output<Boolean>? = null, encryptConf: Output<StoreEncryptConfArgs>? = null, hotTtl: Output<Int>? = null, maxSplitShardCount: Output<Int>? = null, mode: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, retentionPeriod: Output<Int>? = null, shardCount: Output<Int>? = null, telemetryType: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val appendMeta: Output<Boolean>? = null

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

Link copied to clipboard
val autoSplit: Output<Boolean>? = null

Determines whether to automatically split a shard. Default to false.

Link copied to clipboard
val enableWebTracking: Output<Boolean>? = null

Determines whether to enable Web Tracking. Default false.

Link copied to clipboard
val encryptConf: Output<StoreEncryptConfArgs>? = null

Encrypted storage of data, providing data static protection capability, encrypt_conf can be updated since 1.188.0+ (only enable change is supported when updating logstore). See encrypt_conf below.

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

The ttl of hot storage. Default to 30, at least 30, hot storage ttl must be less than ttl.

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

The maximum number of shards for automatic split, which is in the range of 1 to 256. You must specify this parameter when autoSplit is true.

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

The mode of storage. Default to standard, must be standard or query.

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

The log store, which is unique in the same project.

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

The project name to the log store belongs.

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

The data retention time (in days). Valid values: 1-3650. Default to 30. Log store data will be stored permanently when the value is 3650.

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

The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. Refer to details

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

Determines whether store type is metric. Metrics means metric store, empty means log store.