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 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_nextToken :: Lens' ListServers (Maybe Text)
- listServers_maxResults :: Lens' ListServers (Maybe Natural)
- 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.
ListServers' | |
|
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:nextToken: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.
$sel:maxResults:ListServers'
, listServers_maxResults
- Specifies the number of servers to return as a response to the
ListServers
query.
Request Lenses
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.
listServers_maxResults :: Lens' ListServers (Maybe Natural) Source #
Specifies the number of servers to return as a response to the
ListServers
query.
Destructuring the Response
data ListServersResponse Source #
See: newListServersResponse
smart constructor.
ListServersResponse' | |
|
Instances
newListServersResponse Source #
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:
$sel:nextToken: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.