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 |
Synopsis
- data Webhook = Webhook' {
- branchFilter :: Maybe Text
- lastModifiedSecret :: Maybe POSIX
- url :: Maybe Text
- secret :: Maybe Text
- filterGroups :: Maybe [[WebhookFilter]]
- payloadUrl :: Maybe Text
- buildType :: Maybe WebhookBuildType
- newWebhook :: Webhook
- webhook_branchFilter :: Lens' Webhook (Maybe Text)
- webhook_lastModifiedSecret :: Lens' Webhook (Maybe UTCTime)
- webhook_url :: Lens' Webhook (Maybe Text)
- webhook_secret :: Lens' Webhook (Maybe Text)
- webhook_filterGroups :: Lens' Webhook (Maybe [[WebhookFilter]])
- webhook_payloadUrl :: Lens' Webhook (Maybe Text)
- webhook_buildType :: Lens' Webhook (Maybe WebhookBuildType)
Documentation
Information about a webhook that connects repository events to a build project in CodeBuild.
See: newWebhook
smart constructor.
Webhook' | |
|
Instances
newWebhook :: Webhook Source #
Create a value of Webhook
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:branchFilter:Webhook'
, webhook_branchFilter
- 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
.
$sel:lastModifiedSecret:Webhook'
, webhook_lastModifiedSecret
- A timestamp that indicates the last time a repository's secret token
was modified.
$sel:url:Webhook'
, webhook_url
- The URL to the webhook.
$sel:secret:Webhook'
, webhook_secret
- The secret token of the associated repository.
A Bitbucket webhook does not support secret
.
$sel:filterGroups:Webhook'
, webhook_filterGroups
- 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.
$sel:payloadUrl:Webhook'
, webhook_payloadUrl
- The CodeBuild endpoint where webhook events are sent.
$sel:buildType:Webhook'
, webhook_buildType
- Specifies the type of build this webhook will trigger.
webhook_branchFilter :: Lens' Webhook (Maybe Text) Source #
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
.
webhook_lastModifiedSecret :: Lens' Webhook (Maybe UTCTime) Source #
A timestamp that indicates the last time a repository's secret token was modified.
webhook_secret :: Lens' Webhook (Maybe Text) Source #
The secret token of the associated repository.
A Bitbucket webhook does not support secret
.
webhook_filterGroups :: Lens' Webhook (Maybe [[WebhookFilter]]) Source #
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.
webhook_payloadUrl :: Lens' Webhook (Maybe Text) Source #
The CodeBuild endpoint where webhook events are sent.
webhook_buildType :: Lens' Webhook (Maybe WebhookBuildType) Source #
Specifies the type of build this webhook will trigger.