| 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 |
Amazonka.WorkMail.ListUsers
Description
Returns summaries of the organization's users.
This operation returns paginated results.
Synopsis
- data ListUsers = ListUsers' {}
- newListUsers :: Text -> ListUsers
- listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
- listUsers_nextToken :: Lens' ListUsers (Maybe Text)
- listUsers_organizationId :: Lens' ListUsers Text
- data ListUsersResponse = ListUsersResponse' {}
- newListUsersResponse :: Int -> ListUsersResponse
- listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
- listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User])
- listUsersResponse_httpStatus :: Lens' ListUsersResponse Int
Creating a Request
See: newListUsers smart constructor.
Constructors
| ListUsers' | |
Fields
| |
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:maxResults:ListUsers', listUsers_maxResults - The maximum number of results to return in a single call.
ListUsers, listUsers_nextToken - The token to use to retrieve the next page of results. The first call
does not contain any tokens.
ListUsers, listUsers_organizationId - The identifier for the organization under which the users exist.
Request Lenses
listUsers_maxResults :: Lens' ListUsers (Maybe Natural) Source #
The maximum number of results to return in a single call.
listUsers_nextToken :: Lens' ListUsers (Maybe Text) Source #
The token to use to retrieve the next page of results. The first call does not contain any tokens.
listUsers_organizationId :: Lens' ListUsers Text Source #
The identifier for the organization under which the users exist.
Destructuring the Response
data ListUsersResponse Source #
See: newListUsersResponse smart constructor.
Constructors
| ListUsersResponse' | |
Instances
Arguments
| :: Int | |
| -> ListUsersResponse |
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:
ListUsers, listUsersResponse_nextToken - The token to use to retrieve the next page of results. This value is
`null` when there are no more results to return.
$sel:users:ListUsersResponse', listUsersResponse_users - The overview of users for an organization.
$sel:httpStatus:ListUsersResponse', listUsersResponse_httpStatus - The response's http status code.
Response Lenses
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is `null` when there are no more results to return.
listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User]) Source #
The overview of users for an organization.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int Source #
The response's http status code.