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 that a bot has for a specific locale.
Synopsis
- data UpdateBotLocale = UpdateBotLocale' {}
- newUpdateBotLocale :: Text -> Text -> Text -> Double -> UpdateBotLocale
- updateBotLocale_description :: Lens' UpdateBotLocale (Maybe Text)
- updateBotLocale_voiceSettings :: Lens' UpdateBotLocale (Maybe VoiceSettings)
- updateBotLocale_botId :: Lens' UpdateBotLocale Text
- updateBotLocale_botVersion :: Lens' UpdateBotLocale Text
- updateBotLocale_localeId :: Lens' UpdateBotLocale Text
- updateBotLocale_nluIntentConfidenceThreshold :: Lens' UpdateBotLocale Double
- data UpdateBotLocaleResponse = UpdateBotLocaleResponse' {
- botId :: Maybe Text
- botLocaleStatus :: Maybe BotLocaleStatus
- botVersion :: Maybe Text
- creationDateTime :: Maybe POSIX
- description :: Maybe Text
- failureReasons :: Maybe [Text]
- lastUpdatedDateTime :: Maybe POSIX
- localeId :: Maybe Text
- localeName :: Maybe Text
- nluIntentConfidenceThreshold :: Maybe Double
- recommendedActions :: Maybe [Text]
- voiceSettings :: Maybe VoiceSettings
- httpStatus :: Int
- newUpdateBotLocaleResponse :: Int -> UpdateBotLocaleResponse
- updateBotLocaleResponse_botId :: Lens' UpdateBotLocaleResponse (Maybe Text)
- updateBotLocaleResponse_botLocaleStatus :: Lens' UpdateBotLocaleResponse (Maybe BotLocaleStatus)
- updateBotLocaleResponse_botVersion :: Lens' UpdateBotLocaleResponse (Maybe Text)
- updateBotLocaleResponse_creationDateTime :: Lens' UpdateBotLocaleResponse (Maybe UTCTime)
- updateBotLocaleResponse_description :: Lens' UpdateBotLocaleResponse (Maybe Text)
- updateBotLocaleResponse_failureReasons :: Lens' UpdateBotLocaleResponse (Maybe [Text])
- updateBotLocaleResponse_lastUpdatedDateTime :: Lens' UpdateBotLocaleResponse (Maybe UTCTime)
- updateBotLocaleResponse_localeId :: Lens' UpdateBotLocaleResponse (Maybe Text)
- updateBotLocaleResponse_localeName :: Lens' UpdateBotLocaleResponse (Maybe Text)
- updateBotLocaleResponse_nluIntentConfidenceThreshold :: Lens' UpdateBotLocaleResponse (Maybe Double)
- updateBotLocaleResponse_recommendedActions :: Lens' UpdateBotLocaleResponse (Maybe [Text])
- updateBotLocaleResponse_voiceSettings :: Lens' UpdateBotLocaleResponse (Maybe VoiceSettings)
- updateBotLocaleResponse_httpStatus :: Lens' UpdateBotLocaleResponse Int
Creating a Request
data UpdateBotLocale Source #
See: newUpdateBotLocale
smart constructor.
UpdateBotLocale' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Double | |
-> UpdateBotLocale |
Create a value of UpdateBotLocale
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:
UpdateBotLocale
, updateBotLocale_description
- The new description of the locale.
UpdateBotLocale
, updateBotLocale_voiceSettings
- The new Amazon Polly voice Amazon Lex should use for voice interaction
with the user.
UpdateBotLocale
, updateBotLocale_botId
- The unique identifier of the bot that contains the locale.
UpdateBotLocale
, updateBotLocale_botVersion
- The version of the bot that contains the locale to be updated. The
version can only be the DRAFT
version.
UpdateBotLocale
, updateBotLocale_localeId
- The identifier of the language and locale to update. The string must
match one of the supported locales. For more information, see
Supported languages.
UpdateBotLocale
, updateBotLocale_nluIntentConfidenceThreshold
- The new confidence threshold where Amazon Lex inserts the
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
intents in the
list of possible intents for an utterance.
Request Lenses
updateBotLocale_description :: Lens' UpdateBotLocale (Maybe Text) Source #
The new description of the locale.
updateBotLocale_voiceSettings :: Lens' UpdateBotLocale (Maybe VoiceSettings) Source #
The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.
updateBotLocale_botId :: Lens' UpdateBotLocale Text Source #
The unique identifier of the bot that contains the locale.
updateBotLocale_botVersion :: Lens' UpdateBotLocale Text Source #
The version of the bot that contains the locale to be updated. The
version can only be the DRAFT
version.
updateBotLocale_localeId :: Lens' UpdateBotLocale Text Source #
The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see Supported languages.
updateBotLocale_nluIntentConfidenceThreshold :: Lens' UpdateBotLocale Double Source #
The new confidence threshold where Amazon Lex inserts the
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
intents in the
list of possible intents for an utterance.
Destructuring the Response
data UpdateBotLocaleResponse Source #
See: newUpdateBotLocaleResponse
smart constructor.
UpdateBotLocaleResponse' | |
|
Instances
newUpdateBotLocaleResponse Source #
Create a value of UpdateBotLocaleResponse
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:
UpdateBotLocale
, updateBotLocaleResponse_botId
- The identifier of the bot that contains the updated locale.
UpdateBotLocaleResponse
, updateBotLocaleResponse_botLocaleStatus
- The current status of the locale. When the bot status is Built
the
locale is ready for use.
UpdateBotLocale
, updateBotLocaleResponse_botVersion
- The version of the bot that contains the updated locale.
UpdateBotLocaleResponse
, updateBotLocaleResponse_creationDateTime
- A timestamp of the date and time that the locale was created.
UpdateBotLocale
, updateBotLocaleResponse_description
- The updated description of the locale.
$sel:failureReasons:UpdateBotLocaleResponse'
, updateBotLocaleResponse_failureReasons
- If the botLocaleStatus
is Failed
, the failureReasons
field lists
the errors that occurred while building the bot.
UpdateBotLocaleResponse
, updateBotLocaleResponse_lastUpdatedDateTime
- A timestamp of the date and time that the locale was last updated.
UpdateBotLocale
, updateBotLocaleResponse_localeId
- The language and locale of the updated bot locale.
UpdateBotLocaleResponse
, updateBotLocaleResponse_localeName
- The updated locale name for the locale.
UpdateBotLocale
, updateBotLocaleResponse_nluIntentConfidenceThreshold
- The updated confidence threshold for inserting the
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
intents in the
list of possible intents for an utterance.
$sel:recommendedActions:UpdateBotLocaleResponse'
, updateBotLocaleResponse_recommendedActions
- Recommended actions to take to resolve an error in the failureReasons
field.
UpdateBotLocale
, updateBotLocaleResponse_voiceSettings
- The updated Amazon Polly voice to use for voice interaction with the
user.
$sel:httpStatus:UpdateBotLocaleResponse'
, updateBotLocaleResponse_httpStatus
- The response's http status code.
Response Lenses
updateBotLocaleResponse_botId :: Lens' UpdateBotLocaleResponse (Maybe Text) Source #
The identifier of the bot that contains the updated locale.
updateBotLocaleResponse_botLocaleStatus :: Lens' UpdateBotLocaleResponse (Maybe BotLocaleStatus) Source #
The current status of the locale. When the bot status is Built
the
locale is ready for use.
updateBotLocaleResponse_botVersion :: Lens' UpdateBotLocaleResponse (Maybe Text) Source #
The version of the bot that contains the updated locale.
updateBotLocaleResponse_creationDateTime :: Lens' UpdateBotLocaleResponse (Maybe UTCTime) Source #
A timestamp of the date and time that the locale was created.
updateBotLocaleResponse_description :: Lens' UpdateBotLocaleResponse (Maybe Text) Source #
The updated description of the locale.
updateBotLocaleResponse_failureReasons :: Lens' UpdateBotLocaleResponse (Maybe [Text]) Source #
If the botLocaleStatus
is Failed
, the failureReasons
field lists
the errors that occurred while building the bot.
updateBotLocaleResponse_lastUpdatedDateTime :: Lens' UpdateBotLocaleResponse (Maybe UTCTime) Source #
A timestamp of the date and time that the locale was last updated.
updateBotLocaleResponse_localeId :: Lens' UpdateBotLocaleResponse (Maybe Text) Source #
The language and locale of the updated bot locale.
updateBotLocaleResponse_localeName :: Lens' UpdateBotLocaleResponse (Maybe Text) Source #
The updated locale name for the locale.
updateBotLocaleResponse_nluIntentConfidenceThreshold :: Lens' UpdateBotLocaleResponse (Maybe Double) Source #
The updated confidence threshold for inserting the
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
intents in the
list of possible intents for an utterance.
updateBotLocaleResponse_recommendedActions :: Lens' UpdateBotLocaleResponse (Maybe [Text]) Source #
Recommended actions to take to resolve an error in the failureReasons
field.
updateBotLocaleResponse_voiceSettings :: Lens' UpdateBotLocaleResponse (Maybe VoiceSettings) Source #
The updated Amazon Polly voice to use for voice interaction with the user.
updateBotLocaleResponse_httpStatus :: Lens' UpdateBotLocaleResponse Int Source #
The response's http status code.