| 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.NetworkManager.GetConnections
Description
Gets information about one or more of your connections in a global network.
This operation returns paginated results.
Synopsis
- data GetConnections = GetConnections' {
- connectionIds :: Maybe [Text]
- deviceId :: Maybe Text
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- globalNetworkId :: Text
- newGetConnections :: Text -> GetConnections
- getConnections_connectionIds :: Lens' GetConnections (Maybe [Text])
- getConnections_deviceId :: Lens' GetConnections (Maybe Text)
- getConnections_maxResults :: Lens' GetConnections (Maybe Natural)
- getConnections_nextToken :: Lens' GetConnections (Maybe Text)
- getConnections_globalNetworkId :: Lens' GetConnections Text
- data GetConnectionsResponse = GetConnectionsResponse' {
- connections :: Maybe [Connection]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetConnectionsResponse :: Int -> GetConnectionsResponse
- getConnectionsResponse_connections :: Lens' GetConnectionsResponse (Maybe [Connection])
- getConnectionsResponse_nextToken :: Lens' GetConnectionsResponse (Maybe Text)
- getConnectionsResponse_httpStatus :: Lens' GetConnectionsResponse Int
Creating a Request
data GetConnections Source #
See: newGetConnections smart constructor.
Constructors
| GetConnections' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetConnections |
Create a value of GetConnections 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:connectionIds:GetConnections', getConnections_connectionIds - One or more connection IDs.
GetConnections, getConnections_deviceId - The ID of the device.
$sel:maxResults:GetConnections', getConnections_maxResults - The maximum number of results to return.
GetConnections, getConnections_nextToken - The token for the next page of results.
GetConnections, getConnections_globalNetworkId - The ID of the global network.
Request Lenses
getConnections_connectionIds :: Lens' GetConnections (Maybe [Text]) Source #
One or more connection IDs.
getConnections_deviceId :: Lens' GetConnections (Maybe Text) Source #
The ID of the device.
getConnections_maxResults :: Lens' GetConnections (Maybe Natural) Source #
The maximum number of results to return.
getConnections_nextToken :: Lens' GetConnections (Maybe Text) Source #
The token for the next page of results.
getConnections_globalNetworkId :: Lens' GetConnections Text Source #
The ID of the global network.
Destructuring the Response
data GetConnectionsResponse Source #
See: newGetConnectionsResponse smart constructor.
Constructors
| GetConnectionsResponse' | |
Fields
| |
Instances
newGetConnectionsResponse Source #
Create a value of GetConnectionsResponse 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:connections:GetConnectionsResponse', getConnectionsResponse_connections - Information about the connections.
GetConnections, getConnectionsResponse_nextToken - The token to use for the next page of results.
$sel:httpStatus:GetConnectionsResponse', getConnectionsResponse_httpStatus - The response's http status code.
Response Lenses
getConnectionsResponse_connections :: Lens' GetConnectionsResponse (Maybe [Connection]) Source #
Information about the connections.
getConnectionsResponse_nextToken :: Lens' GetConnectionsResponse (Maybe Text) Source #
The token to use for the next page of results.
getConnectionsResponse_httpStatus :: Lens' GetConnectionsResponse Int Source #
The response's http status code.