import * as pulumi from "@pulumi/pulumi"; /** * ## Import * * Namespaces can be imported using its `name` as accessor id * * ```sh * $ pulumi import vault:index/namespace:Namespace example * ``` * * 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" * * } * * ```sh * $ 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" * * } */ export declare class Namespace extends pulumi.CustomResource { /** * Get an existing Namespace resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NamespaceState, opts?: pulumi.CustomResourceOptions): Namespace; /** * Returns true if the given object is an instance of Namespace. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Namespace; /** * Custom metadata describing this namespace. Value type * is `map[string]string`. Requires Vault version 1.12+. */ readonly customMetadata: pulumi.Output<{ [key: string]: string; }>; /** * 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](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ readonly namespace: pulumi.Output; /** * Vault server's internal ID of the namespace. */ readonly namespaceId: pulumi.Output; /** * The path of the namespace. Must not have a trailing `/`. */ readonly path: pulumi.Output; /** * 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. */ readonly pathFq: pulumi.Output; /** * Create a Namespace resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Namespace resources. */ export interface NamespaceState { /** * Custom metadata describing this namespace. Value type * is `map[string]string`. Requires Vault version 1.12+. */ customMetadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * 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](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; /** * Vault server's internal ID of the namespace. */ namespaceId?: pulumi.Input; /** * The path of the namespace. Must not have a trailing `/`. */ path?: pulumi.Input; /** * 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. */ pathFq?: pulumi.Input; } /** * The set of arguments for constructing a Namespace resource. */ export interface NamespaceArgs { /** * Custom metadata describing this namespace. Value type * is `map[string]string`. Requires Vault version 1.12+. */ customMetadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * 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](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; /** * The path of the namespace. Must not have a trailing `/`. */ path: pulumi.Input; /** * 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. */ pathFq?: pulumi.Input; }