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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecVolumeSecretItemArgs.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.cloudrun.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeSecretItemArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property key The Cloud Secret Manager secret version.
 * Can be 'latest' for the latest value or an integer for a specific version.
 * @property mode Mode bits to use on this file, must be a value between 0000 and 0777. If
 * not specified, the volume defaultMode will be used. This might be in
 * conflict with other options that affect the file mode, like fsGroup, and
 * the result can be other mode bits set.
 * @property path The relative path of the file to map the key to.
 * May not be an absolute path.
 * May not contain the path element '..'.
 * May not start with the string '..'.
 */
public data class ServiceTemplateSpecVolumeSecretItemArgs(
    public val key: Output,
    public val mode: Output? = null,
    public val path: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeSecretItemArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeSecretItemArgs.builder()
            .key(key.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .path(path.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateSpecVolumeSecretItemArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecVolumeSecretItemArgsBuilder internal constructor() {
    private var key: Output? = null

    private var mode: Output? = null

    private var path: Output? = null

    /**
     * @param value The Cloud Secret Manager secret version.
     * Can be 'latest' for the latest value or an integer for a specific version.
     */
    @JvmName("rnniyhexittvfiwb")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value Mode bits to use on this file, must be a value between 0000 and 0777. If
     * not specified, the volume defaultMode will be used. This might be in
     * conflict with other options that affect the file mode, like fsGroup, and
     * the result can be other mode bits set.
     */
    @JvmName("mophfuexjntnioch")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     */
    @JvmName("oviuhasxbxmtjuip")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The Cloud Secret Manager secret version.
     * Can be 'latest' for the latest value or an integer for a specific version.
     */
    @JvmName("okxfjgnkswdccdlv")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value Mode bits to use on this file, must be a value between 0000 and 0777. If
     * not specified, the volume defaultMode will be used. This might be in
     * conflict with other options that affect the file mode, like fsGroup, and
     * the result can be other mode bits set.
     */
    @JvmName("srjwdomvcmrwsgdf")
    public suspend fun mode(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     */
    @JvmName("xbnfmhlmwqesbrxl")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    internal fun build(): ServiceTemplateSpecVolumeSecretItemArgs =
        ServiceTemplateSpecVolumeSecretItemArgs(
            key = key ?: throw PulumiNullFieldException("key"),
            mode = mode,
            path = path ?: throw PulumiNullFieldException("path"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy