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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.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.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.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 secret The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
 * @property version The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
 */
public data class JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs(
    public val secret: Output,
    public val version: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.builder()
            .secret(secret.applyValue({ args0 -> args0 }))
            .version(version.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder internal constructor() {
    private var secret: Output? = null

    private var version: Output? = null

    /**
     * @param value The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
     */
    @JvmName("kmgqhvtodbtlbxnh")
    public suspend fun secret(`value`: Output) {
        this.secret = value
    }

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

    /**
     * @param value The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
     */
    @JvmName("xgckykdlixxgtkmr")
    public suspend fun secret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secret = mapped
    }

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

    internal fun build(): JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs =
        JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs(
            secret = secret ?: throw PulumiNullFieldException("secret"),
            version = version ?: throw PulumiNullFieldException("version"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy