All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudfunctionsv2.kotlin.inputs.FunctionServiceConfigSecretVolumeVersionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudfunctionsv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeVersionArgs.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 mountPath 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 FunctionServiceConfigSecretVolumeVersionArgs(
    public val path: Output,
    public val version: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeVersionArgs =
        com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeVersionArgs.builder()
            .path(path.applyValue({ args0 -> args0 }))
            .version(version.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FunctionServiceConfigSecretVolumeVersionArgs].
 */
@PulumiTagMarker
public class FunctionServiceConfigSecretVolumeVersionArgsBuilder 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 mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
     */
    @JvmName("qymfrgnmncqpluxd")
    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("mcgkjfoffwrsnhfe")
    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 mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
     */
    @JvmName("ysjegmfevwwiibdo")
    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("booiwxbtotrinvdq")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): FunctionServiceConfigSecretVolumeVersionArgs =
        FunctionServiceConfigSecretVolumeVersionArgs(
            path = path ?: throw PulumiNullFieldException("path"),
            version = version ?: throw PulumiNullFieldException("version"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy