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

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

package com.pulumi.gcp.spanner.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.spanner.inputs.DatabaseEncryptionConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property kmsKeyName Fully qualified name of the KMS key to use to encrypt this database. This key must exist
 * in the same location as the Spanner Database.
 * @property kmsKeyNames Fully qualified name of the KMS keys to use to encrypt this database. The keys must exist
 * in the same locations as the Spanner Database.
 */
public data class DatabaseEncryptionConfigArgs(
    public val kmsKeyName: Output? = null,
    public val kmsKeyNames: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.spanner.inputs.DatabaseEncryptionConfigArgs =
        com.pulumi.gcp.spanner.inputs.DatabaseEncryptionConfigArgs.builder()
            .kmsKeyName(kmsKeyName?.applyValue({ args0 -> args0 }))
            .kmsKeyNames(kmsKeyNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var kmsKeyNames: Output>? = null

    /**
     * @param value Fully qualified name of the KMS key to use to encrypt this database. This key must exist
     * in the same location as the Spanner Database.
     */
    @JvmName("sqqtidlxpkkvxgjb")
    public suspend fun kmsKeyName(`value`: Output) {
        this.kmsKeyName = value
    }

    /**
     * @param value Fully qualified name of the KMS keys to use to encrypt this database. The keys must exist
     * in the same locations as the Spanner Database.
     */
    @JvmName("brrwoxiepcrmlrdy")
    public suspend fun kmsKeyNames(`value`: Output>) {
        this.kmsKeyNames = value
    }

    @JvmName("haoyexcexadfikht")
    public suspend fun kmsKeyNames(vararg values: Output) {
        this.kmsKeyNames = Output.all(values.asList())
    }

    /**
     * @param values Fully qualified name of the KMS keys to use to encrypt this database. The keys must exist
     * in the same locations as the Spanner Database.
     */
    @JvmName("bmgtflpsgttdijxg")
    public suspend fun kmsKeyNames(values: List>) {
        this.kmsKeyNames = Output.all(values)
    }

    /**
     * @param value Fully qualified name of the KMS key to use to encrypt this database. This key must exist
     * in the same location as the Spanner Database.
     */
    @JvmName("iawhexrqkrchjwsw")
    public suspend fun kmsKeyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyName = mapped
    }

    /**
     * @param value Fully qualified name of the KMS keys to use to encrypt this database. The keys must exist
     * in the same locations as the Spanner Database.
     */
    @JvmName("ukeebphtmosphytu")
    public suspend fun kmsKeyNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyNames = mapped
    }

    /**
     * @param values Fully qualified name of the KMS keys to use to encrypt this database. The keys must exist
     * in the same locations as the Spanner Database.
     */
    @JvmName("exiqegyueyiuvbul")
    public suspend fun kmsKeyNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kmsKeyNames = mapped
    }

    internal fun build(): DatabaseEncryptionConfigArgs = DatabaseEncryptionConfigArgs(
        kmsKeyName = kmsKeyName,
        kmsKeyNames = kmsKeyNames,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy