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

com.pulumi.gcp.kms.kotlin.inputs.GetKMSSecretCiphertextPlainArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.gcp.kms.inputs.GetKMSSecretCiphertextPlainArgs.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 getKMSSecretCiphertext.
 * @property cryptoKey The id of the CryptoKey that will be used to
 * encrypt the provided plaintext. This is represented by the format
 * `{projectId}/{location}/{keyRingName}/{cryptoKeyName}`.
 * @property plaintext The plaintext to be encrypted
 */
public data class GetKMSSecretCiphertextPlainArgs(
    public val cryptoKey: String,
    public val plaintext: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.GetKMSSecretCiphertextPlainArgs =
        com.pulumi.gcp.kms.inputs.GetKMSSecretCiphertextPlainArgs.builder()
            .cryptoKey(cryptoKey.let({ args0 -> args0 }))
            .plaintext(plaintext.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetKMSSecretCiphertextPlainArgs].
 */
@PulumiTagMarker
public class GetKMSSecretCiphertextPlainArgsBuilder internal constructor() {
    private var cryptoKey: String? = null

    private var plaintext: String? = null

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

    /**
     * @param value The plaintext to be encrypted
     */
    @JvmName("ikerycjpmvmxtsrn")
    public suspend fun plaintext(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.plaintext = mapped
    }

    internal fun build(): GetKMSSecretCiphertextPlainArgs = GetKMSSecretCiphertextPlainArgs(
        cryptoKey = cryptoKey ?: throw PulumiNullFieldException("cryptoKey"),
        plaintext = plaintext ?: throw PulumiNullFieldException("plaintext"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy