com.pulumi.awsnative.nimblestudio.kotlin.inputs.StudioEncryptionConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.nimblestudio.kotlin.inputs
import com.pulumi.awsnative.nimblestudio.inputs.StudioEncryptionConfigurationArgs.builder
import com.pulumi.awsnative.nimblestudio.kotlin.enums.StudioEncryptionConfigurationKeyType
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
/**
* Configuration of the encryption method that is used for the studio.
* @property keyArn The ARN for a KMS key that is used to encrypt studio data.
* @property keyType The type of KMS key that is used to encrypt studio data.
*/
public data class StudioEncryptionConfigurationArgs(
public val keyArn: Output? = null,
public val keyType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.nimblestudio.inputs.StudioEncryptionConfigurationArgs = com.pulumi.awsnative.nimblestudio.inputs.StudioEncryptionConfigurationArgs.builder()
.keyArn(keyArn?.applyValue({ args0 -> args0 }))
.keyType(keyType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [StudioEncryptionConfigurationArgs].
*/
@PulumiTagMarker
public class StudioEncryptionConfigurationArgsBuilder internal constructor() {
private var keyArn: Output? = null
private var keyType: Output? = null
/**
* @param value The ARN for a KMS key that is used to encrypt studio data.
*/
@JvmName("twiioqelwlvlabds")
public suspend fun keyArn(`value`: Output) {
this.keyArn = value
}
/**
* @param value The type of KMS key that is used to encrypt studio data.
*/
@JvmName("diyelydklxqtrmls")
public suspend fun keyType(`value`: Output) {
this.keyType = value
}
/**
* @param value The ARN for a KMS key that is used to encrypt studio data.
*/
@JvmName("kkoeqowepujhltip")
public suspend fun keyArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyArn = mapped
}
/**
* @param value The type of KMS key that is used to encrypt studio data.
*/
@JvmName("nleehjdgbkyitwiu")
public suspend fun keyType(`value`: StudioEncryptionConfigurationKeyType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyType = mapped
}
internal fun build(): StudioEncryptionConfigurationArgs = StudioEncryptionConfigurationArgs(
keyArn = keyArn,
keyType = keyType ?: throw PulumiNullFieldException("keyType"),
)
}