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 |
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]
- nextToken :: Maybe Text
- deviceId :: Maybe Text
- maxResults :: Maybe Natural
- globalNetworkId :: Text
- newGetConnections :: Text -> GetConnections
- getConnections_connectionIds :: Lens' GetConnections (Maybe [Text])
- getConnections_nextToken :: Lens' GetConnections (Maybe Text)
- getConnections_deviceId :: Lens' GetConnections (Maybe Text)
- getConnections_maxResults :: Lens' GetConnections (Maybe Natural)
- 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.
GetConnections' | |
|
Instances
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.
$sel:nextToken:GetConnections'
, getConnections_nextToken
- The token for the next page of results.
$sel:deviceId:GetConnections'
, getConnections_deviceId
- The ID of the device.
$sel:maxResults:GetConnections'
, getConnections_maxResults
- The maximum number of results to return.
$sel:globalNetworkId:GetConnections'
, getConnections_globalNetworkId
- The ID of the global network.
Request Lenses
getConnections_connectionIds :: Lens' GetConnections (Maybe [Text]) Source #
One or more connection IDs.
getConnections_nextToken :: Lens' GetConnections (Maybe Text) Source #
The token for the next page of results.
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_globalNetworkId :: Lens' GetConnections Text Source #
The ID of the global network.
Destructuring the Response
data GetConnectionsResponse Source #
See: newGetConnectionsResponse
smart constructor.
GetConnectionsResponse' | |
|
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.
$sel:nextToken: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.