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

com.pulumi.awsnative.lex.kotlin.outputs.BotLocale.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.outputs

import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A locale in the bot, which contains the intents and slot types that the bot uses in conversations with users in the specified language and locale.
 * @property customVocabulary Specifies a custom vocabulary to use with a specific locale.
 * @property description A description of the bot locale. Use this to help identify the bot locale in lists.
 * @property intents List of intents
 * @property localeId The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales.
 * @property nluConfidenceThreshold Determines the threshold where Amazon Lex will insert the `AMAZON.FallbackIntent` , `AMAZON.KendraSearchIntent` , or both when returning alternative intents. You must configure an `AMAZON.FallbackIntent` . `AMAZON.KendraSearchIntent` is only inserted if it is configured for the bot.
 * @property slotTypes List of SlotTypes
 * @property voiceSettings Defines settings for using an Amazon Polly voice to communicate with a user.
 */
public data class BotLocale(
    public val customVocabulary: BotCustomVocabulary? = null,
    public val description: String? = null,
    public val intents: List? = null,
    public val localeId: String,
    public val nluConfidenceThreshold: Double,
    public val slotTypes: List? = null,
    public val voiceSettings: BotVoiceSettings? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotLocale): BotLocale =
            BotLocale(
                customVocabulary = javaType.customVocabulary().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lex.kotlin.outputs.BotCustomVocabulary.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                description = javaType.description().map({ args0 -> args0 }).orElse(null),
                intents = javaType.intents().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lex.kotlin.outputs.BotIntent.Companion.toKotlin(args0)
                    })
                }),
                localeId = javaType.localeId(),
                nluConfidenceThreshold = javaType.nluConfidenceThreshold(),
                slotTypes = javaType.slotTypes().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lex.kotlin.outputs.BotSlotType.Companion.toKotlin(args0)
                    })
                }),
                voiceSettings = javaType.voiceSettings().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lex.kotlin.outputs.BotVoiceSettings.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy