| 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.Transfer.ListServers
Description
Lists the file transfer protocol-enabled servers that are associated with your Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListServers = ListServers' {}
- newListServers :: ListServers
- listServers_maxResults :: Lens' ListServers (Maybe Natural)
- listServers_nextToken :: Lens' ListServers (Maybe Text)
- data ListServersResponse = ListServersResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- servers :: [ListedServer]
- newListServersResponse :: Int -> ListServersResponse
- listServersResponse_nextToken :: Lens' ListServersResponse (Maybe Text)
- listServersResponse_httpStatus :: Lens' ListServersResponse Int
- listServersResponse_servers :: Lens' ListServersResponse [ListedServer]
Creating a Request
data ListServers Source #
See: newListServers smart constructor.
Constructors
| ListServers' | |
Fields
| |
Instances
newListServers :: ListServers Source #
Create a value of ListServers 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:ListServers', listServers_maxResults - Specifies the number of servers to return as a response to the
ListServers query.
ListServers, listServers_nextToken - When additional results are obtained from the ListServers command, a
NextToken parameter is returned in the output. You can then pass the
NextToken parameter in a subsequent command to continue listing
additional servers.
Request Lenses
listServers_maxResults :: Lens' ListServers (Maybe Natural) Source #
Specifies the number of servers to return as a response to the
ListServers query.
listServers_nextToken :: Lens' ListServers (Maybe Text) Source #
When additional results are obtained from the ListServers command, a
NextToken parameter is returned in the output. You can then pass the
NextToken parameter in a subsequent command to continue listing
additional servers.
Destructuring the Response
data ListServersResponse Source #
See: newListServersResponse smart constructor.
Constructors
| ListServersResponse' | |
Fields
| |
Instances
newListServersResponse Source #
Arguments
| :: Int | |
| -> ListServersResponse |
Create a value of ListServersResponse 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:
ListServers, listServersResponse_nextToken - When you can get additional results from the ListServers operation, a
NextToken parameter is returned in the output. In a following command,
you can pass in the NextToken parameter to continue listing additional
servers.
$sel:httpStatus:ListServersResponse', listServersResponse_httpStatus - The response's http status code.
$sel:servers:ListServersResponse', listServersResponse_servers - An array of servers that were listed.
Response Lenses
listServersResponse_nextToken :: Lens' ListServersResponse (Maybe Text) Source #
When you can get additional results from the ListServers operation, a
NextToken parameter is returned in the output. In a following command,
you can pass in the NextToken parameter to continue listing additional
servers.
listServersResponse_httpStatus :: Lens' ListServersResponse Int Source #
The response's http status code.
listServersResponse_servers :: Lens' ListServersResponse [ListedServer] Source #
An array of servers that were listed.