
com.pulumi.gcp.secretmanager.kotlin.inputs.GetRegionalSecretVersionAccessPlainArgs.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.GetRegionalSecretVersionAccessPlainArgs.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 getRegionalSecretVersionAccess.
* @property isSecretDataBase64 If set to 'true', the secret data is
* expected to be base64-encoded string.
* @property location Location of Secret Manager regional secret resource.
* It must be provided when the `secret` field provided consists of only the name of the regional secret.
* @property project The project to get the secret version for. If it
* is not provided, the provider project is used.
* @property secret The regional secret to get the secret version for.
* This can be either the reference of the regional secret as in `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}` or only the name of the regional secret as in `{{secret_id}}`. If only the name of the regional secret is provided, the location must also be provided.
* @property version The version of the regional secret to get. If it
* is not provided, the latest version is retrieved.
*/
public data class GetRegionalSecretVersionAccessPlainArgs(
public val isSecretDataBase64: Boolean? = null,
public val location: String? = null,
public val project: String? = null,
public val secret: String,
public val version: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretVersionAccessPlainArgs = com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretVersionAccessPlainArgs.builder()
.isSecretDataBase64(isSecretDataBase64?.let({ args0 -> args0 }))
.location(location?.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.secret(secret.let({ args0 -> args0 }))
.version(version?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetRegionalSecretVersionAccessPlainArgs].
*/
@PulumiTagMarker
public class GetRegionalSecretVersionAccessPlainArgsBuilder internal constructor() {
private var isSecretDataBase64: Boolean? = null
private var location: String? = 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("eockudpqxvslvhtf")
public suspend fun isSecretDataBase64(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.isSecretDataBase64 = mapped
}
/**
* @param value Location of Secret Manager regional secret resource.
* It must be provided when the `secret` field provided consists of only the name of the regional secret.
*/
@JvmName("xkoupymwmowwrvgu")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.location = mapped
}
/**
* @param value The project to get the secret version for. If it
* is not provided, the provider project is used.
*/
@JvmName("svfetpohbqdxgsse")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The regional secret to get the secret version for.
* This can be either the reference of the regional secret as in `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}` or only the name of the regional secret as in `{{secret_id}}`. If only the name of the regional secret is provided, the location must also be provided.
*/
@JvmName("cfiuefkrxdpvjsyr")
public suspend fun secret(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.secret = mapped
}
/**
* @param value The version of the regional secret to get. If it
* is not provided, the latest version is retrieved.
*/
@JvmName("vxiavqjqwxiseiar")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.version = mapped
}
internal fun build(): GetRegionalSecretVersionAccessPlainArgs =
GetRegionalSecretVersionAccessPlainArgs(
isSecretDataBase64 = isSecretDataBase64,
location = location,
project = project,
secret = secret ?: throw PulumiNullFieldException("secret"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy