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 |
Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to.
This operation returns paginated results.
Synopsis
- data ListUsers = ListUsers' {}
- newListUsers :: Text -> ListUsers
- listUsers_nextToken :: Lens' ListUsers (Maybe Text)
- listUsers_userEmail :: Lens' ListUsers (Maybe Text)
- listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
- listUsers_userType :: Lens' ListUsers (Maybe UserType)
- listUsers_accountId :: Lens' ListUsers Text
- data ListUsersResponse = ListUsersResponse' {}
- newListUsersResponse :: Int -> ListUsersResponse
- listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User])
- listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
- 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 to use to retrieve the next page of results.
$sel:userEmail:ListUsers'
, listUsers_userEmail
- Optional. The user email address used to filter results. Maximum 1.
$sel:maxResults:ListUsers'
, listUsers_maxResults
- The maximum number of results to return in a single call. Defaults to
100.
$sel:userType:ListUsers'
, listUsers_userType
- The user type.
$sel:accountId:ListUsers'
, listUsers_accountId
- The Amazon Chime account ID.
Request Lenses
listUsers_nextToken :: Lens' ListUsers (Maybe Text) Source #
The token to use to retrieve the next page of results.
listUsers_userEmail :: Lens' ListUsers (Maybe Text) Source #
Optional. The user email address used to filter results. Maximum 1.
listUsers_maxResults :: Lens' ListUsers (Maybe Natural) Source #
The maximum number of results to return in a single call. Defaults to 100.
Destructuring the Response
data ListUsersResponse Source #
See: newListUsersResponse
smart constructor.
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:users:ListUsersResponse'
, listUsersResponse_users
- List of users and user details.
$sel:nextToken:ListUsers'
, listUsersResponse_nextToken
- The token to use to retrieve the next page of results.
$sel:httpStatus:ListUsersResponse'
, listUsersResponse_httpStatus
- The response's http status code.
Response Lenses
listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User]) Source #
List of users and user details.
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text) Source #
The token to use to retrieve the next page of results.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int Source #
The response's http status code.