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 |
Searches users and lists the ones that meet a set of filter and sort criteria.
This operation returns paginated results.
Synopsis
- data SearchUsers = SearchUsers' {}
- newSearchUsers :: SearchUsers
- searchUsers_filters :: Lens' SearchUsers (Maybe [Filter])
- searchUsers_maxResults :: Lens' SearchUsers (Maybe Natural)
- searchUsers_nextToken :: Lens' SearchUsers (Maybe Text)
- searchUsers_sortCriteria :: Lens' SearchUsers (Maybe [Sort])
- data SearchUsersResponse = SearchUsersResponse' {}
- newSearchUsersResponse :: Int -> SearchUsersResponse
- searchUsersResponse_nextToken :: Lens' SearchUsersResponse (Maybe Text)
- searchUsersResponse_totalCount :: Lens' SearchUsersResponse (Maybe Int)
- searchUsersResponse_users :: Lens' SearchUsersResponse (Maybe [UserData])
- searchUsersResponse_httpStatus :: Lens' SearchUsersResponse Int
Creating a Request
data SearchUsers Source #
See: newSearchUsers
smart constructor.
SearchUsers' | |
|
Instances
newSearchUsers :: SearchUsers Source #
Create a value of SearchUsers
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:SearchUsers'
, searchUsers_filters
- The filters to use for listing a specific set of users. Required.
Supported filter keys are UserId, FirstName, LastName, Email, and
EnrollmentStatus.
$sel:maxResults:SearchUsers'
, searchUsers_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.
Required.
SearchUsers
, searchUsers_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
. Required.
$sel:sortCriteria:SearchUsers'
, searchUsers_sortCriteria
- The sort order to use in listing the filtered set of users. Required.
Supported sort keys are UserId, FirstName, LastName, Email, and
EnrollmentStatus.
Request Lenses
searchUsers_filters :: Lens' SearchUsers (Maybe [Filter]) Source #
The filters to use for listing a specific set of users. Required. Supported filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.
searchUsers_maxResults :: Lens' SearchUsers (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.
Required.
searchUsers_nextToken :: Lens' SearchUsers (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
. Required.
searchUsers_sortCriteria :: Lens' SearchUsers (Maybe [Sort]) Source #
The sort order to use in listing the filtered set of users. Required. Supported sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus.
Destructuring the Response
data SearchUsersResponse Source #
See: newSearchUsersResponse
smart constructor.
Instances
newSearchUsersResponse Source #
Create a value of SearchUsersResponse
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:
SearchUsers
, searchUsersResponse_nextToken
- The token returned to indicate that there is more data available.
$sel:totalCount:SearchUsersResponse'
, searchUsersResponse_totalCount
- The total number of users returned.
$sel:users:SearchUsersResponse'
, searchUsersResponse_users
- The users that meet the specified set of filter criteria, in sort order.
$sel:httpStatus:SearchUsersResponse'
, searchUsersResponse_httpStatus
- The response's http status code.
Response Lenses
searchUsersResponse_nextToken :: Lens' SearchUsersResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
searchUsersResponse_totalCount :: Lens' SearchUsersResponse (Maybe Int) Source #
The total number of users returned.
searchUsersResponse_users :: Lens' SearchUsersResponse (Maybe [UserData]) Source #
The users that meet the specified set of filter criteria, in sort order.
searchUsersResponse_httpStatus :: Lens' SearchUsersResponse Int Source #
The response's http status code.