com.pulumi.awsnative.lex.kotlin.outputs.BotKendraConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* 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 BotKendraConfiguration(
public val kendraIndex: String,
public val queryFilterString: String? = null,
public val queryFilterStringEnabled: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotKendraConfiguration): BotKendraConfiguration = BotKendraConfiguration(
kendraIndex = javaType.kendraIndex(),
queryFilterString = javaType.queryFilterString().map({ args0 -> args0 }).orElse(null),
queryFilterStringEnabled = javaType.queryFilterStringEnabled().map({ args0 -> args0 }).orElse(null),
)
}
}