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 |
Gets a listing of all the webhooks in this AWS Region for this account. The output lists all webhooks and includes the webhook URL and ARN and the configuration for each webhook.
This operation returns paginated results.
Synopsis
- data ListWebhooks = ListWebhooks' {}
- newListWebhooks :: ListWebhooks
- listWebhooks_nextToken :: Lens' ListWebhooks (Maybe Text)
- listWebhooks_maxResults :: Lens' ListWebhooks (Maybe Natural)
- data ListWebhooksResponse = ListWebhooksResponse' {
- nextToken :: Maybe Text
- webhooks :: Maybe [ListWebhookItem]
- httpStatus :: Int
- newListWebhooksResponse :: Int -> ListWebhooksResponse
- listWebhooksResponse_nextToken :: Lens' ListWebhooksResponse (Maybe Text)
- listWebhooksResponse_webhooks :: Lens' ListWebhooksResponse (Maybe [ListWebhookItem])
- listWebhooksResponse_httpStatus :: Lens' ListWebhooksResponse Int
Creating a Request
data ListWebhooks Source #
See: newListWebhooks
smart constructor.
ListWebhooks' | |
|
Instances
newListWebhooks :: ListWebhooks Source #
Create a value of ListWebhooks
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:ListWebhooks'
, listWebhooks_nextToken
- The token that was returned from the previous ListWebhooks call, which
can be used to return the next set of webhooks in the list.
$sel:maxResults:ListWebhooks'
, listWebhooks_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.
Request Lenses
listWebhooks_nextToken :: Lens' ListWebhooks (Maybe Text) Source #
The token that was returned from the previous ListWebhooks call, which can be used to return the next set of webhooks in the list.
listWebhooks_maxResults :: Lens' ListWebhooks (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.
Destructuring the Response
data ListWebhooksResponse Source #
See: newListWebhooksResponse
smart constructor.
ListWebhooksResponse' | |
|
Instances
newListWebhooksResponse Source #
Create a value of ListWebhooksResponse
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:ListWebhooks'
, listWebhooksResponse_nextToken
- If the amount of returned information is significantly large, an
identifier is also returned and can be used in a subsequent ListWebhooks
call to return the next set of webhooks in the list.
$sel:webhooks:ListWebhooksResponse'
, listWebhooksResponse_webhooks
- The JSON detail returned for each webhook in the list output for the
ListWebhooks call.
$sel:httpStatus:ListWebhooksResponse'
, listWebhooksResponse_httpStatus
- The response's http status code.
Response Lenses
listWebhooksResponse_nextToken :: Lens' ListWebhooksResponse (Maybe Text) Source #
If the amount of returned information is significantly large, an identifier is also returned and can be used in a subsequent ListWebhooks call to return the next set of webhooks in the list.
listWebhooksResponse_webhooks :: Lens' ListWebhooksResponse (Maybe [ListWebhookItem]) Source #
The JSON detail returned for each webhook in the list output for the ListWebhooks call.
listWebhooksResponse_httpStatus :: Lens' ListWebhooksResponse Int Source #
The response's http status code.