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

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

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterDatabaseEncryptionArgs.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 keyName the key to use to encrypt/decrypt secrets.  See the [DatabaseEncryption definition](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#Cluster.DatabaseEncryption) for more information.
 * The `enable_k8s_beta_apis` block supports:
 * @property state `ENCRYPTED` or `DECRYPTED`
 */
public data class ClusterDatabaseEncryptionArgs(
    public val keyName: Output? = null,
    public val state: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterDatabaseEncryptionArgs =
        com.pulumi.gcp.container.inputs.ClusterDatabaseEncryptionArgs.builder()
            .keyName(keyName?.applyValue({ args0 -> args0 }))
            .state(state.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterDatabaseEncryptionArgs].
 */
@PulumiTagMarker
public class ClusterDatabaseEncryptionArgsBuilder internal constructor() {
    private var keyName: Output? = null

    private var state: Output? = null

    /**
     * @param value the key to use to encrypt/decrypt secrets.  See the [DatabaseEncryption definition](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#Cluster.DatabaseEncryption) for more information.
     * The `enable_k8s_beta_apis` block supports:
     */
    @JvmName("ohnevfentdwlvvbk")
    public suspend fun keyName(`value`: Output) {
        this.keyName = value
    }

    /**
     * @param value `ENCRYPTED` or `DECRYPTED`
     */
    @JvmName("bxfxuhqbvneufboq")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value the key to use to encrypt/decrypt secrets.  See the [DatabaseEncryption definition](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#Cluster.DatabaseEncryption) for more information.
     * The `enable_k8s_beta_apis` block supports:
     */
    @JvmName("erccmvdlkhyrafxu")
    public suspend fun keyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyName = mapped
    }

    /**
     * @param value `ENCRYPTED` or `DECRYPTED`
     */
    @JvmName("glicjqwekvrfafsv")
    public suspend fun state(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): ClusterDatabaseEncryptionArgs = ClusterDatabaseEncryptionArgs(
        keyName = keyName,
        state = state ?: throw PulumiNullFieldException("state"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy