| 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.Amplify.ListWebhooks
Description
Returns a list of webhooks for an Amplify app.
Synopsis
- data ListWebhooks = ListWebhooks' {}
- newListWebhooks :: Text -> ListWebhooks
- listWebhooks_maxResults :: Lens' ListWebhooks (Maybe Natural)
- listWebhooks_nextToken :: Lens' ListWebhooks (Maybe Text)
- listWebhooks_appId :: Lens' ListWebhooks Text
- data ListWebhooksResponse = ListWebhooksResponse' {}
- newListWebhooksResponse :: Int -> ListWebhooksResponse
- listWebhooksResponse_nextToken :: Lens' ListWebhooksResponse (Maybe Text)
- listWebhooksResponse_httpStatus :: Lens' ListWebhooksResponse Int
- listWebhooksResponse_webhooks :: Lens' ListWebhooksResponse [Webhook]
Creating a Request
data ListWebhooks Source #
The request structure for the list webhooks request.
See: newListWebhooks smart constructor.
Constructors
| ListWebhooks' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListWebhooks |
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:maxResults:ListWebhooks', listWebhooks_maxResults - The maximum number of records to list in a single response.
ListWebhooks, listWebhooks_nextToken - A pagination token. Set to null to start listing webhooks from the
start. If non-null,the pagination token is returned in a result. Pass
its value in here to list more webhooks.
ListWebhooks, listWebhooks_appId - The unique ID for an Amplify app.
Request Lenses
listWebhooks_maxResults :: Lens' ListWebhooks (Maybe Natural) Source #
The maximum number of records to list in a single response.
listWebhooks_nextToken :: Lens' ListWebhooks (Maybe Text) Source #
A pagination token. Set to null to start listing webhooks from the start. If non-null,the pagination token is returned in a result. Pass its value in here to list more webhooks.
listWebhooks_appId :: Lens' ListWebhooks Text Source #
The unique ID for an Amplify app.
Destructuring the Response
data ListWebhooksResponse Source #
The result structure for the list webhooks request.
See: newListWebhooksResponse smart constructor.
Constructors
| ListWebhooksResponse' | |
Instances
newListWebhooksResponse Source #
Arguments
| :: Int | |
| -> ListWebhooksResponse |
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:
ListWebhooks, listWebhooksResponse_nextToken - A pagination token. If non-null, the pagination token is returned in a
result. Pass its value in another request to retrieve more entries.
$sel:httpStatus:ListWebhooksResponse', listWebhooksResponse_httpStatus - The response's http status code.
$sel:webhooks:ListWebhooksResponse', listWebhooksResponse_webhooks - A list of webhooks.
Response Lenses
listWebhooksResponse_nextToken :: Lens' ListWebhooksResponse (Maybe Text) Source #
A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
listWebhooksResponse_httpStatus :: Lens' ListWebhooksResponse Int Source #
The response's http status code.
listWebhooksResponse_webhooks :: Lens' ListWebhooksResponse [Webhook] Source #
A list of webhooks.