Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
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:
$sel:disabled:UpdateBot'
, updateBot_disabled
- When true, stops the specified bot from running in your account.
$sel:accountId:UpdateBot'
, updateBot_accountId
- The Amazon Chime account ID.
$sel:botId: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.
UpdateBotResponse' | |
|
Instances
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.