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

com.pulumi.aws.kinesis.kotlin.inputs.FirehoseDeliveryStreamServerSideEncryptionArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.kinesis.kotlin.inputs

import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamServerSideEncryptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether to enable encryption at rest. Default is `false`.
 * @property keyArn Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
 * @property keyType Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
 */
public data class FirehoseDeliveryStreamServerSideEncryptionArgs(
    public val enabled: Output? = null,
    public val keyArn: Output? = null,
    public val keyType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamServerSideEncryptionArgs =
        com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamServerSideEncryptionArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .keyArn(keyArn?.applyValue({ args0 -> args0 }))
            .keyType(keyType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirehoseDeliveryStreamServerSideEncryptionArgs].
 */
@PulumiTagMarker
public class FirehoseDeliveryStreamServerSideEncryptionArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var keyArn: Output? = null

    private var keyType: Output? = null

    /**
     * @param value Whether to enable encryption at rest. Default is `false`.
     */
    @JvmName("lidootclpvqopigd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
     */
    @JvmName("twnyfhqdpjtlcreh")
    public suspend fun keyArn(`value`: Output) {
        this.keyArn = value
    }

    /**
     * @param value Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
     */
    @JvmName("galoddxjjaeegcnk")
    public suspend fun keyType(`value`: Output) {
        this.keyType = value
    }

    /**
     * @param value Whether to enable encryption at rest. Default is `false`.
     */
    @JvmName("lrdadjtsgjfmkbpa")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
     */
    @JvmName("cyvlpfnrrwswkqev")
    public suspend fun keyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyArn = mapped
    }

    /**
     * @param value Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
     */
    @JvmName("klylsfbuwismrfnh")
    public suspend fun keyType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyType = mapped
    }

    internal fun build(): FirehoseDeliveryStreamServerSideEncryptionArgs =
        FirehoseDeliveryStreamServerSideEncryptionArgs(
            enabled = enabled,
            keyArn = keyArn,
            keyType = keyType,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy