| 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.GetWebhook
Description
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.
Constructors
| GetWebhook' | |
Instances
Arguments
| :: Text | |
| -> GetWebhook |
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:
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.
Constructors
| GetWebhookResponse' | |
Fields
| |
Instances
newGetWebhookResponse Source #
Arguments
| :: 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.