ProjectArgs

data class ProjectArgs(val comment: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<ProjectArgs>

The project is the basic unit of resource management in Datahub Service and is used to isolate and control resources. It contains a set of Topics. You can manage the datahub sources of an application by using projects. Refer to details.

NOTE: Available since v1.19.0. NOTE: Currently Datahub service only can be supported in the regions: cn-beijing, cn-hangzhou, cn-shanghai, cn-shenzhen, ap-southeast-1.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.datahub.Project;
import com.pulumi.alicloud.datahub.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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
var example = new Project("example", ProjectArgs.builder()
.comment("created by terraform")
.build());
}
}

Import

Datahub project can be imported using the name or ID, e.g.

$ pulumi import alicloud:datahub/project:Project example tf_datahub_project

Constructors

Link copied to clipboard
fun ProjectArgs(comment: Output<String>? = null, name: Output<String>? = null)

Functions

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

Properties

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

Comment of the datahub project. It cannot be longer than 255 characters.

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

The name of the datahub project. Its length is limited to 3-32 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.