FunctionSecretVolumeArgs

data class FunctionSecretVolumeArgs(val mountPath: Output<String>, val projectId: Output<String>? = null, val secret: Output<String>, val versions: Output<List<FunctionSecretVolumeVersionArgs>>? = null) : ConvertibleToJava<FunctionSecretVolumeArgs>

Constructors

Link copied to clipboard
constructor(mountPath: Output<String>, projectId: Output<String>? = null, secret: Output<String>, versions: Output<List<FunctionSecretVolumeVersionArgs>>? = null)

Properties

Link copied to clipboard
val mountPath: Output<String>

The path within the container to mount the secret volume. For example, setting the mount_path as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".

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

Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.

Link copied to clipboard
val secret: Output<String>

ID of the secret in secret manager (not the full resource name).

Link copied to clipboard

List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point. Structure is documented below.

Functions

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