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 |
Lists the room details for the specified Amazon Chime Enterprise account. Optionally, filter the results by a member ID (user ID or bot ID) to see a list of rooms that the member belongs to.
Synopsis
- data ListRooms = ListRooms' {}
- newListRooms :: Text -> ListRooms
- listRooms_memberId :: Lens' ListRooms (Maybe Text)
- listRooms_nextToken :: Lens' ListRooms (Maybe Text)
- listRooms_maxResults :: Lens' ListRooms (Maybe Natural)
- listRooms_accountId :: Lens' ListRooms Text
- data ListRoomsResponse = ListRoomsResponse' {}
- newListRoomsResponse :: Int -> ListRoomsResponse
- listRoomsResponse_rooms :: Lens' ListRoomsResponse (Maybe [Room])
- listRoomsResponse_nextToken :: Lens' ListRoomsResponse (Maybe Text)
- listRoomsResponse_httpStatus :: Lens' ListRoomsResponse Int
Creating a Request
See: newListRooms
smart constructor.
Instances
Create a value of ListRooms
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:memberId:ListRooms'
, listRooms_memberId
- The member ID (user ID or bot ID).
$sel:nextToken:ListRooms'
, listRooms_nextToken
- The token to use to retrieve the next page of results.
$sel:maxResults:ListRooms'
, listRooms_maxResults
- The maximum number of results to return in a single call.
$sel:accountId:ListRooms'
, listRooms_accountId
- The Amazon Chime account ID.
Request Lenses
listRooms_nextToken :: Lens' ListRooms (Maybe Text) Source #
The token to use to retrieve the next page of results.
listRooms_maxResults :: Lens' ListRooms (Maybe Natural) Source #
The maximum number of results to return in a single call.
Destructuring the Response
data ListRoomsResponse Source #
See: newListRoomsResponse
smart constructor.
Instances
Create a value of ListRoomsResponse
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:rooms:ListRoomsResponse'
, listRoomsResponse_rooms
- The room details.
$sel:nextToken:ListRooms'
, listRoomsResponse_nextToken
- The token to use to retrieve the next page of results.
$sel:httpStatus:ListRoomsResponse'
, listRoomsResponse_httpStatus
- The response's http status code.
Response Lenses
listRoomsResponse_rooms :: Lens' ListRoomsResponse (Maybe [Room]) Source #
The room details.
listRoomsResponse_nextToken :: Lens' ListRoomsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results.
listRoomsResponse_httpStatus :: Lens' ListRoomsResponse Int Source #
The response's http status code.