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 |
Retrieves room details, such as the room name, for a room in an Amazon Chime Enterprise account.
Synopsis
- data GetRoom = GetRoom' {}
- newGetRoom :: Text -> Text -> GetRoom
- getRoom_accountId :: Lens' GetRoom Text
- getRoom_roomId :: Lens' GetRoom Text
- data GetRoomResponse = GetRoomResponse' {
- room :: Maybe Room
- httpStatus :: Int
- newGetRoomResponse :: Int -> GetRoomResponse
- getRoomResponse_room :: Lens' GetRoomResponse (Maybe Room)
- getRoomResponse_httpStatus :: Lens' GetRoomResponse Int
Creating a Request
See: newGetRoom
smart constructor.
Instances
Create a value of GetRoom
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:accountId:GetRoom'
, getRoom_accountId
- The Amazon Chime account ID.
$sel:roomId:GetRoom'
, getRoom_roomId
- The room ID.
Request Lenses
Destructuring the Response
data GetRoomResponse Source #
See: newGetRoomResponse
smart constructor.
GetRoomResponse' | |
|
Instances
Create a value of GetRoomResponse
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:GetRoomResponse'
, getRoomResponse_room
- The room details.
$sel:httpStatus:GetRoomResponse'
, getRoomResponse_httpStatus
- The response's http status code.
Response Lenses
getRoomResponse_room :: Lens' GetRoomResponse (Maybe Room) Source #
The room details.
getRoomResponse_httpStatus :: Lens' GetRoomResponse Int Source #
The response's http status code.