| 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.UpdateWebhook
Description
Updates a webhook.
Synopsis
- data UpdateWebhook = UpdateWebhook' {
- branchName :: Maybe Text
- description :: Maybe Text
- webhookId :: Text
- newUpdateWebhook :: Text -> UpdateWebhook
- updateWebhook_branchName :: Lens' UpdateWebhook (Maybe Text)
- updateWebhook_description :: Lens' UpdateWebhook (Maybe Text)
- updateWebhook_webhookId :: Lens' UpdateWebhook Text
- data UpdateWebhookResponse = UpdateWebhookResponse' {
- httpStatus :: Int
- webhook :: Webhook
- newUpdateWebhookResponse :: Int -> Webhook -> UpdateWebhookResponse
- updateWebhookResponse_httpStatus :: Lens' UpdateWebhookResponse Int
- updateWebhookResponse_webhook :: Lens' UpdateWebhookResponse Webhook
Creating a Request
data UpdateWebhook Source #
The request structure for the update webhook request.
See: newUpdateWebhook smart constructor.
Constructors
| UpdateWebhook' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateWebhook |
Create a value of UpdateWebhook 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:
UpdateWebhook, updateWebhook_branchName - The name for a branch that is part of an Amplify app.
UpdateWebhook, updateWebhook_description - The description for a webhook.
UpdateWebhook, updateWebhook_webhookId - The unique ID for a webhook.
Request Lenses
updateWebhook_branchName :: Lens' UpdateWebhook (Maybe Text) Source #
The name for a branch that is part of an Amplify app.
updateWebhook_description :: Lens' UpdateWebhook (Maybe Text) Source #
The description for a webhook.
updateWebhook_webhookId :: Lens' UpdateWebhook Text Source #
The unique ID for a webhook.
Destructuring the Response
data UpdateWebhookResponse Source #
The result structure for the update webhook request.
See: newUpdateWebhookResponse smart constructor.
Constructors
| UpdateWebhookResponse' | |
Fields
| |
Instances
newUpdateWebhookResponse Source #
Arguments
| :: Int | |
| -> Webhook | |
| -> UpdateWebhookResponse |
Create a value of UpdateWebhookResponse 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:UpdateWebhookResponse', updateWebhookResponse_httpStatus - The response's http status code.
$sel:webhook:UpdateWebhookResponse', updateWebhookResponse_webhook - Describes a webhook that connects repository events to an Amplify app.
Response Lenses
updateWebhookResponse_httpStatus :: Lens' UpdateWebhookResponse Int Source #
The response's http status code.
updateWebhookResponse_webhook :: Lens' UpdateWebhookResponse Webhook Source #
Describes a webhook that connects repository events to an Amplify app.