com.pulumi.gcp.monitoring.kotlin.inputs.GetSecretVersionPlainArgs.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.monitoring.kotlin.inputs
import com.pulumi.gcp.monitoring.inputs.GetSecretVersionPlainArgs.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
/**
* A collection of arguments for invoking getSecretVersion.
* @property project The project to get the secret version for. If it
* is not provided, the provider project is used.
* @property secret The secret to get the secret version for.
* @property version The version of the secret to get. If it
* is not provided, the latest version is retrieved.
*/
public data class GetSecretVersionPlainArgs(
public val project: String? = null,
public val secret: String,
public val version: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.GetSecretVersionPlainArgs =
com.pulumi.gcp.monitoring.inputs.GetSecretVersionPlainArgs.builder()
.project(project?.let({ args0 -> args0 }))
.secret(secret.let({ args0 -> args0 }))
.version(version?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSecretVersionPlainArgs].
*/
@PulumiTagMarker
public class GetSecretVersionPlainArgsBuilder internal constructor() {
private var project: String? = null
private var secret: String? = null
private var version: String? = null
/**
* @param value The project to get the secret version for. If it
* is not provided, the provider project is used.
*/
@JvmName("mxqqlrrejdpkblvi")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The secret to get the secret version for.
*/
@JvmName("peocxhydfhqnlmrf")
public suspend fun secret(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.secret = mapped
}
/**
* @param value The version of the secret to get. If it
* is not provided, the latest version is retrieved.
*/
@JvmName("ywfeyidflmcjcltc")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.version = mapped
}
internal fun build(): GetSecretVersionPlainArgs = GetSecretVersionPlainArgs(
project = project,
secret = secret ?: throw PulumiNullFieldException("secret"),
version = version,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy