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

com.pulumi.awsnative.lex.kotlin.inputs.BotAliasConversationLogSettingsArgs.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.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotAliasConversationLogSettingsArgs.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 BotAliasConversationLogSettingsArgs(
    public val audioLogSettings: Output>? = null,
    public val textLogSettings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotAliasConversationLogSettingsArgs =
        com.pulumi.awsnative.lex.inputs.BotAliasConversationLogSettingsArgs.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 [BotAliasConversationLogSettingsArgs].
 */
@PulumiTagMarker
public class BotAliasConversationLogSettingsArgsBuilder 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("rvelvxfmknhedutl")
    public suspend fun audioLogSettings(`value`: Output>) {
        this.audioLogSettings = value
    }

    @JvmName("nswowqnvsriycovo")
    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("cpluivnsxasstihj")
    public suspend fun audioLogSettings(values: List>) {
        this.audioLogSettings = Output.all(values)
    }

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

    @JvmName("rwieprkdfiklvsuo")
    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("rscdxkiubtmwsjte")
    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("ajyukmsmbuhdsgnf")
    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("pfnywkcdmbwfhgwn")
    public suspend fun audioLogSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotAliasAudioLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.audioLogSettings = mapped
    }

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

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

    /**
     * @param values The Amazon S3 settings for logging audio to an S3 bucket.
     */
    @JvmName("rpwivedtgxyaikmy")
    public suspend fun audioLogSettings(vararg values: BotAliasAudioLogSettingArgs) {
        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("csijuybvuljsyhac")
    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("fqguhlaxlxrjvcrg")
    public suspend fun textLogSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotAliasTextLogSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.textLogSettings = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy