WebhookResponse

data class WebhookResponse(val branchFilter: String? = null, val buildType: WebhookBuildTypeEnumValueResponse? = null, val filterGroups: List<FilterGroupResponse>? = null, val lastModifiedSecret: String? = null, val payloadUrl: String? = null, val secret: String? = null, val url: String? = null)

Definition of Webhook

Constructors

Link copied to clipboard
constructor(branchFilter: String? = null, buildType: WebhookBuildTypeEnumValueResponse? = null, filterGroups: List<FilterGroupResponse>? = null, lastModifiedSecret: String? = null, payloadUrl: String? = null, secret: String? = null, url: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val branchFilter: String? = null

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

It is recommended that you use filterGroups instead of branchFilter.

Link copied to clipboard

Specifies the type of build this webhook will trigger.

Link copied to clipboard

An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At least one WebhookFilter in the array must specify EVENT as its type.

For a build to be triggered, at least one filter group in the filterGroups array must pass. For a filter group to pass, each of its filters must pass.

Link copied to clipboard

A timestamp that indicates the last time a repository's secret token was modified.

Link copied to clipboard
val payloadUrl: String? = null

The CodeBuild endpoint where webhook events are sent.

Link copied to clipboard
val secret: String? = null

The secret token of the associated repository.

A Bitbucket webhook does not support secret.

Link copied to clipboard
val url: String? = null

The URL to the webhook.