com.pulumi.gcp.cloudfunctions.kotlin.inputs.FunctionSecretVolumeVersionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudfunctions.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctions.inputs.FunctionSecretVolumeVersionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 FunctionSecretVolumeVersionArgs(
public val path: Output,
public val version: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudfunctions.inputs.FunctionSecretVolumeVersionArgs =
com.pulumi.gcp.cloudfunctions.inputs.FunctionSecretVolumeVersionArgs.builder()
.path(path.applyValue({ args0 -> args0 }))
.version(version.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionSecretVolumeVersionArgs].
*/
@PulumiTagMarker
public class FunctionSecretVolumeVersionArgsBuilder 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("ietdkakjfihurddg")
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("oiuylfrhyickpwwl")
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("psryatmkeerrgkad")
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("xxcwllgjgmklycxt")
public suspend fun version(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): FunctionSecretVolumeVersionArgs = FunctionSecretVolumeVersionArgs(
path = path ?: throw PulumiNullFieldException("path"),
version = version ?: throw PulumiNullFieldException("version"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy