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

com.pulumi.awsnative.athena.kotlin.inputs.WorkGroupEncryptionConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.athena.kotlin.inputs

import com.pulumi.awsnative.athena.inputs.WorkGroupEncryptionConfigurationArgs.builder
import com.pulumi.awsnative.athena.kotlin.enums.WorkGroupEncryptionOption
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

/**
 * If query results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE-KMS or CSE-KMS) and key information.
 * @property encryptionOption Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys ( `SSE_S3` ), server-side encryption with KMS-managed keys ( `SSE_KMS` ), or client-side encryption with KMS-managed keys ( `CSE_KMS` ) is used.
 * If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
 * @property kmsKey For `SSE_KMS` and `CSE_KMS` , this is the KMS key ARN or ID.
 */
public data class WorkGroupEncryptionConfigurationArgs(
    public val encryptionOption: Output,
    public val kmsKey: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.athena.inputs.WorkGroupEncryptionConfigurationArgs =
        com.pulumi.awsnative.athena.inputs.WorkGroupEncryptionConfigurationArgs.builder()
            .encryptionOption(encryptionOption.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kmsKey(kmsKey?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkGroupEncryptionConfigurationArgs].
 */
@PulumiTagMarker
public class WorkGroupEncryptionConfigurationArgsBuilder internal constructor() {
    private var encryptionOption: Output? = null

    private var kmsKey: Output? = null

    /**
     * @param value Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys ( `SSE_S3` ), server-side encryption with KMS-managed keys ( `SSE_KMS` ), or client-side encryption with KMS-managed keys ( `CSE_KMS` ) is used.
     * If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
     */
    @JvmName("uvjxllumnjnkbxib")
    public suspend fun encryptionOption(`value`: Output) {
        this.encryptionOption = value
    }

    /**
     * @param value For `SSE_KMS` and `CSE_KMS` , this is the KMS key ARN or ID.
     */
    @JvmName("ikhfaoectjiukkvf")
    public suspend fun kmsKey(`value`: Output) {
        this.kmsKey = value
    }

    /**
     * @param value Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys ( `SSE_S3` ), server-side encryption with KMS-managed keys ( `SSE_KMS` ), or client-side encryption with KMS-managed keys ( `CSE_KMS` ) is used.
     * If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
     */
    @JvmName("qisxiqeqwuihxdio")
    public suspend fun encryptionOption(`value`: WorkGroupEncryptionOption) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionOption = mapped
    }

    /**
     * @param value For `SSE_KMS` and `CSE_KMS` , this is the KMS key ARN or ID.
     */
    @JvmName("lkldjsebdmknfppe")
    public suspend fun kmsKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKey = mapped
    }

    internal fun build(): WorkGroupEncryptionConfigurationArgs = WorkGroupEncryptionConfigurationArgs(
        encryptionOption = encryptionOption ?: throw PulumiNullFieldException("encryptionOption"),
        kmsKey = kmsKey,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy