ProjectArgs

data class ProjectArgs(val description: Output<String>? = null, val name: Output<String>? = null, val policy: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<ProjectArgs>

The project is the resource management unit in Log Service and is used to isolate and control resources. You can manage all the logs and the related log sources of an application by using projects. Refer to details.

NOTE: Available since v1.9.5.

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 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 example = new Project("example", ProjectArgs.builder()
.description("terraform-example")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.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 project can be imported using the id or name, e.g.

$ pulumi import alicloud:log/project:Project example tf-log

Constructors

Link copied to clipboard
fun ProjectArgs(description: Output<String>? = null, name: Output<String>? = null, policy: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

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

Description of the log project.

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

The name of the log project. It is the only in one Alicloud account.

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

Log project policy, used to set a policy for a project.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

Log project tags.