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 |
Returns a list of webhooks for an Amplify app.
Synopsis
- data ListWebhooks = ListWebhooks' {}
- newListWebhooks :: Text -> ListWebhooks
- listWebhooks_nextToken :: Lens' ListWebhooks (Maybe Text)
- listWebhooks_maxResults :: Lens' ListWebhooks (Maybe Natural)
- 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.
ListWebhooks' | |
|
Instances
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
- 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.
$sel:maxResults:ListWebhooks'
, listWebhooks_maxResults
- The maximum number of records to list in a single response.
$sel:appId:ListWebhooks'
, listWebhooks_appId
- The unique ID for an Amplify app.
Request Lenses
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_maxResults :: Lens' ListWebhooks (Maybe Natural) Source #
The maximum number of records to list in a single response.
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.
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
- 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.