| 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.GetBot
Description
Retrieves details for the specified bot, such as bot email address, bot type, status, and display name.
Synopsis
- data GetBot = GetBot' {}
- newGetBot :: Text -> Text -> GetBot
- getBot_accountId :: Lens' GetBot Text
- getBot_botId :: Lens' GetBot Text
- data GetBotResponse = GetBotResponse' {
- bot :: Maybe Bot
- httpStatus :: Int
- newGetBotResponse :: Int -> GetBotResponse
- getBotResponse_bot :: Lens' GetBotResponse (Maybe Bot)
- getBotResponse_httpStatus :: Lens' GetBotResponse Int
Creating a Request
See: newGetBot smart constructor.
Instances
Create a value of GetBot 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:
GetBot, getBot_accountId - The Amazon Chime account ID.
GetBot, getBot_botId - The bot ID.
Request Lenses
Destructuring the Response
data GetBotResponse Source #
See: newGetBotResponse smart constructor.
Constructors
| GetBotResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetBotResponse |
Create a value of GetBotResponse 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:GetBotResponse', getBotResponse_bot - The chat bot details.
$sel:httpStatus:GetBotResponse', getBotResponse_httpStatus - The response's http status code.
Response Lenses
getBotResponse_bot :: Lens' GetBotResponse (Maybe Bot) Source #
The chat bot details.
getBotResponse_httpStatus :: Lens' GetBotResponse Int Source #
The response's http status code.