Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Defines a webhook and returns a unique webhook URL generated by CodePipeline. This URL can be supplied to third party source hosting providers to call every time there's a code change. When CodePipeline receives a POST request on this URL, the pipeline defined in the webhook is started as long as the POST request satisfied the authentication and filtering requirements supplied when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty APIs can be used to automatically configure supported third parties to call the generated webhook URL.
Creating a Request
Creates a value of PutWebhook
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pwWebhook
- The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name which identifies the webhook being defined. You may choose to name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
data PutWebhook Source #
See: putWebhook
smart constructor.
Request Lenses
pwWebhook :: Lens' PutWebhook WebhookDefinition Source #
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name which identifies the webhook being defined. You may choose to name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
Destructuring the Response
Creates a value of PutWebhookResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pwrsWebhook
- The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.pwrsResponseStatus
- -- | The response status code.
data PutWebhookResponse Source #
See: putWebhookResponse
smart constructor.
Response Lenses
pwrsWebhook :: Lens' PutWebhookResponse (Maybe ListWebhookItem) Source #
The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.
pwrsResponseStatus :: Lens' PutWebhookResponse Int Source #
- - | The response status code.