| 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 |
Amazonka.Chime.UpdateBot
Description
Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account.
Synopsis
- data UpdateBot = UpdateBot' {}
- newUpdateBot :: Text -> Text -> UpdateBot
- updateBot_disabled :: Lens' UpdateBot (Maybe Bool)
- updateBot_accountId :: Lens' UpdateBot Text
- updateBot_botId :: Lens' UpdateBot Text
- data UpdateBotResponse = UpdateBotResponse' {
- bot :: Maybe Bot
- httpStatus :: Int
- newUpdateBotResponse :: Int -> UpdateBotResponse
- updateBotResponse_bot :: Lens' UpdateBotResponse (Maybe Bot)
- updateBotResponse_httpStatus :: Lens' UpdateBotResponse Int
Creating a Request
See: newUpdateBot smart constructor.
Constructors
| UpdateBot' | |
Instances
Create a value of UpdateBot 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:
UpdateBot, updateBot_disabled - When true, stops the specified bot from running in your account.
UpdateBot, updateBot_accountId - The Amazon Chime account ID.
UpdateBot, updateBot_botId - The bot ID.
Request Lenses
updateBot_disabled :: Lens' UpdateBot (Maybe Bool) Source #
When true, stops the specified bot from running in your account.
Destructuring the Response
data UpdateBotResponse Source #
See: newUpdateBotResponse smart constructor.
Constructors
| UpdateBotResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> UpdateBotResponse |
Create a value of UpdateBotResponse 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:
$sel:bot:UpdateBotResponse', updateBotResponse_bot - The updated bot details.
$sel:httpStatus:UpdateBotResponse', updateBotResponse_httpStatus - The response's http status code.
Response Lenses
updateBotResponse_bot :: Lens' UpdateBotResponse (Maybe Bot) Source #
The updated bot details.
updateBotResponse_httpStatus :: Lens' UpdateBotResponse Int Source #
The response's http status code.