| 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.MigrationHubStrategy.ListServers
Description
Returns a list of all the servers.
This operation returns paginated results.
Synopsis
- data ListServers = ListServers' {}
- newListServers :: ListServers
- listServers_filterValue :: Lens' ListServers (Maybe Text)
- listServers_groupIdFilter :: Lens' ListServers (Maybe [Group])
- listServers_maxResults :: Lens' ListServers (Maybe Int)
- listServers_nextToken :: Lens' ListServers (Maybe Text)
- listServers_serverCriteria :: Lens' ListServers (Maybe ServerCriteria)
- listServers_sort :: Lens' ListServers (Maybe SortOrder)
- data ListServersResponse = ListServersResponse' {
- nextToken :: Maybe Text
- serverInfos :: Maybe [ServerDetail]
- httpStatus :: Int
- newListServersResponse :: Int -> ListServersResponse
- listServersResponse_nextToken :: Lens' ListServersResponse (Maybe Text)
- listServersResponse_serverInfos :: Lens' ListServersResponse (Maybe [ServerDetail])
- listServersResponse_httpStatus :: Lens' ListServersResponse Int
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:filterValue:ListServers', listServers_filterValue - Specifies the filter value, which is based on the type of server
criteria. For example, if serverCriteria is OS_NAME, and the
filterValue is equal to WindowsServer, then ListServers returns
all of the servers matching the OS name WindowsServer.
$sel:groupIdFilter:ListServers', listServers_groupIdFilter - Specifies the group ID to filter on.
$sel:maxResults:ListServers', listServers_maxResults - The maximum number of items to include in the response. The maximum
value is 100.
ListServers, listServers_nextToken - The token from a previous call that you use to retrieve the next set of
results. For example, if a previous call to this action returned 100
items, but you set maxResults to 10. You'll receive a set of 10
results along with a token. You then use the returned token to retrieve
the next set of 10.
$sel:serverCriteria:ListServers', listServers_serverCriteria - Criteria for filtering servers.
$sel:sort:ListServers', listServers_sort - Specifies whether to sort by ascending (ASC) or descending (DESC)
order.
Request Lenses
listServers_filterValue :: Lens' ListServers (Maybe Text) Source #
Specifies the filter value, which is based on the type of server
criteria. For example, if serverCriteria is OS_NAME, and the
filterValue is equal to WindowsServer, then ListServers returns
all of the servers matching the OS name WindowsServer.
listServers_groupIdFilter :: Lens' ListServers (Maybe [Group]) Source #
Specifies the group ID to filter on.
listServers_maxResults :: Lens' ListServers (Maybe Int) Source #
The maximum number of items to include in the response. The maximum value is 100.
listServers_nextToken :: Lens' ListServers (Maybe Text) Source #
The token from a previous call that you use to retrieve the next set of
results. For example, if a previous call to this action returned 100
items, but you set maxResults to 10. You'll receive a set of 10
results along with a token. You then use the returned token to retrieve
the next set of 10.
listServers_serverCriteria :: Lens' ListServers (Maybe ServerCriteria) Source #
Criteria for filtering servers.
listServers_sort :: Lens' ListServers (Maybe SortOrder) Source #
Specifies whether to sort by ascending (ASC) or descending (DESC)
order.
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 - The token you use to retrieve the next set of results, or null if there
are no more results.
$sel:serverInfos:ListServersResponse', listServersResponse_serverInfos - The list of servers with detailed information about each server.
$sel:httpStatus:ListServersResponse', listServersResponse_httpStatus - The response's http status code.
Response Lenses
listServersResponse_nextToken :: Lens' ListServersResponse (Maybe Text) Source #
The token you use to retrieve the next set of results, or null if there are no more results.
listServersResponse_serverInfos :: Lens' ListServersResponse (Maybe [ServerDetail]) Source #
The list of servers with detailed information about each server.
listServersResponse_httpStatus :: Lens' ListServersResponse Int Source #
The response's http status code.