NamespaceArgs

data class NamespaceArgs(val debugEnable: Output<Boolean>? = null, val description: Output<String>? = null, val namespaceLogicalId: Output<String>? = null, val namespaceName: Output<String>? = null) : ConvertibleToJava<NamespaceArgs>

Provides a EDAS Namespace resource. For information about EDAS Namespace and how to use it, see What is Namespace.

NOTE: Available since v1.173.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.edas.Namespace;
import com.pulumi.alicloud.edas.NamespaceArgs;
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");
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
.debugEnable(false)
.description(name)
.namespaceLogicalId(String.format("%s:example", defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id())))
.namespaceName(name)
.build());
}
}

Import

EDAS Namespace can be imported using the id, e.g.

$ pulumi import alicloud:edas/namespace:Namespace example <id>

Constructors

Link copied to clipboard
fun NamespaceArgs(debugEnable: Output<Boolean>? = null, description: Output<String>? = null, namespaceLogicalId: Output<String>? = null, namespaceName: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val debugEnable: Output<Boolean>? = null

Specifies whether to enable remote debugging.

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

The description of the namespace, The description can be up to 128 characters in length.

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

The ID of the namespace.

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

The name of the namespace, The name can be up to 63 characters in length.