com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerEnvArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.ServiceTemplateContainerEnvArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property name Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
* @property value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
* @property valueSource Source for the environment variable's value.
* Structure is documented below.
*/
public data class ServiceTemplateContainerEnvArgs(
public val name: Output,
public val `value`: Output? = null,
public val valueSource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 }))
.valueSource(valueSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ServiceTemplateContainerEnvArgs].
*/
@PulumiTagMarker
public class ServiceTemplateContainerEnvArgsBuilder internal constructor() {
private var name: Output? = null
private var `value`: Output? = null
private var valueSource: Output? = null
/**
* @param value Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
*/
@JvmName("kqqtoknelgfopwpe")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
*/
@JvmName("cumrdfxrgvytlqvp")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("nfqokdmhdhefqpxw")
public suspend fun valueSource(`value`: Output) {
this.valueSource = value
}
/**
* @param value Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
*/
@JvmName("mesfqncoftenyafn")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
*/
@JvmName("oskvrhebvlwhowsg")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
/**
* @param value Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("mshoepjwbdmynjlg")
public suspend fun valueSource(`value`: ServiceTemplateContainerEnvValueSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.valueSource = mapped
}
/**
* @param argument Source for the environment variable's value.
* Structure is documented below.
*/
@JvmName("kayjcggbytsojlfl")
public suspend fun valueSource(argument: suspend ServiceTemplateContainerEnvValueSourceArgsBuilder.() -> Unit) {
val toBeMapped = ServiceTemplateContainerEnvValueSourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.valueSource = mapped
}
internal fun build(): ServiceTemplateContainerEnvArgs = ServiceTemplateContainerEnvArgs(
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value`,
valueSource = valueSource,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy