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 |
Describes the servers in your server catalog.
Before you can describe your servers, you must import them using ImportServerCatalog.
This operation returns paginated results.
Synopsis
- data GetServers = GetServers' {}
- newGetServers :: GetServers
- getServers_vmServerAddressList :: Lens' GetServers (Maybe [VmServerAddress])
- getServers_nextToken :: Lens' GetServers (Maybe Text)
- getServers_maxResults :: Lens' GetServers (Maybe Int)
- data GetServersResponse = GetServersResponse' {}
- newGetServersResponse :: Int -> GetServersResponse
- getServersResponse_serverCatalogStatus :: Lens' GetServersResponse (Maybe ServerCatalogStatus)
- getServersResponse_lastModifiedOn :: Lens' GetServersResponse (Maybe UTCTime)
- getServersResponse_nextToken :: Lens' GetServersResponse (Maybe Text)
- getServersResponse_serverList :: Lens' GetServersResponse (Maybe [Server])
- getServersResponse_httpStatus :: Lens' GetServersResponse Int
Creating a Request
data GetServers Source #
See: newGetServers
smart constructor.
GetServers' | |
|
Instances
newGetServers :: GetServers Source #
Create a value of GetServers
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:vmServerAddressList:GetServers'
, getServers_vmServerAddressList
- The server addresses.
$sel:nextToken:GetServers'
, getServers_nextToken
- The token for the next set of results.
$sel:maxResults:GetServers'
, getServers_maxResults
- The maximum number of results to return in a single call. The default
value is 50. To retrieve the remaining results, make another call with
the returned NextToken
value.
Request Lenses
getServers_vmServerAddressList :: Lens' GetServers (Maybe [VmServerAddress]) Source #
The server addresses.
getServers_nextToken :: Lens' GetServers (Maybe Text) Source #
The token for the next set of results.
getServers_maxResults :: Lens' GetServers (Maybe Int) Source #
The maximum number of results to return in a single call. The default
value is 50. To retrieve the remaining results, make another call with
the returned NextToken
value.
Destructuring the Response
data GetServersResponse Source #
See: newGetServersResponse
smart constructor.
GetServersResponse' | |
|
Instances
newGetServersResponse Source #
Create a value of GetServersResponse
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:serverCatalogStatus:GetServersResponse'
, getServersResponse_serverCatalogStatus
- The status of the server catalog.
$sel:lastModifiedOn:GetServersResponse'
, getServersResponse_lastModifiedOn
- The time when the server was last modified.
$sel:nextToken:GetServers'
, getServersResponse_nextToken
- The token required to retrieve the next set of results. This value is
null when there are no more results to return.
$sel:serverList:GetServersResponse'
, getServersResponse_serverList
- Information about the servers.
$sel:httpStatus:GetServersResponse'
, getServersResponse_httpStatus
- The response's http status code.
Response Lenses
getServersResponse_serverCatalogStatus :: Lens' GetServersResponse (Maybe ServerCatalogStatus) Source #
The status of the server catalog.
getServersResponse_lastModifiedOn :: Lens' GetServersResponse (Maybe UTCTime) Source #
The time when the server was last modified.
getServersResponse_nextToken :: Lens' GetServersResponse (Maybe Text) Source #
The token required to retrieve the next set of results. This value is null when there are no more results to return.
getServersResponse_serverList :: Lens' GetServersResponse (Maybe [Server]) Source #
Information about the servers.
getServersResponse_httpStatus :: Lens' GetServersResponse Int Source #
The response's http status code.