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 |
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_maxResults :: Lens' GetServers (Maybe Int)
- getServers_nextToken :: Lens' GetServers (Maybe Text)
- getServers_vmServerAddressList :: Lens' GetServers (Maybe [VmServerAddress])
- data GetServersResponse = GetServersResponse' {}
- newGetServersResponse :: Int -> GetServersResponse
- getServersResponse_lastModifiedOn :: Lens' GetServersResponse (Maybe UTCTime)
- getServersResponse_nextToken :: Lens' GetServersResponse (Maybe Text)
- getServersResponse_serverCatalogStatus :: Lens' GetServersResponse (Maybe ServerCatalogStatus)
- 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: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.
GetServers
, getServers_nextToken
- The token for the next set of results.
$sel:vmServerAddressList:GetServers'
, getServers_vmServerAddressList
- The server addresses.
Request Lenses
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.
getServers_nextToken :: Lens' GetServers (Maybe Text) Source #
The token for the next set of results.
getServers_vmServerAddressList :: Lens' GetServers (Maybe [VmServerAddress]) Source #
The server addresses.
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:lastModifiedOn:GetServersResponse'
, getServersResponse_lastModifiedOn
- The time when the server was last modified.
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:serverCatalogStatus:GetServersResponse'
, getServersResponse_serverCatalogStatus
- The status of the server catalog.
GetServersResponse
, getServersResponse_serverList
- Information about the servers.
$sel:httpStatus:GetServersResponse'
, getServersResponse_httpStatus
- The response's http status code.
Response Lenses
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_serverCatalogStatus :: Lens' GetServersResponse (Maybe ServerCatalogStatus) Source #
The status of the server catalog.
getServersResponse_serverList :: Lens' GetServersResponse (Maybe [Server]) Source #
Information about the servers.
getServersResponse_httpStatus :: Lens' GetServersResponse Int Source #
The response's http status code.