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

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

package com.pulumi.awsnative.athena.kotlin.outputs

import com.pulumi.awsnative.athena.kotlin.enums.WorkGroupEncryptionOption
import kotlin.String
import kotlin.Suppress

/**
 * 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 WorkGroupEncryptionConfiguration(
    public val encryptionOption: WorkGroupEncryptionOption,
    public val kmsKey: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.athena.outputs.WorkGroupEncryptionConfiguration): WorkGroupEncryptionConfiguration = WorkGroupEncryptionConfiguration(
            encryptionOption = javaType.encryptionOption().let({ args0 ->
                com.pulumi.awsnative.athena.kotlin.enums.WorkGroupEncryptionOption.Companion.toKotlin(args0)
            }),
            kmsKey = javaType.kmsKey().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy