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

com.pulumi.awsnative.lex.kotlin.inputs.BotConversationLogSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotConversationLogSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Contains information about code hooks that Amazon Lex calls during a conversation.
 * @property audioLogSettings The Amazon S3 settings for logging audio to an S3 bucket.
 * @property textLogSettings The Amazon CloudWatch Logs settings for logging text and metadata.
 */
public data class BotConversationLogSettingsArgs(
    public val audioLogSettings: Output>? = null,
    public val textLogSettings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotConversationLogSettingsArgs =
        com.pulumi.awsnative.lex.inputs.BotConversationLogSettingsArgs.builder()
            .audioLogSettings(
                audioLogSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .textLogSettings(
                textLogSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BotConversationLogSettingsArgs].
 */
@PulumiTagMarker
public class BotConversationLogSettingsArgsBuilder internal constructor() {
    private var audioLogSettings: Output>? = null

    private var textLogSettings: Output>? = null

    /**
     * @param value The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("kyjuitrccbvknnyp")
    public suspend fun audioLogSettings(`value`: Output>) {
        this.audioLogSettings = value
    }

    @JvmName("ysskdaqqgoculgmx")
    public suspend fun audioLogSettings(vararg values: Output) {
        this.audioLogSettings = Output.all(values.asList())
    }

    /**
     * @param values The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("sabmbmlfpxtfyeun")
    public suspend fun audioLogSettings(values: List>) {
        this.audioLogSettings = Output.all(values)
    }

    /**
     * @param value The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("ykyfhtudpyxoltki")
    public suspend fun textLogSettings(`value`: Output>) {
        this.textLogSettings = value
    }

    @JvmName("qombpfaviiqytdal")
    public suspend fun textLogSettings(vararg values: Output) {
        this.textLogSettings = Output.all(values.asList())
    }

    /**
     * @param values The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("wujuxuueaxhgprja")
    public suspend fun textLogSettings(values: List>) {
        this.textLogSettings = Output.all(values)
    }

    /**
     * @param value The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("lwnesqckmunrpnnt")
    public suspend fun audioLogSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audioLogSettings = mapped
    }

    /**
     * @param argument The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("qsomxcumngdiqkdc")
    public suspend fun audioLogSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotAudioLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.audioLogSettings = mapped
    }

    /**
     * @param argument The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("eoojfelplnatltvv")
    public suspend fun audioLogSettings(vararg argument: suspend BotAudioLogSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotAudioLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.audioLogSettings = mapped
    }

    /**
     * @param argument The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("wrnanxmemldjsvqk")
    public suspend fun audioLogSettings(argument: suspend BotAudioLogSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BotAudioLogSettingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.audioLogSettings = mapped
    }

    /**
     * @param values The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("mrofdnarkivblmxi")
    public suspend fun audioLogSettings(vararg values: BotAudioLogSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audioLogSettings = mapped
    }

    /**
     * @param value The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("fdumnkfxyuimxfjj")
    public suspend fun textLogSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textLogSettings = mapped
    }

    /**
     * @param argument The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("gamhdbxginpiibml")
    public suspend fun textLogSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotTextLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.textLogSettings = mapped
    }

    /**
     * @param argument The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("frvjrpxeepaqwjwt")
    public suspend fun textLogSettings(vararg argument: suspend BotTextLogSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotTextLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.textLogSettings = mapped
    }

    /**
     * @param argument The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("ogflynrbvkgdsrxq")
    public suspend fun textLogSettings(argument: suspend BotTextLogSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BotTextLogSettingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.textLogSettings = mapped
    }

    /**
     * @param values The Amazon CloudWatch Logs settings for logging text and metadata.
     */
    @JvmName("dcjgylhvbfubkbar")
    public suspend fun textLogSettings(vararg values: BotTextLogSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.textLogSettings = mapped
    }

    internal fun build(): BotConversationLogSettingsArgs = BotConversationLogSettingsArgs(
        audioLogSettings = audioLogSettings,
        textLogSettings = textLogSettings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy