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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerEnvFromArgs.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.ServiceTemplateSpecContainerEnvFromArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property configMapRef The ConfigMap to select from.
 * Structure is documented below.
 * @property prefix An optional identifier to prepend to each key in the ConfigMap.
 * @property secretRef The Secret to select from.
 * Structure is documented below.
 */
public data class ServiceTemplateSpecContainerEnvFromArgs(
    public val configMapRef: Output? = null,
    public val prefix: Output? = null,
    public val secretRef: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvFromArgs.builder()
            .configMapRef(configMapRef?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .prefix(prefix?.applyValue({ args0 -> args0 }))
            .secretRef(secretRef?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServiceTemplateSpecContainerEnvFromArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecContainerEnvFromArgsBuilder internal constructor() {
    private var configMapRef: Output? = null

    private var prefix: Output? = null

    private var secretRef: Output? = null

    /**
     * @param value The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("xkkeqjwgywwnowgt")
    public suspend fun configMapRef(`value`: Output) {
        this.configMapRef = value
    }

    /**
     * @param value An optional identifier to prepend to each key in the ConfigMap.
     */
    @JvmName("ipncaisxhdurjidn")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value The Secret to select from.
     * Structure is documented below.
     */
    @JvmName("jjreuwpuinnwicdo")
    public suspend fun secretRef(`value`: Output) {
        this.secretRef = value
    }

    /**
     * @param value The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("xconfvkbojdqbtga")
    public suspend fun configMapRef(`value`: ServiceTemplateSpecContainerEnvFromConfigMapRefArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configMapRef = mapped
    }

    /**
     * @param argument The ConfigMap to select from.
     * Structure is documented below.
     */
    @JvmName("xpakaxkplqhteedn")
    public suspend fun configMapRef(argument: suspend ServiceTemplateSpecContainerEnvFromConfigMapRefArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceTemplateSpecContainerEnvFromConfigMapRefArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.configMapRef = mapped
    }

    /**
     * @param value An optional identifier to prepend to each key in the ConfigMap.
     */
    @JvmName("nqsoujgdqlubwsti")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    /**
     * @param value The Secret to select from.
     * Structure is documented below.
     */
    @JvmName("qmoeesvhnbmeybiu")
    public suspend fun secretRef(`value`: ServiceTemplateSpecContainerEnvFromSecretRefArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretRef = mapped
    }

    /**
     * @param argument The Secret to select from.
     * Structure is documented below.
     */
    @JvmName("edgujyqofhbwdtml")
    public suspend fun secretRef(argument: suspend ServiceTemplateSpecContainerEnvFromSecretRefArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceTemplateSpecContainerEnvFromSecretRefArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.secretRef = mapped
    }

    internal fun build(): ServiceTemplateSpecContainerEnvFromArgs =
        ServiceTemplateSpecContainerEnvFromArgs(
            configMapRef = configMapRef,
            prefix = prefix,
            secretRef = secretRef,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy