ResourceArgs

data class ResourceArgs(val description: Output<String>? = null, val extInfo: Output<String>? = null, val name: Output<String>? = null, val schema: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ResourceArgs>

Log resource is a meta store service provided by log service, resource can be used to define meta store's table structure. For information about SLS Resource and how to use it, see Resource management

NOTE: Available in 1.162.0+, log resource region should be set a main region: cn-heyuan

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.log.Resource;
import com.pulumi.alicloud.log.ResourceArgs;
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 example = new Resource("example", ResourceArgs.builder()
.description("user tf test resource desc")
.extInfo("{}")
.schema("{\"schema\":[{\"column\":\"col1\",\"desc\":\"col1 desc\",\"ext_info\":{},\"required\":true,\"type\":\"string\"},{\"column\":\"col2\",\"desc\":\"col2 desc\",\"ext_info\":\"optional\",\"required\":true,\"type\":\"string\"}]}")
.type("userdefine")
.build());
}
}

Import

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

$ pulumi import alicloud:log/resource:Resource example user.tf.test_resource

Constructors

Link copied to clipboard
fun ResourceArgs(description: Output<String>? = null, extInfo: Output<String>? = null, name: Output<String>? = null, schema: Output<String>? = null, type: Output<String>? = null)

Functions

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

Properties

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

The meta store's description.

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

The ext info of meta store.

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

The meta store's name, can be used as table name.

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

The meta store's schema info, which is json string format, used to define table's fields.

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

The meta store's type, userdefine e.g.