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 the webhook information that corresponds to a specified webhook ID.
Synopsis
- data GetWebhook = GetWebhook' {}
- newGetWebhook :: Text -> GetWebhook
- getWebhook_webhookId :: Lens' GetWebhook Text
- data GetWebhookResponse = GetWebhookResponse' {
- httpStatus :: Int
- webhook :: Webhook
- newGetWebhookResponse :: Int -> Webhook -> GetWebhookResponse
- getWebhookResponse_httpStatus :: Lens' GetWebhookResponse Int
- getWebhookResponse_webhook :: Lens' GetWebhookResponse Webhook
Creating a Request
data GetWebhook Source #
The request structure for the get webhook request.
See: newGetWebhook
smart constructor.
Instances
Create a value of GetWebhook
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:webhookId:GetWebhook'
, getWebhook_webhookId
- The unique ID for a webhook.
Request Lenses
getWebhook_webhookId :: Lens' GetWebhook Text Source #
The unique ID for a webhook.
Destructuring the Response
data GetWebhookResponse Source #
The result structure for the get webhook request.
See: newGetWebhookResponse
smart constructor.
GetWebhookResponse' | |
|
Instances
newGetWebhookResponse Source #
:: Int | |
-> Webhook | |
-> GetWebhookResponse |
Create a value of GetWebhookResponse
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:httpStatus:GetWebhookResponse'
, getWebhookResponse_httpStatus
- The response's http status code.
$sel:webhook:GetWebhookResponse'
, getWebhookResponse_webhook
- Describes the structure of a webhook.
Response Lenses
getWebhookResponse_httpStatus :: Lens' GetWebhookResponse Int Source #
The response's http status code.
getWebhookResponse_webhook :: Lens' GetWebhookResponse Webhook Source #
Describes the structure of a webhook.