| 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.CodePipeline.DeleteWebhook
Description
Deletes a previously created webhook by name. Deleting the webhook stops AWS CodePipeline from starting a pipeline every time an external event occurs. The API returns successfully when trying to delete a webhook that is already deleted. If a deleted webhook is re-created by calling PutWebhook with the same name, it will have a different URL.
Synopsis
- data DeleteWebhook = DeleteWebhook' {}
- newDeleteWebhook :: Text -> DeleteWebhook
- deleteWebhook_name :: Lens' DeleteWebhook Text
- data DeleteWebhookResponse = DeleteWebhookResponse' {
- httpStatus :: Int
- newDeleteWebhookResponse :: Int -> DeleteWebhookResponse
- deleteWebhookResponse_httpStatus :: Lens' DeleteWebhookResponse Int
Creating a Request
data DeleteWebhook Source #
See: newDeleteWebhook smart constructor.
Constructors
| DeleteWebhook' | |
Instances
Arguments
| :: Text | |
| -> DeleteWebhook |
Create a value of DeleteWebhook 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:
DeleteWebhook, deleteWebhook_name - The name of the webhook you want to delete.
Request Lenses
deleteWebhook_name :: Lens' DeleteWebhook Text Source #
The name of the webhook you want to delete.
Destructuring the Response
data DeleteWebhookResponse Source #
See: newDeleteWebhookResponse smart constructor.
Constructors
| DeleteWebhookResponse' | |
Fields
| |
Instances
newDeleteWebhookResponse Source #
Create a value of DeleteWebhookResponse 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:DeleteWebhookResponse', deleteWebhookResponse_httpStatus - The response's http status code.
Response Lenses
deleteWebhookResponse_httpStatus :: Lens' DeleteWebhookResponse Int Source #
The response's http status code.