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 |
Provides summary information about the users for the specified Amazon Connect instance.
This operation returns paginated results.
Synopsis
- data ListUsers = ListUsers' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- instanceId :: Text
- newListUsers :: Text -> ListUsers
- listUsers_nextToken :: Lens' ListUsers (Maybe Text)
- listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
- listUsers_instanceId :: Lens' ListUsers Text
- data ListUsersResponse = ListUsersResponse' {
- nextToken :: Maybe Text
- userSummaryList :: Maybe [UserSummary]
- httpStatus :: Int
- newListUsersResponse :: Int -> ListUsersResponse
- listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
- listUsersResponse_userSummaryList :: Lens' ListUsersResponse (Maybe [UserSummary])
- listUsersResponse_httpStatus :: Lens' ListUsersResponse Int
Creating a Request
See: newListUsers
smart constructor.
ListUsers' | |
|
Instances
Create a value of ListUsers
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:nextToken:ListUsers'
, listUsers_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
$sel:maxResults:ListUsers'
, listUsers_maxResults
- The maximum number of results to return per page.
$sel:instanceId:ListUsers'
, listUsers_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listUsers_nextToken :: Lens' ListUsers (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listUsers_maxResults :: Lens' ListUsers (Maybe Natural) Source #
The maximum number of results to return per page.
listUsers_instanceId :: Lens' ListUsers Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data ListUsersResponse Source #
See: newListUsersResponse
smart constructor.
ListUsersResponse' | |
|
Instances
Create a value of ListUsersResponse
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:nextToken:ListUsers'
, listUsersResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:userSummaryList:ListUsersResponse'
, listUsersResponse_userSummaryList
- Information about the users.
$sel:httpStatus:ListUsersResponse'
, listUsersResponse_httpStatus
- The response's http status code.
Response Lenses
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listUsersResponse_userSummaryList :: Lens' ListUsersResponse (Maybe [UserSummary]) Source #
Information about the users.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int Source #
The response's http status code.