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

com.pulumi.awsnative.lex.kotlin.inputs.BotKendraConfigurationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.lex.inputs.BotKendraConfigurationArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Configuration for searching a Amazon Kendra index specified for the intent.
 * @property kendraIndex The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the `AMAZON.KendraSearchIntent` intent to search. The index must be in the same account and Region as the Amazon Lex bot.
 * @property queryFilterString A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. The filter is in the format defined by Amazon Kendra. For more information, see [Filtering queries](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html) .
 * @property queryFilterStringEnabled Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index.
 */
public data class BotKendraConfigurationArgs(
    public val kendraIndex: Output,
    public val queryFilterString: Output? = null,
    public val queryFilterStringEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotKendraConfigurationArgs =
        com.pulumi.awsnative.lex.inputs.BotKendraConfigurationArgs.builder()
            .kendraIndex(kendraIndex.applyValue({ args0 -> args0 }))
            .queryFilterString(queryFilterString?.applyValue({ args0 -> args0 }))
            .queryFilterStringEnabled(queryFilterStringEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotKendraConfigurationArgs].
 */
@PulumiTagMarker
public class BotKendraConfigurationArgsBuilder internal constructor() {
    private var kendraIndex: Output? = null

    private var queryFilterString: Output? = null

    private var queryFilterStringEnabled: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the `AMAZON.KendraSearchIntent` intent to search. The index must be in the same account and Region as the Amazon Lex bot.
     */
    @JvmName("yjfjbiunmclchrpr")
    public suspend fun kendraIndex(`value`: Output) {
        this.kendraIndex = value
    }

    /**
     * @param value A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. The filter is in the format defined by Amazon Kendra. For more information, see [Filtering queries](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html) .
     */
    @JvmName("muxxfdpvelqlrhnv")
    public suspend fun queryFilterString(`value`: Output) {
        this.queryFilterString = value
    }

    /**
     * @param value Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index.
     */
    @JvmName("lgcmedcwaugbkatt")
    public suspend fun queryFilterStringEnabled(`value`: Output) {
        this.queryFilterStringEnabled = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the `AMAZON.KendraSearchIntent` intent to search. The index must be in the same account and Region as the Amazon Lex bot.
     */
    @JvmName("acfjwwgdhktxckij")
    public suspend fun kendraIndex(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kendraIndex = mapped
    }

    /**
     * @param value A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. The filter is in the format defined by Amazon Kendra. For more information, see [Filtering queries](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html) .
     */
    @JvmName("xirodpkfctlaasho")
    public suspend fun queryFilterString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryFilterString = mapped
    }

    /**
     * @param value Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index.
     */
    @JvmName("tfivngyvfhtniaxs")
    public suspend fun queryFilterStringEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryFilterStringEnabled = mapped
    }

    internal fun build(): BotKendraConfigurationArgs = BotKendraConfigurationArgs(
        kendraIndex = kendraIndex ?: throw PulumiNullFieldException("kendraIndex"),
        queryFilterString = queryFilterString,
        queryFilterStringEnabled = queryFilterStringEnabled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy