| 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 |
Amazonka.IoTSecureTunneling.ListTunnels
Description
List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer tunnels will be listed before older tunnels.
Synopsis
- data ListTunnels = ListTunnels' {}
- newListTunnels :: ListTunnels
- listTunnels_nextToken :: Lens' ListTunnels (Maybe Text)
- listTunnels_thingName :: Lens' ListTunnels (Maybe Text)
- listTunnels_maxResults :: Lens' ListTunnels (Maybe Natural)
- data ListTunnelsResponse = ListTunnelsResponse' {
- nextToken :: Maybe Text
- tunnelSummaries :: Maybe [TunnelSummary]
- httpStatus :: Int
- newListTunnelsResponse :: Int -> ListTunnelsResponse
- listTunnelsResponse_nextToken :: Lens' ListTunnelsResponse (Maybe Text)
- listTunnelsResponse_tunnelSummaries :: Lens' ListTunnelsResponse (Maybe [TunnelSummary])
- listTunnelsResponse_httpStatus :: Lens' ListTunnelsResponse Int
Creating a Request
data ListTunnels Source #
See: newListTunnels smart constructor.
Constructors
| ListTunnels' | |
Instances
newListTunnels :: ListTunnels Source #
Create a value of ListTunnels 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:ListTunnels', listTunnels_nextToken - A token to retrieve the next set of results.
$sel:thingName:ListTunnels', listTunnels_thingName - The name of the IoT thing associated with the destination device.
$sel:maxResults:ListTunnels', listTunnels_maxResults - The maximum number of results to return at once.
Request Lenses
listTunnels_nextToken :: Lens' ListTunnels (Maybe Text) Source #
A token to retrieve the next set of results.
listTunnels_thingName :: Lens' ListTunnels (Maybe Text) Source #
The name of the IoT thing associated with the destination device.
listTunnels_maxResults :: Lens' ListTunnels (Maybe Natural) Source #
The maximum number of results to return at once.
Destructuring the Response
data ListTunnelsResponse Source #
See: newListTunnelsResponse smart constructor.
Constructors
| ListTunnelsResponse' | |
Fields
| |
Instances
newListTunnelsResponse Source #
Arguments
| :: Int | |
| -> ListTunnelsResponse |
Create a value of ListTunnelsResponse 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:ListTunnels', listTunnelsResponse_nextToken - A token to used to retrieve the next set of results.
$sel:tunnelSummaries:ListTunnelsResponse', listTunnelsResponse_tunnelSummaries - A short description of the tunnels in an AWS account.
$sel:httpStatus:ListTunnelsResponse', listTunnelsResponse_httpStatus - The response's http status code.
Response Lenses
listTunnelsResponse_nextToken :: Lens' ListTunnelsResponse (Maybe Text) Source #
A token to used to retrieve the next set of results.
listTunnelsResponse_tunnelSummaries :: Lens' ListTunnelsResponse (Maybe [TunnelSummary]) Source #
A short description of the tunnels in an AWS account.
listTunnelsResponse_httpStatus :: Lens' ListTunnelsResponse Int Source #
The response's http status code.