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 |
Retrieves a list of servers that are one network hop away from a specified server.
Synopsis
- data ListServerNeighbors = ListServerNeighbors' {}
- newListServerNeighbors :: Text -> ListServerNeighbors
- listServerNeighbors_portInformationNeeded :: Lens' ListServerNeighbors (Maybe Bool)
- listServerNeighbors_neighborConfigurationIds :: Lens' ListServerNeighbors (Maybe [Text])
- listServerNeighbors_nextToken :: Lens' ListServerNeighbors (Maybe Text)
- listServerNeighbors_maxResults :: Lens' ListServerNeighbors (Maybe Int)
- listServerNeighbors_configurationId :: Lens' ListServerNeighbors Text
- data ListServerNeighborsResponse = ListServerNeighborsResponse' {}
- newListServerNeighborsResponse :: Int -> ListServerNeighborsResponse
- listServerNeighborsResponse_nextToken :: Lens' ListServerNeighborsResponse (Maybe Text)
- listServerNeighborsResponse_knownDependencyCount :: Lens' ListServerNeighborsResponse (Maybe Integer)
- listServerNeighborsResponse_httpStatus :: Lens' ListServerNeighborsResponse Int
- listServerNeighborsResponse_neighbors :: Lens' ListServerNeighborsResponse [NeighborConnectionDetail]
Creating a Request
data ListServerNeighbors Source #
See: newListServerNeighbors
smart constructor.
ListServerNeighbors' | |
|
Instances
newListServerNeighbors Source #
Create a value of ListServerNeighbors
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:portInformationNeeded:ListServerNeighbors'
, listServerNeighbors_portInformationNeeded
- Flag to indicate if port and protocol information is needed as part of
the response.
$sel:neighborConfigurationIds:ListServerNeighbors'
, listServerNeighbors_neighborConfigurationIds
- List of configuration IDs to test for one-hop-away.
$sel:nextToken:ListServerNeighbors'
, listServerNeighbors_nextToken
- Token to retrieve the next set of results. For example, if you
previously specified 100 IDs for
ListServerNeighborsRequest$neighborConfigurationIds
but set
ListServerNeighborsRequest$maxResults
to 10, you received a set of 10
results along with a token. Use that token in this query to get the next
set of 10.
$sel:maxResults:ListServerNeighbors'
, listServerNeighbors_maxResults
- Maximum number of results to return in a single page of output.
$sel:configurationId:ListServerNeighbors'
, listServerNeighbors_configurationId
- Configuration ID of the server for which neighbors are being listed.
Request Lenses
listServerNeighbors_portInformationNeeded :: Lens' ListServerNeighbors (Maybe Bool) Source #
Flag to indicate if port and protocol information is needed as part of the response.
listServerNeighbors_neighborConfigurationIds :: Lens' ListServerNeighbors (Maybe [Text]) Source #
List of configuration IDs to test for one-hop-away.
listServerNeighbors_nextToken :: Lens' ListServerNeighbors (Maybe Text) Source #
Token to retrieve the next set of results. For example, if you
previously specified 100 IDs for
ListServerNeighborsRequest$neighborConfigurationIds
but set
ListServerNeighborsRequest$maxResults
to 10, you received a set of 10
results along with a token. Use that token in this query to get the next
set of 10.
listServerNeighbors_maxResults :: Lens' ListServerNeighbors (Maybe Int) Source #
Maximum number of results to return in a single page of output.
listServerNeighbors_configurationId :: Lens' ListServerNeighbors Text Source #
Configuration ID of the server for which neighbors are being listed.
Destructuring the Response
data ListServerNeighborsResponse Source #
See: newListServerNeighborsResponse
smart constructor.
ListServerNeighborsResponse' | |
|
Instances
newListServerNeighborsResponse Source #
Create a value of ListServerNeighborsResponse
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:ListServerNeighbors'
, listServerNeighborsResponse_nextToken
- Token to retrieve the next set of results. For example, if you specified
100 IDs for ListServerNeighborsRequest$neighborConfigurationIds
but
set ListServerNeighborsRequest$maxResults
to 10, you received a set of
10 results along with this token. Use this token in the next query to
retrieve the next set of 10.
$sel:knownDependencyCount:ListServerNeighborsResponse'
, listServerNeighborsResponse_knownDependencyCount
- Count of distinct servers that are one hop away from the given server.
$sel:httpStatus:ListServerNeighborsResponse'
, listServerNeighborsResponse_httpStatus
- The response's http status code.
$sel:neighbors:ListServerNeighborsResponse'
, listServerNeighborsResponse_neighbors
- List of distinct servers that are one hop away from the given server.
Response Lenses
listServerNeighborsResponse_nextToken :: Lens' ListServerNeighborsResponse (Maybe Text) Source #
Token to retrieve the next set of results. For example, if you specified
100 IDs for ListServerNeighborsRequest$neighborConfigurationIds
but
set ListServerNeighborsRequest$maxResults
to 10, you received a set of
10 results along with this token. Use this token in the next query to
retrieve the next set of 10.
listServerNeighborsResponse_knownDependencyCount :: Lens' ListServerNeighborsResponse (Maybe Integer) Source #
Count of distinct servers that are one hop away from the given server.
listServerNeighborsResponse_httpStatus :: Lens' ListServerNeighborsResponse Int Source #
The response's http status code.
listServerNeighborsResponse_neighbors :: Lens' ListServerNeighborsResponse [NeighborConnectionDetail] Source #
List of distinct servers that are one hop away from the given server.