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 |
Searches rooms and lists the ones that meet a set of filter and sort criteria.
This operation returns paginated results.
Synopsis
- data SearchRooms = SearchRooms' {}
- newSearchRooms :: SearchRooms
- searchRooms_filters :: Lens' SearchRooms (Maybe [Filter])
- searchRooms_sortCriteria :: Lens' SearchRooms (Maybe [Sort])
- searchRooms_nextToken :: Lens' SearchRooms (Maybe Text)
- searchRooms_maxResults :: Lens' SearchRooms (Maybe Natural)
- data SearchRoomsResponse = SearchRoomsResponse' {}
- newSearchRoomsResponse :: Int -> SearchRoomsResponse
- searchRoomsResponse_rooms :: Lens' SearchRoomsResponse (Maybe [RoomData])
- searchRoomsResponse_nextToken :: Lens' SearchRoomsResponse (Maybe Text)
- searchRoomsResponse_totalCount :: Lens' SearchRoomsResponse (Maybe Int)
- searchRoomsResponse_httpStatus :: Lens' SearchRoomsResponse Int
Creating a Request
data SearchRooms Source #
See: newSearchRooms
smart constructor.
SearchRooms' | |
|
Instances
newSearchRooms :: SearchRooms Source #
Create a value of SearchRooms
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:filters:SearchRooms'
, searchRooms_filters
- The filters to use to list a specified set of rooms. The supported
filter keys are RoomName and ProfileName.
$sel:sortCriteria:SearchRooms'
, searchRooms_sortCriteria
- The sort order to use in listing the specified set of rooms. The
supported sort keys are RoomName and ProfileName.
$sel:nextToken:SearchRooms'
, searchRooms_nextToken
- An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
$sel:maxResults:SearchRooms'
, searchRooms_maxResults
- The maximum number of results to include in the response. If more
results exist than the specified MaxResults
value, a token is included
in the response so that the remaining results can be retrieved.
Request Lenses
searchRooms_filters :: Lens' SearchRooms (Maybe [Filter]) Source #
The filters to use to list a specified set of rooms. The supported filter keys are RoomName and ProfileName.
searchRooms_sortCriteria :: Lens' SearchRooms (Maybe [Sort]) Source #
The sort order to use in listing the specified set of rooms. The supported sort keys are RoomName and ProfileName.
searchRooms_nextToken :: Lens' SearchRooms (Maybe Text) Source #
An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
searchRooms_maxResults :: Lens' SearchRooms (Maybe Natural) Source #
The maximum number of results to include in the response. If more
results exist than the specified MaxResults
value, a token is included
in the response so that the remaining results can be retrieved.
Destructuring the Response
data SearchRoomsResponse Source #
See: newSearchRoomsResponse
smart constructor.
Instances
newSearchRoomsResponse Source #
Create a value of SearchRoomsResponse
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:SearchRoomsResponse'
, searchRoomsResponse_rooms
- The rooms that meet the specified set of filter criteria, in sort order.
$sel:nextToken:SearchRooms'
, searchRoomsResponse_nextToken
- The token returned to indicate that there is more data available.
$sel:totalCount:SearchRoomsResponse'
, searchRoomsResponse_totalCount
- The total number of rooms returned.
$sel:httpStatus:SearchRoomsResponse'
, searchRoomsResponse_httpStatus
- The response's http status code.
Response Lenses
searchRoomsResponse_rooms :: Lens' SearchRoomsResponse (Maybe [RoomData]) Source #
The rooms that meet the specified set of filter criteria, in sort order.
searchRoomsResponse_nextToken :: Lens' SearchRoomsResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
searchRoomsResponse_totalCount :: Lens' SearchRoomsResponse (Maybe Int) Source #
The total number of rooms returned.
searchRoomsResponse_httpStatus :: Lens' SearchRoomsResponse Int Source #
The response's http status code.