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 |
Removes a locale from a bot.
When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.
Synopsis
- data DeleteBotLocale = DeleteBotLocale' {}
- newDeleteBotLocale :: Text -> Text -> Text -> DeleteBotLocale
- deleteBotLocale_botId :: Lens' DeleteBotLocale Text
- deleteBotLocale_botVersion :: Lens' DeleteBotLocale Text
- deleteBotLocale_localeId :: Lens' DeleteBotLocale Text
- data DeleteBotLocaleResponse = DeleteBotLocaleResponse' {}
- newDeleteBotLocaleResponse :: Int -> DeleteBotLocaleResponse
- deleteBotLocaleResponse_botId :: Lens' DeleteBotLocaleResponse (Maybe Text)
- deleteBotLocaleResponse_botLocaleStatus :: Lens' DeleteBotLocaleResponse (Maybe BotLocaleStatus)
- deleteBotLocaleResponse_botVersion :: Lens' DeleteBotLocaleResponse (Maybe Text)
- deleteBotLocaleResponse_localeId :: Lens' DeleteBotLocaleResponse (Maybe Text)
- deleteBotLocaleResponse_httpStatus :: Lens' DeleteBotLocaleResponse Int
Creating a Request
data DeleteBotLocale Source #
See: newDeleteBotLocale
smart constructor.
DeleteBotLocale' | |
|
Instances
Create a value of DeleteBotLocale
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:
DeleteBotLocale
, deleteBotLocale_botId
- The unique identifier of the bot that contains the locale.
DeleteBotLocale
, deleteBotLocale_botVersion
- The version of the bot that contains the locale.
DeleteBotLocale
, deleteBotLocale_localeId
- The identifier of the language and locale that will be deleted. The
string must match one of the supported locales. For more information,
see
Supported languages.
Request Lenses
deleteBotLocale_botId :: Lens' DeleteBotLocale Text Source #
The unique identifier of the bot that contains the locale.
deleteBotLocale_botVersion :: Lens' DeleteBotLocale Text Source #
The version of the bot that contains the locale.
deleteBotLocale_localeId :: Lens' DeleteBotLocale Text Source #
The identifier of the language and locale that will be deleted. The string must match one of the supported locales. For more information, see Supported languages.
Destructuring the Response
data DeleteBotLocaleResponse Source #
See: newDeleteBotLocaleResponse
smart constructor.
DeleteBotLocaleResponse' | |
|
Instances
newDeleteBotLocaleResponse Source #
Create a value of DeleteBotLocaleResponse
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:
DeleteBotLocale
, deleteBotLocaleResponse_botId
- The identifier of the bot that contained the deleted locale.
DeleteBotLocaleResponse
, deleteBotLocaleResponse_botLocaleStatus
- The status of deleting the bot locale. The locale first enters the
Deleting
status. Once the locale is deleted it no longer appears in
the list of locales for the bot.
DeleteBotLocale
, deleteBotLocaleResponse_botVersion
- The version of the bot that contained the deleted locale.
DeleteBotLocale
, deleteBotLocaleResponse_localeId
- The language and locale of the deleted locale.
$sel:httpStatus:DeleteBotLocaleResponse'
, deleteBotLocaleResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBotLocaleResponse_botId :: Lens' DeleteBotLocaleResponse (Maybe Text) Source #
The identifier of the bot that contained the deleted locale.
deleteBotLocaleResponse_botLocaleStatus :: Lens' DeleteBotLocaleResponse (Maybe BotLocaleStatus) Source #
The status of deleting the bot locale. The locale first enters the
Deleting
status. Once the locale is deleted it no longer appears in
the list of locales for the bot.
deleteBotLocaleResponse_botVersion :: Lens' DeleteBotLocaleResponse (Maybe Text) Source #
The version of the bot that contained the deleted locale.
deleteBotLocaleResponse_localeId :: Lens' DeleteBotLocaleResponse (Maybe Text) Source #
The language and locale of the deleted locale.
deleteBotLocaleResponse_httpStatus :: Lens' DeleteBotLocaleResponse Int Source #
The response's http status code.