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