All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.kms.kotlin.inputs.GetKMSSecretPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.kms.kotlin.inputs

import com.pulumi.gcp.kms.inputs.GetKMSSecretPlainArgs.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 getKMSSecret.
 * @property additionalAuthenticatedData The [additional authenticated data](https://cloud.google.com/kms/docs/additional-authenticated-data) used for integrity checks during encryption and decryption.
 * @property ciphertext The ciphertext to be decrypted, encoded in base64
 * @property cryptoKey The id of the CryptoKey that will be used to
 * decrypt the provided ciphertext. This is represented by the format
 * `{projectId}/{location}/{keyRingName}/{cryptoKeyName}`.
 */
public data class GetKMSSecretPlainArgs(
    public val additionalAuthenticatedData: String? = null,
    public val ciphertext: String,
    public val cryptoKey: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.GetKMSSecretPlainArgs =
        com.pulumi.gcp.kms.inputs.GetKMSSecretPlainArgs.builder()
            .additionalAuthenticatedData(additionalAuthenticatedData?.let({ args0 -> args0 }))
            .ciphertext(ciphertext.let({ args0 -> args0 }))
            .cryptoKey(cryptoKey.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetKMSSecretPlainArgs].
 */
@PulumiTagMarker
public class GetKMSSecretPlainArgsBuilder internal constructor() {
    private var additionalAuthenticatedData: String? = null

    private var ciphertext: String? = null

    private var cryptoKey: String? = null

    /**
     * @param value The [additional authenticated data](https://cloud.google.com/kms/docs/additional-authenticated-data) used for integrity checks during encryption and decryption.
     */
    @JvmName("jljiouwvmrrjdbat")
    public suspend fun additionalAuthenticatedData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.additionalAuthenticatedData = mapped
    }

    /**
     * @param value The ciphertext to be decrypted, encoded in base64
     */
    @JvmName("dvmdcecsckgpwtok")
    public suspend fun ciphertext(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.ciphertext = mapped
    }

    /**
     * @param value The id of the CryptoKey that will be used to
     * decrypt the provided ciphertext. This is represented by the format
     * `{projectId}/{location}/{keyRingName}/{cryptoKeyName}`.
     */
    @JvmName("syprkrmlelpgofgq")
    public suspend fun cryptoKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.cryptoKey = mapped
    }

    internal fun build(): GetKMSSecretPlainArgs = GetKMSSecretPlainArgs(
        additionalAuthenticatedData = additionalAuthenticatedData,
        ciphertext = ciphertext ?: throw PulumiNullFieldException("ciphertext"),
        cryptoKey = cryptoKey ?: throw PulumiNullFieldException("cryptoKey"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy