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

com.pulumi.gcp.bigquery.kotlin.inputs.JobLoadDestinationEncryptionConfigurationArgs.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.JobLoadDestinationEncryptionConfigurationArgs.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 Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table.
 * The BigQuery Service Account associated with your project requires access to this encryption key.
 * @property kmsKeyVersion (Output)
 * Describes the Cloud KMS encryption key version used to protect destination BigQuery table.
 */
public data class JobLoadDestinationEncryptionConfigurationArgs(
    public val kmsKeyName: Output,
    public val kmsKeyVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.JobLoadDestinationEncryptionConfigurationArgs =
        com.pulumi.gcp.bigquery.inputs.JobLoadDestinationEncryptionConfigurationArgs.builder()
            .kmsKeyName(kmsKeyName.applyValue({ args0 -> args0 }))
            .kmsKeyVersion(kmsKeyVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var kmsKeyVersion: Output? = null

    /**
     * @param value Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table.
     * The BigQuery Service Account associated with your project requires access to this encryption key.
     */
    @JvmName("jqfayfuqeeqlqomp")
    public suspend fun kmsKeyName(`value`: Output) {
        this.kmsKeyName = value
    }

    /**
     * @param value (Output)
     * Describes the Cloud KMS encryption key version used to protect destination BigQuery table.
     */
    @JvmName("jpdqgrdjpslkjnrq")
    public suspend fun kmsKeyVersion(`value`: Output) {
        this.kmsKeyVersion = value
    }

    /**
     * @param value Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table.
     * The BigQuery Service Account associated with your project requires access to this encryption key.
     */
    @JvmName("qpclkhhtaedchyxe")
    public suspend fun kmsKeyName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kmsKeyName = mapped
    }

    /**
     * @param value (Output)
     * Describes the Cloud KMS encryption key version used to protect destination BigQuery table.
     */
    @JvmName("bfxoqbvcfbdumpny")
    public suspend fun kmsKeyVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyVersion = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy