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 |
Lists the connections associated with your account.
Synopsis
- data ListConnections = ListConnections' {}
- newListConnections :: ListConnections
- listConnections_hostArnFilter :: Lens' ListConnections (Maybe Text)
- listConnections_nextToken :: Lens' ListConnections (Maybe Text)
- listConnections_maxResults :: Lens' ListConnections (Maybe Natural)
- listConnections_providerTypeFilter :: Lens' ListConnections (Maybe ProviderType)
- 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:hostArnFilter:ListConnections'
, listConnections_hostArnFilter
- Filters the list of connections to those associated with a specified
host.
$sel:nextToken:ListConnections'
, listConnections_nextToken
- The token that was returned from the previous ListConnections
call,
which can be used to return the next set of connections in the list.
$sel:maxResults:ListConnections'
, listConnections_maxResults
- The maximum number of results to return in a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
$sel:providerTypeFilter:ListConnections'
, listConnections_providerTypeFilter
- Filters the list of connections to those associated with a specified
provider, such as Bitbucket.
Request Lenses
listConnections_hostArnFilter :: Lens' ListConnections (Maybe Text) Source #
Filters the list of connections to those associated with a specified host.
listConnections_nextToken :: Lens' ListConnections (Maybe Text) Source #
The token that was returned from the previous ListConnections
call,
which can be used to return the next set of connections in the list.
listConnections_maxResults :: Lens' ListConnections (Maybe Natural) Source #
The maximum number of results to return in a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
listConnections_providerTypeFilter :: Lens' ListConnections (Maybe ProviderType) Source #
Filters the list of connections to those associated with a specified provider, such as Bitbucket.
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
- A list of connections and the details for each connection, such as
status, owner, and provider type.
$sel:nextToken:ListConnections'
, listConnectionsResponse_nextToken
- A token that can be used in the next ListConnections
call. To view all
items in the list, continue to call this operation with each subsequent
token until no more nextToken
values are returned.
$sel:httpStatus:ListConnectionsResponse'
, listConnectionsResponse_httpStatus
- The response's http status code.
Response Lenses
listConnectionsResponse_connections :: Lens' ListConnectionsResponse (Maybe [Connection]) Source #
A list of connections and the details for each connection, such as status, owner, and provider type.
listConnectionsResponse_nextToken :: Lens' ListConnectionsResponse (Maybe Text) Source #
A token that can be used in the next ListConnections
call. To view all
items in the list, continue to call this operation with each subsequent
token until no more nextToken
values are returned.
listConnectionsResponse_httpStatus :: Lens' ListConnectionsResponse Int Source #
The response's http status code.