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 room profiles and lists the ones that meet a set of filter criteria.
This operation returns paginated results.
Synopsis
- data SearchProfiles = SearchProfiles' {}
- newSearchProfiles :: SearchProfiles
- searchProfiles_filters :: Lens' SearchProfiles (Maybe [Filter])
- searchProfiles_sortCriteria :: Lens' SearchProfiles (Maybe [Sort])
- searchProfiles_nextToken :: Lens' SearchProfiles (Maybe Text)
- searchProfiles_maxResults :: Lens' SearchProfiles (Maybe Natural)
- data SearchProfilesResponse = SearchProfilesResponse' {
- profiles :: Maybe [ProfileData]
- nextToken :: Maybe Text
- totalCount :: Maybe Int
- httpStatus :: Int
- newSearchProfilesResponse :: Int -> SearchProfilesResponse
- searchProfilesResponse_profiles :: Lens' SearchProfilesResponse (Maybe [ProfileData])
- searchProfilesResponse_nextToken :: Lens' SearchProfilesResponse (Maybe Text)
- searchProfilesResponse_totalCount :: Lens' SearchProfilesResponse (Maybe Int)
- searchProfilesResponse_httpStatus :: Lens' SearchProfilesResponse Int
Creating a Request
data SearchProfiles Source #
See: newSearchProfiles
smart constructor.
SearchProfiles' | |
|
Instances
newSearchProfiles :: SearchProfiles Source #
Create a value of SearchProfiles
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:SearchProfiles'
, searchProfiles_filters
- The filters to use to list a specified set of room profiles. Supported
filter keys are ProfileName and Address. Required.
$sel:sortCriteria:SearchProfiles'
, searchProfiles_sortCriteria
- The sort order to use in listing the specified set of room profiles.
Supported sort keys are ProfileName and Address.
$sel:nextToken:SearchProfiles'
, searchProfiles_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:SearchProfiles'
, searchProfiles_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
searchProfiles_filters :: Lens' SearchProfiles (Maybe [Filter]) Source #
The filters to use to list a specified set of room profiles. Supported filter keys are ProfileName and Address. Required.
searchProfiles_sortCriteria :: Lens' SearchProfiles (Maybe [Sort]) Source #
The sort order to use in listing the specified set of room profiles. Supported sort keys are ProfileName and Address.
searchProfiles_nextToken :: 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
.
searchProfiles_maxResults :: 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
data SearchProfilesResponse Source #
See: newSearchProfilesResponse
smart constructor.
SearchProfilesResponse' | |
|
Instances
newSearchProfilesResponse Source #
Create a value of SearchProfilesResponse
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:profiles:SearchProfilesResponse'
, searchProfilesResponse_profiles
- The profiles that meet the specified set of filter criteria, in sort
order.
$sel:nextToken:SearchProfiles'
, searchProfilesResponse_nextToken
- The token returned to indicate that there is more data available.
$sel:totalCount:SearchProfilesResponse'
, searchProfilesResponse_totalCount
- The total number of room profiles returned.
$sel:httpStatus:SearchProfilesResponse'
, searchProfilesResponse_httpStatus
- The response's http status code.
Response Lenses
searchProfilesResponse_profiles :: Lens' SearchProfilesResponse (Maybe [ProfileData]) Source #
The profiles that meet the specified set of filter criteria, in sort order.
searchProfilesResponse_nextToken :: Lens' SearchProfilesResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
searchProfilesResponse_totalCount :: Lens' SearchProfilesResponse (Maybe Int) Source #
The total number of room profiles returned.
searchProfilesResponse_httpStatus :: Lens' SearchProfilesResponse Int Source #
The response's http status code.