SecretArgs

data class SecretArgs(val dataJson: Output<String>? = null, val deleteAllVersions: Output<Boolean>? = null, val disableRead: Output<Boolean>? = null, val namespace: Output<String>? = null, val path: Output<String>? = null) : ConvertibleToJava<SecretArgs>

Import

Generic secrets can be imported using the path, e.g.

$ pulumi import vault:generic/secret:Secret example secret/foo

Constructors

Link copied to clipboard
constructor(dataJson: Output<String>? = null, deleteAllVersions: Output<Boolean>? = null, disableRead: Output<Boolean>? = null, namespace: Output<String>? = null, path: Output<String>? = null)

Properties

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

String containing a JSON-encoded object that will be written as the secret data at the given path.

Link copied to clipboard
val deleteAllVersions: Output<Boolean>? = null

true/false. Only applicable for kv-v2 stores. If set to true, permanently deletes all versions for the specified key. The default behavior is to only delete the latest version of the secret.

Link copied to clipboard
val disableRead: Output<Boolean>? = null

true/false. Set this to true if your vault authentication is not able to read the data. Setting this to true will break drift detection. Defaults to false.

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 full logical path at which to write the given data. To write data into the "generic" secret backend mounted in Vault by default, this should be prefixed with secret/. Writing to other backends with this resource is possible; consult each backend's documentation to see which endpoints support the PUT and DELETE methods.

Functions

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