com.pulumi.gcp.spanner.kotlin.inputs.DatabaseEncryptionConfigArgs.kt Maven / Gradle / Ivy
@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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
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.
*/
public data class DatabaseEncryptionConfigArgs(
public val kmsKeyName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.spanner.inputs.DatabaseEncryptionConfigArgs =
com.pulumi.gcp.spanner.inputs.DatabaseEncryptionConfigArgs.builder()
.kmsKeyName(kmsKeyName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseEncryptionConfigArgs].
*/
@PulumiTagMarker
public class DatabaseEncryptionConfigArgsBuilder internal constructor() {
private var kmsKeyName: 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("laqqwojikvuiporc")
public suspend fun kmsKeyName(`value`: Output) {
this.kmsKeyName = value
}
/**
* @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("gfjroopmnqfwqfio")
public suspend fun kmsKeyName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kmsKeyName = mapped
}
internal fun build(): DatabaseEncryptionConfigArgs = DatabaseEncryptionConfigArgs(
kmsKeyName = kmsKeyName ?: throw PulumiNullFieldException("kmsKeyName"),
)
}