| 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.CloudWatchEvents.ListConnections
Description
Retrieves a list of connections from the account.
Synopsis
- data ListConnections = ListConnections' {}
- newListConnections :: ListConnections
- listConnections_connectionState :: Lens' ListConnections (Maybe ConnectionState)
- listConnections_limit :: Lens' ListConnections (Maybe Natural)
- listConnections_namePrefix :: Lens' ListConnections (Maybe Text)
- listConnections_nextToken :: Lens' ListConnections (Maybe Text)
- 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.
Constructors
| ListConnections' | |
Fields
| |
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:
ListConnections, listConnections_connectionState - The state of the connection.
$sel:limit:ListConnections', listConnections_limit - The maximum number of connections to return.
$sel:namePrefix:ListConnections', listConnections_namePrefix - A name prefix to filter results returned. Only connections with a name
that starts with the prefix are returned.
ListConnections, listConnections_nextToken - The token returned by a previous call to retrieve the next set of
results.
Request Lenses
listConnections_connectionState :: Lens' ListConnections (Maybe ConnectionState) Source #
The state of the connection.
listConnections_limit :: Lens' ListConnections (Maybe Natural) Source #
The maximum number of connections to return.
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_nextToken :: Lens' ListConnections (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
Destructuring the Response
data ListConnectionsResponse Source #
See: newListConnectionsResponse smart constructor.
Constructors
| ListConnectionsResponse' | |
Fields
| |
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.
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.