Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Searches room profiles and lists the ones that meet a set of filter criteria.
This operation returns paginated results.
- searchProfiles :: SearchProfiles
- data SearchProfiles
- spFilters :: Lens' SearchProfiles [Filter]
- spSortCriteria :: Lens' SearchProfiles [Sort]
- spNextToken :: Lens' SearchProfiles (Maybe Text)
- spMaxResults :: Lens' SearchProfiles (Maybe Natural)
- searchProfilesResponse :: Int -> SearchProfilesResponse
- data SearchProfilesResponse
- sprsProfiles :: Lens' SearchProfilesResponse [ProfileData]
- sprsNextToken :: Lens' SearchProfilesResponse (Maybe Text)
- sprsTotalCount :: Lens' SearchProfilesResponse (Maybe Int)
- sprsResponseStatus :: Lens' SearchProfilesResponse Int
Creating a Request
searchProfiles :: SearchProfiles Source #
Creates a value of SearchProfiles
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
spFilters
- The filters to use to list a specified set of room profiles. Supported filter keys are ProfileName and Address. Required.spSortCriteria
- The sort order to use in listing the specified set of room profiles. Supported sort keys are ProfileName and Address.spNextToken
- 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 byMaxResults
.spMaxResults
- The maximum number of results to include in the response. If more results exist than the specifiedMaxResults
value, a token is included in the response so that the remaining results can be retrieved.
data SearchProfiles Source #
See: searchProfiles
smart constructor.
Request Lenses
spFilters :: Lens' SearchProfiles [Filter] Source #
The filters to use to list a specified set of room profiles. Supported filter keys are ProfileName and Address. Required.
spSortCriteria :: Lens' SearchProfiles [Sort] Source #
The sort order to use in listing the specified set of room profiles. Supported sort keys are ProfileName and Address.
spNextToken :: Lens' SearchProfiles (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
.
spMaxResults :: Lens' SearchProfiles (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
searchProfilesResponse Source #
Creates a value of SearchProfilesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sprsProfiles
- The profiles that meet the specified set of filter criteria, in sort order.sprsNextToken
- The token returned to indicate that there is more data available.sprsTotalCount
- The total number of room profiles returned.sprsResponseStatus
- -- | The response status code.
data SearchProfilesResponse Source #
See: searchProfilesResponse
smart constructor.
Response Lenses
sprsProfiles :: Lens' SearchProfilesResponse [ProfileData] Source #
The profiles that meet the specified set of filter criteria, in sort order.
sprsNextToken :: Lens' SearchProfilesResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
sprsTotalCount :: Lens' SearchProfilesResponse (Maybe Int) Source #
The total number of room profiles returned.
sprsResponseStatus :: Lens' SearchProfilesResponse Int Source #
- - | The response status code.