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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs.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.ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs.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 key A Cloud Secret Manager secret version. Must be 'latest' for the latest
 * version or an integer for a specific version.
 * @property name The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project.
 * If the secret is in another project, you must define an alias.
 * An alias definition has the form: :projects/{project-id|project-number}/secrets/.
 * If multiple alias definitions are needed, they must be separated by commas.
 * The alias definitions must be set on the run.googleapis.com/secrets annotation.
 */
public data class ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs(
    public val key: Output,
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs.builder()
            .key(key.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

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

    /**
     * @param value The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project.
     * If the secret is in another project, you must define an alias.
     * An alias definition has the form: :projects/{project-id|project-number}/secrets/.
     * If multiple alias definitions are needed, they must be separated by commas.
     * The alias definitions must be set on the run.googleapis.com/secrets annotation.
     */
    @JvmName("tejjmdadbcvvonut")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project.
     * If the secret is in another project, you must define an alias.
     * An alias definition has the form: :projects/{project-id|project-number}/secrets/.
     * If multiple alias definitions are needed, they must be separated by commas.
     * The alias definitions must be set on the run.googleapis.com/secrets annotation.
     */
    @JvmName("mtwamqqhqgtjdcxy")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs =
        ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs(
            key = key ?: throw PulumiNullFieldException("key"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy