AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core and PCL this operation is only available in asynchronous form. Please refer to PutWebhookAsync.

Namespace: Amazon.CodePipeline
Assembly: AWSSDK.CodePipeline.dll
Version: 3.x.y.z

Syntax

C#
public virtual PutWebhookResponse PutWebhook(
         PutWebhookRequest request
)
Parameters
request
Type: Amazon.CodePipeline.Model.PutWebhookRequest

Container for the necessary parameters to execute the PutWebhook service method.

Return Value
The response from the PutWebhook service method, as returned by CodePipeline.

Exceptions

ExceptionCondition
InvalidWebhookAuthenticationParametersException The specified authentication type is in an invalid format.
InvalidWebhookFilterPatternException The specified event filter rule is in an invalid format.
LimitExceededException The number of pipelines associated with the AWS account has exceeded the limit allowed for the account.
PipelineNotFoundException The specified pipeline was specified in an invalid format or cannot be found.
ValidationException The validation was specified in an invalid format.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also