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

com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs.KmsWrappedCryptoKeyArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.healthcare.v1beta1.inputs.KmsWrappedCryptoKeyArgs.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

/**
 * Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. The key must grant the Cloud IAM permission `cloudkms.cryptoKeyVersions.useToDecrypt` to the project's Cloud Healthcare Service Agent service account. For more information, see [Creating a wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key).
 * @property cryptoKey The resource name of the KMS CryptoKey to use for unwrapping. For example, `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryptoKeys/{key}`.
 * @property wrappedKey The wrapped data crypto key.
 */
public data class KmsWrappedCryptoKeyArgs(
    public val cryptoKey: Output,
    public val wrappedKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.healthcare.v1beta1.inputs.KmsWrappedCryptoKeyArgs =
        com.pulumi.googlenative.healthcare.v1beta1.inputs.KmsWrappedCryptoKeyArgs.builder()
            .cryptoKey(cryptoKey.applyValue({ args0 -> args0 }))
            .wrappedKey(wrappedKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KmsWrappedCryptoKeyArgs].
 */
@PulumiTagMarker
public class KmsWrappedCryptoKeyArgsBuilder internal constructor() {
    private var cryptoKey: Output? = null

    private var wrappedKey: Output? = null

    /**
     * @param value The resource name of the KMS CryptoKey to use for unwrapping. For example, `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryptoKeys/{key}`.
     */
    @JvmName("hqlkkjuqptrburdw")
    public suspend fun cryptoKey(`value`: Output) {
        this.cryptoKey = value
    }

    /**
     * @param value The wrapped data crypto key.
     */
    @JvmName("kdhykixivgajjcnv")
    public suspend fun wrappedKey(`value`: Output) {
        this.wrappedKey = value
    }

    /**
     * @param value The resource name of the KMS CryptoKey to use for unwrapping. For example, `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryptoKeys/{key}`.
     */
    @JvmName("rsvsdjabqcyicmbq")
    public suspend fun cryptoKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cryptoKey = mapped
    }

    /**
     * @param value The wrapped data crypto key.
     */
    @JvmName("ojfumardobrklcsu")
    public suspend fun wrappedKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.wrappedKey = mapped
    }

    internal fun build(): KmsWrappedCryptoKeyArgs = KmsWrappedCryptoKeyArgs(
        cryptoKey = cryptoKey ?: throw PulumiNullFieldException("cryptoKey"),
        wrappedKey = wrappedKey ?: throw PulumiNullFieldException("wrappedKey"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy