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

com.pulumi.gcp.bigquery.kotlin.inputs.TableEncryptionConfigurationArgs.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.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.TableEncryptionConfigurationArgs.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

/**
 *
 * @property kmsKeyName The self link or full name of a key which should be used to
 * encrypt this table.  Note that the default bigquery service account will need to have
 * encrypt/decrypt permissions on this key - you may want to see the
 * `gcp.bigquery.getDefaultServiceAccount` datasource and the
 * `gcp.kms.CryptoKeyIAMBinding` resource.
 * @property kmsKeyVersion The self link or full name of the kms key version used to encrypt this table.
 */
public data class TableEncryptionConfigurationArgs(
    public val kmsKeyName: Output,
    public val kmsKeyVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.TableEncryptionConfigurationArgs =
        com.pulumi.gcp.bigquery.inputs.TableEncryptionConfigurationArgs.builder()
            .kmsKeyName(kmsKeyName.applyValue({ args0 -> args0 }))
            .kmsKeyVersion(kmsKeyVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableEncryptionConfigurationArgs].
 */
@PulumiTagMarker
public class TableEncryptionConfigurationArgsBuilder internal constructor() {
    private var kmsKeyName: Output? = null

    private var kmsKeyVersion: Output? = null

    /**
     * @param value The self link or full name of a key which should be used to
     * encrypt this table.  Note that the default bigquery service account will need to have
     * encrypt/decrypt permissions on this key - you may want to see the
     * `gcp.bigquery.getDefaultServiceAccount` datasource and the
     * `gcp.kms.CryptoKeyIAMBinding` resource.
     */
    @JvmName("saaapmomibpeeugo")
    public suspend fun kmsKeyName(`value`: Output) {
        this.kmsKeyName = value
    }

    /**
     * @param value The self link or full name of the kms key version used to encrypt this table.
     */
    @JvmName("nlkdfbjvmsnhehph")
    public suspend fun kmsKeyVersion(`value`: Output) {
        this.kmsKeyVersion = value
    }

    /**
     * @param value The self link or full name of a key which should be used to
     * encrypt this table.  Note that the default bigquery service account will need to have
     * encrypt/decrypt permissions on this key - you may want to see the
     * `gcp.bigquery.getDefaultServiceAccount` datasource and the
     * `gcp.kms.CryptoKeyIAMBinding` resource.
     */
    @JvmName("svfyrwmrqllgjavu")
    public suspend fun kmsKeyName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kmsKeyName = mapped
    }

    /**
     * @param value The self link or full name of the kms key version used to encrypt this table.
     */
    @JvmName("pgpqpcatfslyhucx")
    public suspend fun kmsKeyVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyVersion = mapped
    }

    internal fun build(): TableEncryptionConfigurationArgs = TableEncryptionConfigurationArgs(
        kmsKeyName = kmsKeyName ?: throw PulumiNullFieldException("kmsKeyName"),
        kmsKeyVersion = kmsKeyVersion,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy