com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs.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.ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs.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 ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs(
public val secret: Output,
public val version: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs.builder()
.secret(secret.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs].
*/
@PulumiTagMarker
public class ServiceTemplateContainerEnvValueSourceSecretKeyRefArgsBuilder 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("baxxlqxxxnqirwcv")
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("xkxgnwmgrgxoflus")
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("spwiyiifhrcjcjih")
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("fuduxroxbfhxfkyt")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs =
ServiceTemplateContainerEnvValueSourceSecretKeyRefArgs(
secret = secret ?: throw PulumiNullFieldException("secret"),
version = version,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy