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 |
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.
UpdateWebhook' | |
|
Instances
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:
$sel:branchName:UpdateWebhook'
, updateWebhook_branchName
- The name for a branch that is part of an Amplify app.
$sel:description:UpdateWebhook'
, updateWebhook_description
- The description for a webhook.
$sel:webhookId: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.
UpdateWebhookResponse' | |
|
Instances
newUpdateWebhookResponse Source #
:: 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.