| 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.CreateRoom
Description
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.
Constructors
| CreateRoom' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateRoom |
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.
CreateRoom, createRoom_accountId - The Amazon Chime account ID.
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.
Constructors
| CreateRoomResponse' | |
Fields
| |
Instances
newCreateRoomResponse Source #
Arguments
| :: Int | |
| -> CreateRoomResponse |
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.