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 connections from the account.
Synopsis
- data ListConnections = ListConnections' {}
- newListConnections :: ListConnections
- listConnections_nextToken :: Lens' ListConnections (Maybe Text)
- listConnections_namePrefix :: Lens' ListConnections (Maybe Text)
- listConnections_limit :: Lens' ListConnections (Maybe Natural)
- listConnections_connectionState :: Lens' ListConnections (Maybe ConnectionState)
- data ListConnectionsResponse = ListConnectionsResponse' {
- connections :: Maybe [Connection]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListConnectionsResponse :: Int -> ListConnectionsResponse
- listConnectionsResponse_connections :: Lens' ListConnectionsResponse (Maybe [Connection])
- listConnectionsResponse_nextToken :: Lens' ListConnectionsResponse (Maybe Text)
- listConnectionsResponse_httpStatus :: Lens' ListConnectionsResponse Int
Creating a Request
data ListConnections Source #
See: newListConnections
smart constructor.
ListConnections' | |
|
Instances
newListConnections :: ListConnections Source #
Create a value of ListConnections
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:ListConnections'
, listConnections_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:namePrefix:ListConnections'
, listConnections_namePrefix
- A name prefix to filter results returned. Only connections with a name
that starts with the prefix are returned.
$sel:limit:ListConnections'
, listConnections_limit
- The maximum number of connections to return.
$sel:connectionState:ListConnections'
, listConnections_connectionState
- The state of the connection.
Request Lenses
listConnections_nextToken :: Lens' ListConnections (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listConnections_namePrefix :: Lens' ListConnections (Maybe Text) Source #
A name prefix to filter results returned. Only connections with a name that starts with the prefix are returned.
listConnections_limit :: Lens' ListConnections (Maybe Natural) Source #
The maximum number of connections to return.
listConnections_connectionState :: Lens' ListConnections (Maybe ConnectionState) Source #
The state of the connection.
Destructuring the Response
data ListConnectionsResponse Source #
See: newListConnectionsResponse
smart constructor.
ListConnectionsResponse' | |
|
Instances
newListConnectionsResponse Source #
Create a value of ListConnectionsResponse
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:ListConnectionsResponse'
, listConnectionsResponse_connections
- An array of connections objects that include details about the
connections.
$sel:nextToken:ListConnections'
, listConnectionsResponse_nextToken
- A token you can use in a subsequent request to retrieve the next set of
results.
$sel:httpStatus:ListConnectionsResponse'
, listConnectionsResponse_httpStatus
- The response's http status code.
Response Lenses
listConnectionsResponse_connections :: Lens' ListConnectionsResponse (Maybe [Connection]) Source #
An array of connections objects that include details about the connections.
listConnectionsResponse_nextToken :: Lens' ListConnectionsResponse (Maybe Text) Source #
A token you can use in a subsequent request to retrieve the next set of results.
listConnectionsResponse_httpStatus :: Lens' ListConnectionsResponse Int Source #
The response's http status code.