com.pulumi.googlenative.cloudfunctions.v1.kotlin.inputs.SecretVersionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.cloudfunctions.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.cloudfunctions.v1.inputs.SecretVersionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Configuration for a single version.
* @property path Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as `/secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
* @property version Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
*/
public data class SecretVersionArgs(
public val path: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.cloudfunctions.v1.inputs.SecretVersionArgs =
com.pulumi.googlenative.cloudfunctions.v1.inputs.SecretVersionArgs.builder()
.path(path?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SecretVersionArgs].
*/
@PulumiTagMarker
public class SecretVersionArgsBuilder internal constructor() {
private var path: Output? = null
private var version: Output? = null
/**
* @param value Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as `/secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
*/
@JvmName("ffhirpushergkmwu")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
*/
@JvmName("prlqjaqtqrtqryph")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as `/secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
*/
@JvmName("gjbmpkkhsjtnncps")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
*/
@JvmName("iswvrkbjfftsrxvv")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): SecretVersionArgs = SecretVersionArgs(
path = path,
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy