com.pulumi.gcp.secretmanager.kotlin.inputs.GetSecretVersionAccessPlainArgs.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.secretmanager.kotlin.inputs
import com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getSecretVersionAccess.
* @property isSecretDataBase64 If set to 'true', the secret data is
* expected to be base64-encoded string.
* @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 GetSecretVersionAccessPlainArgs(
public val isSecretDataBase64: Boolean? = null,
public val project: String? = null,
public val secret: String,
public val version: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs =
com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessPlainArgs.builder()
.isSecretDataBase64(isSecretDataBase64?.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.secret(secret.let({ args0 -> args0 }))
.version(version?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSecretVersionAccessPlainArgs].
*/
@PulumiTagMarker
public class GetSecretVersionAccessPlainArgsBuilder internal constructor() {
private var isSecretDataBase64: Boolean? = null
private var project: String? = null
private var secret: String? = null
private var version: String? = null
/**
* @param value If set to 'true', the secret data is
* expected to be base64-encoded string.
*/
@JvmName("yupkrgiygodivogy")
public suspend fun isSecretDataBase64(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.isSecretDataBase64 = mapped
}
/**
* @param value The project to get the secret version for. If it
* is not provided, the provider project is used.
*/
@JvmName("ujrkpheqysustnao")
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("bgyhneqyrmlaulic")
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("biwemlfslymtonhg")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.version = mapped
}
internal fun build(): GetSecretVersionAccessPlainArgs = GetSecretVersionAccessPlainArgs(
isSecretDataBase64 = isSecretDataBase64,
project = project,
secret = secret ?: throw PulumiNullFieldException("secret"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy