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

com.pulumi.awsnative.cassandra.kotlin.inputs.TableEncryptionSpecificationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cassandra.kotlin.inputs

import com.pulumi.awsnative.cassandra.inputs.TableEncryptionSpecificationArgs.builder
import com.pulumi.awsnative.cassandra.kotlin.enums.TableEncryptionType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Represents the settings used to enable server-side encryption
 * @property encryptionType The encryption at rest options for the table.
 * - *AWS owned key* (default) - `AWS_OWNED_KMS_KEY`
 * - *Customer managed key* - `CUSTOMER_MANAGED_KMS_KEY`
 * > If you choose `CUSTOMER_MANAGED_KMS_KEY` , a `kms_key_identifier` in the format of a key ARN is required.
 * Valid values: `CUSTOMER_MANAGED_KMS_KEY` | `AWS_OWNED_KMS_KEY` .
 * @property kmsKeyIdentifier Requires a `kms_key_identifier` in the format of a key ARN.
 */
public data class TableEncryptionSpecificationArgs(
    public val encryptionType: Output,
    public val kmsKeyIdentifier: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cassandra.inputs.TableEncryptionSpecificationArgs =
        com.pulumi.awsnative.cassandra.inputs.TableEncryptionSpecificationArgs.builder()
            .encryptionType(encryptionType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kmsKeyIdentifier(kmsKeyIdentifier?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableEncryptionSpecificationArgs].
 */
@PulumiTagMarker
public class TableEncryptionSpecificationArgsBuilder internal constructor() {
    private var encryptionType: Output? = null

    private var kmsKeyIdentifier: Output? = null

    /**
     * @param value The encryption at rest options for the table.
     * - *AWS owned key* (default) - `AWS_OWNED_KMS_KEY`
     * - *Customer managed key* - `CUSTOMER_MANAGED_KMS_KEY`
     * > If you choose `CUSTOMER_MANAGED_KMS_KEY` , a `kms_key_identifier` in the format of a key ARN is required.
     * Valid values: `CUSTOMER_MANAGED_KMS_KEY` | `AWS_OWNED_KMS_KEY` .
     */
    @JvmName("ocwlspsvhtafkceg")
    public suspend fun encryptionType(`value`: Output) {
        this.encryptionType = value
    }

    /**
     * @param value Requires a `kms_key_identifier` in the format of a key ARN.
     */
    @JvmName("niycebovftwbjslo")
    public suspend fun kmsKeyIdentifier(`value`: Output) {
        this.kmsKeyIdentifier = value
    }

    /**
     * @param value The encryption at rest options for the table.
     * - *AWS owned key* (default) - `AWS_OWNED_KMS_KEY`
     * - *Customer managed key* - `CUSTOMER_MANAGED_KMS_KEY`
     * > If you choose `CUSTOMER_MANAGED_KMS_KEY` , a `kms_key_identifier` in the format of a key ARN is required.
     * Valid values: `CUSTOMER_MANAGED_KMS_KEY` | `AWS_OWNED_KMS_KEY` .
     */
    @JvmName("pwlrghpsvmeobtgv")
    public suspend fun encryptionType(`value`: TableEncryptionType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionType = mapped
    }

    /**
     * @param value Requires a `kms_key_identifier` in the format of a key ARN.
     */
    @JvmName("xtrareuknmlaqvjf")
    public suspend fun kmsKeyIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyIdentifier = mapped
    }

    internal fun build(): TableEncryptionSpecificationArgs = TableEncryptionSpecificationArgs(
        encryptionType = encryptionType ?: throw PulumiNullFieldException("encryptionType"),
        kmsKeyIdentifier = kmsKeyIdentifier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy