Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin
import com.pulumi.aws.lex.V2modelsIntentArgs.builder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentClosingSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentClosingSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentDialogCodeHookArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentDialogCodeHookArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentFulfillmentCodeHookArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentFulfillmentCodeHookArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInitialResponseSettingArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInitialResponseSettingArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInputContextArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInputContextArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentKendraConfigurationArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentKendraConfigurationArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentOutputContextArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentOutputContextArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentSampleUtteranceArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentSampleUtteranceArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentSlotPriorityArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentSlotPriorityArgsBuilder
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentTimeoutsArgs
import com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentTimeoutsArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* ## Import
* Using `pulumi import`, import Lex V2 Models Intent using the `intent_id:bot_id:bot_version:locale_id`. For example:
* ```sh
* $ pulumi import aws:lex/v2modelsIntent:V2modelsIntent example intent-42874:bot-11376:DRAFT:en_US
* ```
* @property botId Identifier of the bot associated with this intent.
* @property botVersion Version of the bot associated with this intent.
* @property closingSetting Configuration block for the response that Amazon Lex sends to the user when the intent is closed. See `closing_setting`.
* @property confirmationSetting
* @property description Description of the intent. Use the description to help identify the intent in lists.
* @property dialogCodeHook Configuration block for invoking the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction. See `dialog_code_hook`.
* @property fulfillmentCodeHook Configuration block for invoking the alias Lambda function when the intent is ready for fulfillment. You can invoke this function to complete the bot's transaction with the user. See `fulfillment_code_hook`.
* @property initialResponseSetting Configuration block for the response that is sent to the user at the beginning of a conversation, before eliciting slot values. See `initial_response_setting`.
* @property inputContexts Configuration blocks for contexts that must be active for this intent to be considered by Amazon Lex. When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent. A context can be automatically activated using the outputContexts property or it can be set at runtime. See `input_context`.
* @property kendraConfiguration Configuration block for information required to use the AMAZON.KendraSearchIntent intent to connect to an Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called when Amazon Lex can't determine another intent to invoke. See `kendra_configuration`.
* @property localeId Identifier of the language and locale where this intent is used. All of the bots, slot types, and slots used by the intent must have the same locale.
* @property name Name of the intent. Intent names must be unique in the locale that contains the intent and cannot match the name of any built-in intent.
* The following arguments are optional:
* @property outputContexts Configuration blocks for contexts that the intent activates when it is fulfilled. You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer. When you use the outputContextsList property, all of the contexts specified in the list are activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the number of conversation turns that the context should be active, or the length of time that the context should be active. See `output_context`.
* @property parentIntentSignature Identifier for the built-in intent to base this intent on.
* @property sampleUtterances Configuration block for strings that a user might say to signal the intent. See `sample_utterance`.
* @property slotPriorities Configuration block for a new list of slots and their priorities that are contained by the intent. This is ignored on create and only valid for updates. See `slot_priority`.
* @property timeouts
*/
public data class V2modelsIntentArgs(
public val botId: Output? = null,
public val botVersion: Output? = null,
public val closingSetting: Output? = null,
public val confirmationSetting: Output? = null,
public val description: Output? = null,
public val dialogCodeHook: Output? = null,
public val fulfillmentCodeHook: Output? = null,
public val initialResponseSetting: Output? = null,
public val inputContexts: Output>? = null,
public val kendraConfiguration: Output? = null,
public val localeId: Output? = null,
public val name: Output? = null,
public val outputContexts: Output>? = null,
public val parentIntentSignature: Output? = null,
public val sampleUtterances: Output>? = null,
public val slotPriorities: Output>? = null,
public val timeouts: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lex.V2modelsIntentArgs =
com.pulumi.aws.lex.V2modelsIntentArgs.builder()
.botId(botId?.applyValue({ args0 -> args0 }))
.botVersion(botVersion?.applyValue({ args0 -> args0 }))
.closingSetting(closingSetting?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.confirmationSetting(
confirmationSetting?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.dialogCodeHook(dialogCodeHook?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.fulfillmentCodeHook(
fulfillmentCodeHook?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.initialResponseSetting(
initialResponseSetting?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.inputContexts(
inputContexts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.kendraConfiguration(
kendraConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.localeId(localeId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.outputContexts(
outputContexts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.parentIntentSignature(parentIntentSignature?.applyValue({ args0 -> args0 }))
.sampleUtterances(
sampleUtterances?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.slotPriorities(
slotPriorities?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [V2modelsIntentArgs].
*/
@PulumiTagMarker
public class V2modelsIntentArgsBuilder internal constructor() {
private var botId: Output? = null
private var botVersion: Output? = null
private var closingSetting: Output? = null
private var confirmationSetting: Output? = null
private var description: Output? = null
private var dialogCodeHook: Output? = null
private var fulfillmentCodeHook: Output? = null
private var initialResponseSetting: Output? = null
private var inputContexts: Output>? = null
private var kendraConfiguration: Output? = null
private var localeId: Output? = null
private var name: Output? = null
private var outputContexts: Output>? = null
private var parentIntentSignature: Output? = null
private var sampleUtterances: Output>? = null
private var slotPriorities: Output>? = null
private var timeouts: Output? = null
/**
* @param value Identifier of the bot associated with this intent.
*/
@JvmName("wiylfuhbmolvovji")
public suspend fun botId(`value`: Output) {
this.botId = value
}
/**
* @param value Version of the bot associated with this intent.
*/
@JvmName("jdmqcxficyiwlbfl")
public suspend fun botVersion(`value`: Output) {
this.botVersion = value
}
/**
* @param value Configuration block for the response that Amazon Lex sends to the user when the intent is closed. See `closing_setting`.
*/
@JvmName("luwjaoohggmfrlnf")
public suspend fun closingSetting(`value`: Output) {
this.closingSetting = value
}
/**
* @param value
*/
@JvmName("rywfnesglucqwddy")
public suspend fun confirmationSetting(`value`: Output) {
this.confirmationSetting = value
}
/**
* @param value Description of the intent. Use the description to help identify the intent in lists.
*/
@JvmName("cpwyjduwcyqqoixw")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Configuration block for invoking the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction. See `dialog_code_hook`.
*/
@JvmName("veciylhoirmanqss")
public suspend fun dialogCodeHook(`value`: Output) {
this.dialogCodeHook = value
}
/**
* @param value Configuration block for invoking the alias Lambda function when the intent is ready for fulfillment. You can invoke this function to complete the bot's transaction with the user. See `fulfillment_code_hook`.
*/
@JvmName("qgryolkyjhbqogxj")
public suspend fun fulfillmentCodeHook(`value`: Output) {
this.fulfillmentCodeHook = value
}
/**
* @param value Configuration block for the response that is sent to the user at the beginning of a conversation, before eliciting slot values. See `initial_response_setting`.
*/
@JvmName("tkifwheleifqxddy")
public suspend fun initialResponseSetting(`value`: Output) {
this.initialResponseSetting = value
}
/**
* @param value Configuration blocks for contexts that must be active for this intent to be considered by Amazon Lex. When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent. A context can be automatically activated using the outputContexts property or it can be set at runtime. See `input_context`.
*/
@JvmName("cvafrjdenlrnmwhd")
public suspend fun inputContexts(`value`: Output>) {
this.inputContexts = value
}
@JvmName("lcfjombfqkflakjk")
public suspend fun inputContexts(vararg values: Output) {
this.inputContexts = Output.all(values.asList())
}
/**
* @param values Configuration blocks for contexts that must be active for this intent to be considered by Amazon Lex. When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent. A context can be automatically activated using the outputContexts property or it can be set at runtime. See `input_context`.
*/
@JvmName("cytdtfheaqauptje")
public suspend fun inputContexts(values: List