SecretKeySelectorArgs

data class SecretKeySelectorArgs(val key: Output<String>, val localObjectReference: Output<LocalObjectReferenceArgs>? = null, val name: Output<String>? = null, val optional: Output<Boolean>? = null) : ConvertibleToJava<SecretKeySelectorArgs>

SecretKeySelector selects a key of a Secret.

Constructors

Link copied to clipboard
fun SecretKeySelectorArgs(key: Output<String>, localObjectReference: Output<LocalObjectReferenceArgs>? = null, name: Output<String>? = null, optional: Output<Boolean>? = null)

Functions

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

Properties

Link copied to clipboard
val key: Output<String>

A Cloud Secret Manager secret version. Must be 'latest' for the latest version, an integer for a specific version, or a version alias. The key of the secret to select from. Must be a valid secret key.

Link copied to clipboard

This field should not be used directly as it is meant to be inlined directly into the message. Use the "name" field instead.

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

The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects//secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation. The name of the secret in the pod's namespace to select from.

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

Specify whether the Secret or its key must be defined.