Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates the settings for an intent.
Synopsis
- data UpdateIntent = UpdateIntent' {
- description :: Maybe Text
- dialogCodeHook :: Maybe DialogCodeHookSettings
- fulfillmentCodeHook :: Maybe FulfillmentCodeHookSettings
- initialResponseSetting :: Maybe InitialResponseSetting
- inputContexts :: Maybe [InputContext]
- intentClosingSetting :: Maybe IntentClosingSetting
- intentConfirmationSetting :: Maybe IntentConfirmationSetting
- kendraConfiguration :: Maybe KendraConfiguration
- outputContexts :: Maybe [OutputContext]
- parentIntentSignature :: Maybe Text
- sampleUtterances :: Maybe [SampleUtterance]
- slotPriorities :: Maybe [SlotPriority]
- intentId :: Text
- intentName :: Text
- botId :: Text
- botVersion :: Text
- localeId :: Text
- newUpdateIntent :: Text -> Text -> Text -> Text -> Text -> UpdateIntent
- updateIntent_description :: Lens' UpdateIntent (Maybe Text)
- updateIntent_dialogCodeHook :: Lens' UpdateIntent (Maybe DialogCodeHookSettings)
- updateIntent_fulfillmentCodeHook :: Lens' UpdateIntent (Maybe FulfillmentCodeHookSettings)
- updateIntent_initialResponseSetting :: Lens' UpdateIntent (Maybe InitialResponseSetting)
- updateIntent_inputContexts :: Lens' UpdateIntent (Maybe [InputContext])
- updateIntent_intentClosingSetting :: Lens' UpdateIntent (Maybe IntentClosingSetting)
- updateIntent_intentConfirmationSetting :: Lens' UpdateIntent (Maybe IntentConfirmationSetting)
- updateIntent_kendraConfiguration :: Lens' UpdateIntent (Maybe KendraConfiguration)
- updateIntent_outputContexts :: Lens' UpdateIntent (Maybe [OutputContext])
- updateIntent_parentIntentSignature :: Lens' UpdateIntent (Maybe Text)
- updateIntent_sampleUtterances :: Lens' UpdateIntent (Maybe [SampleUtterance])
- updateIntent_slotPriorities :: Lens' UpdateIntent (Maybe [SlotPriority])
- updateIntent_intentId :: Lens' UpdateIntent Text
- updateIntent_intentName :: Lens' UpdateIntent Text
- updateIntent_botId :: Lens' UpdateIntent Text
- updateIntent_botVersion :: Lens' UpdateIntent Text
- updateIntent_localeId :: Lens' UpdateIntent Text
- data UpdateIntentResponse = UpdateIntentResponse' {
- botId :: Maybe Text
- botVersion :: Maybe Text
- creationDateTime :: Maybe POSIX
- description :: Maybe Text
- dialogCodeHook :: Maybe DialogCodeHookSettings
- fulfillmentCodeHook :: Maybe FulfillmentCodeHookSettings
- initialResponseSetting :: Maybe InitialResponseSetting
- inputContexts :: Maybe [InputContext]
- intentClosingSetting :: Maybe IntentClosingSetting
- intentConfirmationSetting :: Maybe IntentConfirmationSetting
- intentId :: Maybe Text
- intentName :: Maybe Text
- kendraConfiguration :: Maybe KendraConfiguration
- lastUpdatedDateTime :: Maybe POSIX
- localeId :: Maybe Text
- outputContexts :: Maybe [OutputContext]
- parentIntentSignature :: Maybe Text
- sampleUtterances :: Maybe [SampleUtterance]
- slotPriorities :: Maybe [SlotPriority]
- httpStatus :: Int
- newUpdateIntentResponse :: Int -> UpdateIntentResponse
- updateIntentResponse_botId :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_botVersion :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_creationDateTime :: Lens' UpdateIntentResponse (Maybe UTCTime)
- updateIntentResponse_description :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_dialogCodeHook :: Lens' UpdateIntentResponse (Maybe DialogCodeHookSettings)
- updateIntentResponse_fulfillmentCodeHook :: Lens' UpdateIntentResponse (Maybe FulfillmentCodeHookSettings)
- updateIntentResponse_initialResponseSetting :: Lens' UpdateIntentResponse (Maybe InitialResponseSetting)
- updateIntentResponse_inputContexts :: Lens' UpdateIntentResponse (Maybe [InputContext])
- updateIntentResponse_intentClosingSetting :: Lens' UpdateIntentResponse (Maybe IntentClosingSetting)
- updateIntentResponse_intentConfirmationSetting :: Lens' UpdateIntentResponse (Maybe IntentConfirmationSetting)
- updateIntentResponse_intentId :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_intentName :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_kendraConfiguration :: Lens' UpdateIntentResponse (Maybe KendraConfiguration)
- updateIntentResponse_lastUpdatedDateTime :: Lens' UpdateIntentResponse (Maybe UTCTime)
- updateIntentResponse_localeId :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_outputContexts :: Lens' UpdateIntentResponse (Maybe [OutputContext])
- updateIntentResponse_parentIntentSignature :: Lens' UpdateIntentResponse (Maybe Text)
- updateIntentResponse_sampleUtterances :: Lens' UpdateIntentResponse (Maybe [SampleUtterance])
- updateIntentResponse_slotPriorities :: Lens' UpdateIntentResponse (Maybe [SlotPriority])
- updateIntentResponse_httpStatus :: Lens' UpdateIntentResponse Int
Creating a Request
data UpdateIntent Source #
See: newUpdateIntent
smart constructor.
UpdateIntent' | |
|
Instances
Create a value of UpdateIntent
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateIntent
, updateIntent_description
- The new description of the intent.
UpdateIntent
, updateIntent_dialogCodeHook
- The new Lambda function to use between each turn of the conversation
with the bot.
UpdateIntent
, updateIntent_fulfillmentCodeHook
- The new Lambda function to call when all of the intents required slots
are provided and the intent is ready for fulfillment.
UpdateIntent
, updateIntent_initialResponseSetting
-
UpdateIntent
, updateIntent_inputContexts
- A new list of contexts that must be active in order for Amazon Lex to
consider the intent.
UpdateIntent
, updateIntent_intentClosingSetting
- The new response that Amazon Lex sends the user when the intent is
closed.
UpdateIntent
, updateIntent_intentConfirmationSetting
- New prompts that Amazon Lex sends to the user to confirm the completion
of an intent.
UpdateIntent
, updateIntent_kendraConfiguration
- New configuration settings for connecting to an Amazon Kendra index.
UpdateIntent
, updateIntent_outputContexts
- A new list of contexts that Amazon Lex activates when the intent is
fulfilled.
UpdateIntent
, updateIntent_parentIntentSignature
- The signature of the new built-in intent to use as the parent of this
intent.
UpdateIntent
, updateIntent_sampleUtterances
- New utterances used to invoke the intent.
UpdateIntent
, updateIntent_slotPriorities
- A new list of slots and their priorities that are contained by the
intent.
UpdateIntent
, updateIntent_intentId
- The unique identifier of the intent to update.
UpdateIntent
, updateIntent_intentName
- The new name for the intent.
UpdateIntent
, updateIntent_botId
- The identifier of the bot that contains the intent.
UpdateIntent
, updateIntent_botVersion
- The version of the bot that contains the intent. Must be DRAFT
.
UpdateIntent
, updateIntent_localeId
- The identifier of the language and locale where this intent is used. The
string must match one of the supported locales. For more information,
see
Supported languages.
Request Lenses
updateIntent_description :: Lens' UpdateIntent (Maybe Text) Source #
The new description of the intent.
updateIntent_dialogCodeHook :: Lens' UpdateIntent (Maybe DialogCodeHookSettings) Source #
The new Lambda function to use between each turn of the conversation with the bot.
updateIntent_fulfillmentCodeHook :: Lens' UpdateIntent (Maybe FulfillmentCodeHookSettings) Source #
The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.
updateIntent_inputContexts :: Lens' UpdateIntent (Maybe [InputContext]) Source #
A new list of contexts that must be active in order for Amazon Lex to consider the intent.
updateIntent_intentClosingSetting :: Lens' UpdateIntent (Maybe IntentClosingSetting) Source #
The new response that Amazon Lex sends the user when the intent is closed.
updateIntent_intentConfirmationSetting :: Lens' UpdateIntent (Maybe IntentConfirmationSetting) Source #
New prompts that Amazon Lex sends to the user to confirm the completion of an intent.
updateIntent_kendraConfiguration :: Lens' UpdateIntent (Maybe KendraConfiguration) Source #
New configuration settings for connecting to an Amazon Kendra index.
updateIntent_outputContexts :: Lens' UpdateIntent (Maybe [OutputContext]) Source #
A new list of contexts that Amazon Lex activates when the intent is fulfilled.
updateIntent_parentIntentSignature :: Lens' UpdateIntent (Maybe Text) Source #
The signature of the new built-in intent to use as the parent of this intent.
updateIntent_sampleUtterances :: Lens' UpdateIntent (Maybe [SampleUtterance]) Source #
New utterances used to invoke the intent.
updateIntent_slotPriorities :: Lens' UpdateIntent (Maybe [SlotPriority]) Source #
A new list of slots and their priorities that are contained by the intent.
updateIntent_intentId :: Lens' UpdateIntent Text Source #
The unique identifier of the intent to update.
updateIntent_intentName :: Lens' UpdateIntent Text Source #
The new name for the intent.
updateIntent_botId :: Lens' UpdateIntent Text Source #
The identifier of the bot that contains the intent.
updateIntent_botVersion :: Lens' UpdateIntent Text Source #
The version of the bot that contains the intent. Must be DRAFT
.
updateIntent_localeId :: Lens' UpdateIntent Text Source #
The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see Supported languages.
Destructuring the Response
data UpdateIntentResponse Source #
See: newUpdateIntentResponse
smart constructor.
UpdateIntentResponse' | |
|
Instances
newUpdateIntentResponse Source #
Create a value of UpdateIntentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateIntent
, updateIntentResponse_botId
- The identifier of the bot that contains the intent.
UpdateIntent
, updateIntentResponse_botVersion
- The version of the bot that contains the intent. Will always be DRAFT
.
UpdateIntentResponse
, updateIntentResponse_creationDateTime
- A timestamp of when the intent was created.
UpdateIntent
, updateIntentResponse_description
- The updated description of the intent.
UpdateIntent
, updateIntentResponse_dialogCodeHook
- The updated Lambda function called during each turn of the conversation
with the user.
UpdateIntent
, updateIntentResponse_fulfillmentCodeHook
- The updated Lambda function called when the intent is ready for
fulfillment.
UpdateIntent
, updateIntentResponse_initialResponseSetting
-
UpdateIntent
, updateIntentResponse_inputContexts
- The updated list of contexts that must be active for the intent to be
considered by Amazon Lex.
UpdateIntent
, updateIntentResponse_intentClosingSetting
- The updated response that Amazon Lex sends the user when the intent is
closed.
UpdateIntent
, updateIntentResponse_intentConfirmationSetting
- The updated prompts that Amazon Lex sends to the user to confirm the
completion of an intent.
UpdateIntent
, updateIntentResponse_intentId
- The identifier of the intent that was updated.
UpdateIntent
, updateIntentResponse_intentName
- The updated name of the intent.
UpdateIntent
, updateIntentResponse_kendraConfiguration
- The updated configuration for connecting to an Amazon Kendra index with
the AMAZON.KendraSearchIntent
intent.
UpdateIntentResponse
, updateIntentResponse_lastUpdatedDateTime
- A timestamp of the last time that the intent was modified.
UpdateIntent
, updateIntentResponse_localeId
- The updated language and locale of the intent.
UpdateIntent
, updateIntentResponse_outputContexts
- The updated list of contexts that Amazon Lex activates when the intent
is fulfilled.
UpdateIntent
, updateIntentResponse_parentIntentSignature
- The updated built-in intent that is the parent of this intent.
UpdateIntent
, updateIntentResponse_sampleUtterances
- The updated list of sample utterances for the intent.
UpdateIntent
, updateIntentResponse_slotPriorities
- The updated list of slots and their priorities that are elicited from
the user for the intent.
$sel:httpStatus:UpdateIntentResponse'
, updateIntentResponse_httpStatus
- The response's http status code.
Response Lenses
updateIntentResponse_botId :: Lens' UpdateIntentResponse (Maybe Text) Source #
The identifier of the bot that contains the intent.
updateIntentResponse_botVersion :: Lens' UpdateIntentResponse (Maybe Text) Source #
The version of the bot that contains the intent. Will always be DRAFT
.
updateIntentResponse_creationDateTime :: Lens' UpdateIntentResponse (Maybe UTCTime) Source #
A timestamp of when the intent was created.
updateIntentResponse_description :: Lens' UpdateIntentResponse (Maybe Text) Source #
The updated description of the intent.
updateIntentResponse_dialogCodeHook :: Lens' UpdateIntentResponse (Maybe DialogCodeHookSettings) Source #
The updated Lambda function called during each turn of the conversation with the user.
updateIntentResponse_fulfillmentCodeHook :: Lens' UpdateIntentResponse (Maybe FulfillmentCodeHookSettings) Source #
The updated Lambda function called when the intent is ready for fulfillment.
updateIntentResponse_initialResponseSetting :: Lens' UpdateIntentResponse (Maybe InitialResponseSetting) Source #
updateIntentResponse_inputContexts :: Lens' UpdateIntentResponse (Maybe [InputContext]) Source #
The updated list of contexts that must be active for the intent to be considered by Amazon Lex.
updateIntentResponse_intentClosingSetting :: Lens' UpdateIntentResponse (Maybe IntentClosingSetting) Source #
The updated response that Amazon Lex sends the user when the intent is closed.
updateIntentResponse_intentConfirmationSetting :: Lens' UpdateIntentResponse (Maybe IntentConfirmationSetting) Source #
The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.
updateIntentResponse_intentId :: Lens' UpdateIntentResponse (Maybe Text) Source #
The identifier of the intent that was updated.
updateIntentResponse_intentName :: Lens' UpdateIntentResponse (Maybe Text) Source #
The updated name of the intent.
updateIntentResponse_kendraConfiguration :: Lens' UpdateIntentResponse (Maybe KendraConfiguration) Source #
The updated configuration for connecting to an Amazon Kendra index with
the AMAZON.KendraSearchIntent
intent.
updateIntentResponse_lastUpdatedDateTime :: Lens' UpdateIntentResponse (Maybe UTCTime) Source #
A timestamp of the last time that the intent was modified.
updateIntentResponse_localeId :: Lens' UpdateIntentResponse (Maybe Text) Source #
The updated language and locale of the intent.
updateIntentResponse_outputContexts :: Lens' UpdateIntentResponse (Maybe [OutputContext]) Source #
The updated list of contexts that Amazon Lex activates when the intent is fulfilled.
updateIntentResponse_parentIntentSignature :: Lens' UpdateIntentResponse (Maybe Text) Source #
The updated built-in intent that is the parent of this intent.
updateIntentResponse_sampleUtterances :: Lens' UpdateIntentResponse (Maybe [SampleUtterance]) Source #
The updated list of sample utterances for the intent.
updateIntentResponse_slotPriorities :: Lens' UpdateIntentResponse (Maybe [SlotPriority]) Source #
The updated list of slots and their priorities that are elicited from the user for the intent.
updateIntentResponse_httpStatus :: Lens' UpdateIntentResponse Int Source #
The response's http status code.