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