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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateContainerEnvValueSourceArgs.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.JobTemplateTemplateContainerEnvValueSourceArgs.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 JobTemplateTemplateContainerEnvValueSourceArgs(
    public val secretKeyRef: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvValueSourceArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvValueSourceArgs.builder()
            .secretKeyRef(secretKeyRef?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobTemplateTemplateContainerEnvValueSourceArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateContainerEnvValueSourceArgsBuilder 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("yohyrhpljeiyxuhu")
    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("yieijmfymqqhnkhc")
    public suspend fun secretKeyRef(`value`: JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs?) {
        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("sqrypuchmognifja")
    public suspend fun secretKeyRef(argument: suspend JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder.() -> Unit) {
        val toBeMapped =
            JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.secretKeyRef = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy