Namespace

class Namespace : KotlinCustomResource

Provisions a namespace within a Nomad cluster. Nomad auto-generates a default namespace called default. This namespace cannot be removed, so destroying a nomad.Namespace resource where name = "default" will cause the namespace to be reset to its default configuration.

Example Usage

Registering a namespace:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.Namespace;
import com.pulumi.nomad.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) {
var dev = new Namespace("dev", NamespaceArgs.builder()
.description("Shared development environment.")
.meta(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("owner", "John Doe")
))
.quota("dev")
.build());
}
}

Properties

Link copied to clipboard

(block: <optional>) - A block of capabilities for the namespace. Can't be repeated. See below for the structure of this block.

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

(string: "") - A description of the namespace.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val meta: Output<Map<String, String>>?

(map[string]string: <optional>) - Specifies arbitrary KV metadata to associate with the namespace.

Link copied to clipboard
val name: Output<String>

(string: <required>) - A unique name for the namespace.

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

(string: "") - A resource quota to attach to the namespace.

Link copied to clipboard
val urn: Output<String>