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 chat room for the specified Amazon Chime Enterprise account.
Synopsis
- data CreateRoom = CreateRoom' {}
- newCreateRoom :: Text -> Text -> CreateRoom
- createRoom_clientRequestToken :: Lens' CreateRoom (Maybe Text)
- createRoom_accountId :: Lens' CreateRoom Text
- createRoom_name :: Lens' CreateRoom Text
- data CreateRoomResponse = CreateRoomResponse' {
- room :: Maybe Room
- httpStatus :: Int
- newCreateRoomResponse :: Int -> CreateRoomResponse
- createRoomResponse_room :: Lens' CreateRoomResponse (Maybe Room)
- createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int
Creating a Request
data CreateRoom Source #
See: newCreateRoom
smart constructor.
Instances
Create a value of CreateRoom
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:clientRequestToken:CreateRoom'
, createRoom_clientRequestToken
- The idempotency token for the request.
$sel:accountId:CreateRoom'
, createRoom_accountId
- The Amazon Chime account ID.
$sel:name:CreateRoom'
, createRoom_name
- The room name.
Request Lenses
createRoom_clientRequestToken :: Lens' CreateRoom (Maybe Text) Source #
The idempotency token for the request.
createRoom_accountId :: Lens' CreateRoom Text Source #
The Amazon Chime account ID.
createRoom_name :: Lens' CreateRoom Text Source #
The room name.
Destructuring the Response
data CreateRoomResponse Source #
See: newCreateRoomResponse
smart constructor.
CreateRoomResponse' | |
|
Instances
newCreateRoomResponse Source #
Create a value of CreateRoomResponse
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:room:CreateRoomResponse'
, createRoomResponse_room
- The room details.
$sel:httpStatus:CreateRoomResponse'
, createRoomResponse_httpStatus
- The response's http status code.
Response Lenses
createRoomResponse_room :: Lens' CreateRoomResponse (Maybe Room) Source #
The room details.
createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int Source #
The response's http status code.