| 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 |
Amazonka.Transfer.ListUsers
Description
Lists the users for a file transfer protocol-enabled server that you
specify by passing the ServerId parameter.
Synopsis
- data ListUsers = ListUsers' {}
- newListUsers :: Text -> ListUsers
- listUsers_nextToken :: Lens' ListUsers (Maybe Text)
- listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
- listUsers_serverId :: Lens' ListUsers Text
- data ListUsersResponse = ListUsersResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- serverId :: Text
- users :: [ListedUser]
- newListUsersResponse :: Int -> Text -> ListUsersResponse
- listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
- listUsersResponse_httpStatus :: Lens' ListUsersResponse Int
- listUsersResponse_serverId :: Lens' ListUsersResponse Text
- listUsersResponse_users :: Lens' ListUsersResponse [ListedUser]
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:nextToken:ListUsers', listUsers_nextToken - When you can get additional results from the ListUsers call, a
NextToken parameter is returned in the output. You can then pass in a
subsequent command to the NextToken parameter to continue listing
additional users.
$sel:maxResults:ListUsers', listUsers_maxResults - Specifies the number of users to return as a response to the ListUsers
request.
$sel:serverId:ListUsers', listUsers_serverId - A system-assigned unique identifier for a server that has users assigned
to it.
Request Lenses
listUsers_nextToken :: Lens' ListUsers (Maybe Text) Source #
When you can get additional results from the ListUsers call, a
NextToken parameter is returned in the output. You can then pass in a
subsequent command to the NextToken parameter to continue listing
additional users.
listUsers_maxResults :: Lens' ListUsers (Maybe Natural) Source #
Specifies the number of users to return as a response to the ListUsers
request.
listUsers_serverId :: Lens' ListUsers Text Source #
A system-assigned unique identifier for a server that has users assigned to it.
Destructuring the Response
data ListUsersResponse Source #
See: newListUsersResponse smart constructor.
Constructors
| ListUsersResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> Text | |
| -> 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:
$sel:nextToken:ListUsers', listUsersResponse_nextToken - When you can get additional results from the ListUsers call, a
NextToken parameter is returned in the output. You can then pass in a
subsequent command to the NextToken parameter to continue listing
additional users.
$sel:httpStatus:ListUsersResponse', listUsersResponse_httpStatus - The response's http status code.
$sel:serverId:ListUsers', listUsersResponse_serverId - A system-assigned unique identifier for a server that the users are
assigned to.
$sel:users:ListUsersResponse', listUsersResponse_users - Returns the user accounts and their properties for the ServerId value
that you specify.
Response Lenses
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text) Source #
When you can get additional results from the ListUsers call, a
NextToken parameter is returned in the output. You can then pass in a
subsequent command to the NextToken parameter to continue listing
additional users.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int Source #
The response's http status code.
listUsersResponse_serverId :: Lens' ListUsersResponse Text Source #
A system-assigned unique identifier for a server that the users are assigned to.
listUsersResponse_users :: Lens' ListUsersResponse [ListedUser] Source #
Returns the user accounts and their properties for the ServerId value
that you specify.