Namespace

class Namespace : KotlinCustomResource

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>

Properties

Link copied to clipboard
val debugEnable: Output<Boolean>

Specifies whether to enable remote debugging.

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

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

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

The ID of the namespace.

Link copied to clipboard
val namespaceName: Output<String>

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

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