NamespaceArgs

data class NamespaceArgs(val customMetadata: Output<Map<String, String>>? = null, val namespace: Output<String>? = null, val path: Output<String>? = null, val pathFq: Output<String>? = null) : ConvertibleToJava<NamespaceArgs>

Import

Namespaces can be imported using its name as accessor id

$ pulumi import vault:index/namespace:Namespace example <name>

If the declared resource is imported and intends to support namespaces using a provider alias, then the name is relative to the namespace path. hcl provider "vault" {

Configuration options

namespace = "example" alias = "example" } resource "vault_namespace" "example2" { provider = vault.example path = "example2" }

$ pulumi import vault:index/namespace:Namespace example2 example2

$ terraform state show vault_namespace.example2 vault_namespace.example2: resource "vault_namespace" "example2" { id = "example/example2/" namespace_id = path = "example2" path_fq = "example2" }

Constructors

Link copied to clipboard
constructor(customMetadata: Output<Map<String, String>>? = null, namespace: Output<String>? = null, path: Output<String>? = null, pathFq: Output<String>? = null)

Properties

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

Custom metadata describing this namespace. Value type is map[string]string. Requires Vault version 1.12+.

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

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

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

The path of the namespace. Must not have a trailing /.

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

The fully qualified path to the namespace. Useful when provisioning resources in a child namespace. The path is relative to the provider's namespace argument.

Functions

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