com.pulumi.gcp.kms.kotlin.inputs.GetKMSSecretAsymmetricPlainArgs.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.kms.kotlin.inputs
import com.pulumi.gcp.kms.inputs.GetKMSSecretAsymmetricPlainArgs.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 getKMSSecretAsymmetric.
* @property ciphertext The ciphertext to be decrypted, encoded in base64
* @property crc32 The crc32 checksum of the `ciphertext` in hexadecimal notation. If not specified, it will be computed.
* @property cryptoKeyVersion The id of the CryptoKey version that will be used to
* decrypt the provided ciphertext. This is represented by the format
* `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}`.
*/
public data class GetKMSSecretAsymmetricPlainArgs(
public val ciphertext: String,
public val crc32: String? = null,
public val cryptoKeyVersion: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.kms.inputs.GetKMSSecretAsymmetricPlainArgs =
com.pulumi.gcp.kms.inputs.GetKMSSecretAsymmetricPlainArgs.builder()
.ciphertext(ciphertext.let({ args0 -> args0 }))
.crc32(crc32?.let({ args0 -> args0 }))
.cryptoKeyVersion(cryptoKeyVersion.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetKMSSecretAsymmetricPlainArgs].
*/
@PulumiTagMarker
public class GetKMSSecretAsymmetricPlainArgsBuilder internal constructor() {
private var ciphertext: String? = null
private var crc32: String? = null
private var cryptoKeyVersion: String? = null
/**
* @param value The ciphertext to be decrypted, encoded in base64
*/
@JvmName("ydyruxcbdckjcfnb")
public suspend fun ciphertext(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.ciphertext = mapped
}
/**
* @param value The crc32 checksum of the `ciphertext` in hexadecimal notation. If not specified, it will be computed.
*/
@JvmName("gxauaesvbgfaoagv")
public suspend fun crc32(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.crc32 = mapped
}
/**
* @param value The id of the CryptoKey version that will be used to
* decrypt the provided ciphertext. This is represented by the format
* `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}`.
*/
@JvmName("sbvcwllsjrutcqsk")
public suspend fun cryptoKeyVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.cryptoKeyVersion = mapped
}
internal fun build(): GetKMSSecretAsymmetricPlainArgs = GetKMSSecretAsymmetricPlainArgs(
ciphertext = ciphertext ?: throw PulumiNullFieldException("ciphertext"),
crc32 = crc32,
cryptoKeyVersion = cryptoKeyVersion ?: throw PulumiNullFieldException("cryptoKeyVersion"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy