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 |
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.
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.
$sel:displayName:CreateBot'
, createBot_displayName
- The bot display name.
$sel:accountId: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.
CreateBotResponse' | |
|
Instances
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.