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 |
Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.
Synopsis
- data BuildBotLocale = BuildBotLocale' {}
- newBuildBotLocale :: Text -> Text -> Text -> BuildBotLocale
- buildBotLocale_botId :: Lens' BuildBotLocale Text
- buildBotLocale_botVersion :: Lens' BuildBotLocale Text
- buildBotLocale_localeId :: Lens' BuildBotLocale Text
- data BuildBotLocaleResponse = BuildBotLocaleResponse' {}
- newBuildBotLocaleResponse :: Int -> BuildBotLocaleResponse
- buildBotLocaleResponse_botId :: Lens' BuildBotLocaleResponse (Maybe Text)
- buildBotLocaleResponse_botLocaleStatus :: Lens' BuildBotLocaleResponse (Maybe BotLocaleStatus)
- buildBotLocaleResponse_botVersion :: Lens' BuildBotLocaleResponse (Maybe Text)
- buildBotLocaleResponse_lastBuildSubmittedDateTime :: Lens' BuildBotLocaleResponse (Maybe UTCTime)
- buildBotLocaleResponse_localeId :: Lens' BuildBotLocaleResponse (Maybe Text)
- buildBotLocaleResponse_httpStatus :: Lens' BuildBotLocaleResponse Int
Creating a Request
data BuildBotLocale Source #
See: newBuildBotLocale
smart constructor.
BuildBotLocale' | |
|
Instances
Create a value of BuildBotLocale
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:
BuildBotLocale
, buildBotLocale_botId
- The identifier of the bot to build. The identifier is returned in the
response from the
CreateBot
operation.
BuildBotLocale
, buildBotLocale_botVersion
- The version of the bot to build. This can only be the draft version of
the bot.
BuildBotLocale
, buildBotLocale_localeId
- The identifier of the language and locale that the bot will be used in.
The string must match one of the supported locales. All of the intents,
slot types, and slots used in the bot must have the same locale. For
more information, see
Supported languages.
Request Lenses
buildBotLocale_botId :: Lens' BuildBotLocale Text Source #
The identifier of the bot to build. The identifier is returned in the response from the CreateBot operation.
buildBotLocale_botVersion :: Lens' BuildBotLocale Text Source #
The version of the bot to build. This can only be the draft version of the bot.
buildBotLocale_localeId :: Lens' BuildBotLocale Text Source #
The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.
Destructuring the Response
data BuildBotLocaleResponse Source #
See: newBuildBotLocaleResponse
smart constructor.
BuildBotLocaleResponse' | |
|
Instances
newBuildBotLocaleResponse Source #
Create a value of BuildBotLocaleResponse
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:
BuildBotLocale
, buildBotLocaleResponse_botId
- The identifier of the specified bot.
BuildBotLocaleResponse
, buildBotLocaleResponse_botLocaleStatus
- The bot's build status. When the status is ReadyExpressTesting
you
can test the bot using the utterances defined for the intents and slot
types. When the status is Built
, the bot is ready for use and can be
tested using any utterance.
BuildBotLocale
, buildBotLocaleResponse_botVersion
- The version of the bot that was built. This is only the draft version of
the bot.
BuildBotLocaleResponse
, buildBotLocaleResponse_lastBuildSubmittedDateTime
- A timestamp indicating the date and time that the bot was last built for
this locale.
BuildBotLocale
, buildBotLocaleResponse_localeId
- The language and locale specified of where the bot can be used.
$sel:httpStatus:BuildBotLocaleResponse'
, buildBotLocaleResponse_httpStatus
- The response's http status code.
Response Lenses
buildBotLocaleResponse_botId :: Lens' BuildBotLocaleResponse (Maybe Text) Source #
The identifier of the specified bot.
buildBotLocaleResponse_botLocaleStatus :: Lens' BuildBotLocaleResponse (Maybe BotLocaleStatus) Source #
The bot's build status. When the status is ReadyExpressTesting
you
can test the bot using the utterances defined for the intents and slot
types. When the status is Built
, the bot is ready for use and can be
tested using any utterance.
buildBotLocaleResponse_botVersion :: Lens' BuildBotLocaleResponse (Maybe Text) Source #
The version of the bot that was built. This is only the draft version of the bot.
buildBotLocaleResponse_lastBuildSubmittedDateTime :: Lens' BuildBotLocaleResponse (Maybe UTCTime) Source #
A timestamp indicating the date and time that the bot was last built for this locale.
buildBotLocaleResponse_localeId :: Lens' BuildBotLocaleResponse (Maybe Text) Source #
The language and locale specified of where the bot can be used.
buildBotLocaleResponse_httpStatus :: Lens' BuildBotLocaleResponse Int Source #
The response's http status code.