Project

class Project : KotlinCustomResource

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

Properties

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

Description of the log project.

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

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, Any>>?

Log project tags.

Link copied to clipboard
val urn: Output<String>