NamespaceArgs

data class NamespaceArgs(val capabilities: Output<NamespaceCapabilitiesArgs>? = null, val description: Output<String>? = null, val meta: Output<Map<String, String>>? = null, val name: Output<String>? = null, val quota: Output<String>? = null) : ConvertibleToJava<NamespaceArgs>

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());
}
}

Constructors

Link copied to clipboard
constructor(capabilities: Output<NamespaceCapabilitiesArgs>? = null, description: Output<String>? = null, meta: Output<Map<String, String>>? = null, name: Output<String>? = null, quota: Output<String>? = null)

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>? = null

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

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

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

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

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

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

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

Functions

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