| 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.CreateBot
Description
Creates a bot for an Amazon Chime Enterprise account.
Synopsis
- data CreateBot = CreateBot' {}
- newCreateBot :: Text -> Text -> CreateBot
- createBot_domain :: Lens' CreateBot (Maybe Text)
- createBot_displayName :: Lens' CreateBot Text
- createBot_accountId :: Lens' CreateBot Text
- data CreateBotResponse = CreateBotResponse' {
- bot :: Maybe Bot
- httpStatus :: Int
- newCreateBotResponse :: Int -> CreateBotResponse
- createBotResponse_bot :: Lens' CreateBotResponse (Maybe Bot)
- createBotResponse_httpStatus :: Lens' CreateBotResponse Int
Creating a Request
See: newCreateBot smart constructor.
Constructors
| CreateBot' | |
Instances
Create a value of CreateBot 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:domain:CreateBot', createBot_domain - The domain of the Amazon Chime Enterprise account.
CreateBot, createBot_displayName - The bot display name.
CreateBot, createBot_accountId - The Amazon Chime account ID.
Request Lenses
createBot_domain :: Lens' CreateBot (Maybe Text) Source #
The domain of the Amazon Chime Enterprise account.
Destructuring the Response
data CreateBotResponse Source #
See: newCreateBotResponse smart constructor.
Constructors
| CreateBotResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> CreateBotResponse |
Create a value of CreateBotResponse 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:CreateBotResponse', createBotResponse_bot - The bot details.
$sel:httpStatus:CreateBotResponse', createBotResponse_httpStatus - The response's http status code.
Response Lenses
createBotResponse_bot :: Lens' CreateBotResponse (Maybe Bot) Source #
The bot details.
createBotResponse_httpStatus :: Lens' CreateBotResponse Int Source #
The response's http status code.