Resource

class Resource : KotlinCustomResource

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

Properties

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

The meta store's description.

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

The ext info of meta store.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val schema: Output<String>

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>

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

Link copied to clipboard
val urn: Output<String>