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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerEnvValueSourceArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvValueSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property secretKeyRef Selects a secret and a specific version from Cloud Secret Manager.
 * Structure is documented below.
 */
public data class ServiceTemplateContainerEnvValueSourceArgs(
    public val secretKeyRef: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvValueSourceArgs = com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvValueSourceArgs.builder()
        .secretKeyRef(secretKeyRef?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServiceTemplateContainerEnvValueSourceArgs].
 */
@PulumiTagMarker
public class ServiceTemplateContainerEnvValueSourceArgsBuilder internal constructor() {
    private var secretKeyRef: Output? = null

    /**
     * @param value Selects a secret and a specific version from Cloud Secret Manager.
     * Structure is documented below.
     */
    @JvmName("hoxlkovrhwcixxcb")
    public suspend fun secretKeyRef(`value`: Output) {
        this.secretKeyRef = value
    }

    /**
     * @param value Selects a secret and a specific version from Cloud Secret Manager.
     * Structure is documented below.
     */
    @JvmName("yilltknioqwkcdwf")
    public suspend fun secretKeyRef(`value`: ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretKeyRef = mapped
    }

    /**
     * @param argument Selects a secret and a specific version from Cloud Secret Manager.
     * Structure is documented below.
     */
    @JvmName("gpajfggwqhgqpmyk")
    public suspend fun secretKeyRef(argument: suspend ServiceTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.secretKeyRef = mapped
    }

    internal fun build(): ServiceTemplateContainerEnvValueSourceArgs =
        ServiceTemplateContainerEnvValueSourceArgs(
            secretKeyRef = secretKeyRef,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy