| 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.GlobalAccelerator.ListListeners
Description
List the listeners for an accelerator.
This operation returns paginated results.
Synopsis
- data ListListeners = ListListeners' {}
- newListListeners :: Text -> ListListeners
- listListeners_maxResults :: Lens' ListListeners (Maybe Natural)
- listListeners_nextToken :: Lens' ListListeners (Maybe Text)
- listListeners_acceleratorArn :: Lens' ListListeners Text
- data ListListenersResponse = ListListenersResponse' {}
- newListListenersResponse :: Int -> ListListenersResponse
- listListenersResponse_listeners :: Lens' ListListenersResponse (Maybe [Listener])
- listListenersResponse_nextToken :: Lens' ListListenersResponse (Maybe Text)
- listListenersResponse_httpStatus :: Lens' ListListenersResponse Int
Creating a Request
data ListListeners Source #
See: newListListeners smart constructor.
Constructors
| ListListeners' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListListeners |
Create a value of ListListeners 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:maxResults:ListListeners', listListeners_maxResults - The number of listener objects that you want to return with this call.
The default value is 10.
ListListeners, listListeners_nextToken - The token for the next set of results. You receive this token from a
previous call.
ListListeners, listListeners_acceleratorArn - The Amazon Resource Name (ARN) of the accelerator for which you want to
list listener objects.
Request Lenses
listListeners_maxResults :: Lens' ListListeners (Maybe Natural) Source #
The number of listener objects that you want to return with this call. The default value is 10.
listListeners_nextToken :: Lens' ListListeners (Maybe Text) Source #
The token for the next set of results. You receive this token from a previous call.
listListeners_acceleratorArn :: Lens' ListListeners Text Source #
The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.
Destructuring the Response
data ListListenersResponse Source #
See: newListListenersResponse smart constructor.
Constructors
| ListListenersResponse' | |
Instances
newListListenersResponse Source #
Create a value of ListListenersResponse 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:listeners:ListListenersResponse', listListenersResponse_listeners - The list of listeners for an accelerator.
ListListeners, listListenersResponse_nextToken - The token for the next set of results. You receive this token from a
previous call.
$sel:httpStatus:ListListenersResponse', listListenersResponse_httpStatus - The response's http status code.
Response Lenses
listListenersResponse_listeners :: Lens' ListListenersResponse (Maybe [Listener]) Source #
The list of listeners for an accelerator.
listListenersResponse_nextToken :: Lens' ListListenersResponse (Maybe Text) Source #
The token for the next set of results. You receive this token from a previous call.
listListenersResponse_httpStatus :: Lens' ListListenersResponse Int Source #
The response's http status code.