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 |
Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository, rotateSecret
is ignored.
Synopsis
- data UpdateWebhook = UpdateWebhook' {}
- newUpdateWebhook :: Text -> UpdateWebhook
- updateWebhook_branchFilter :: Lens' UpdateWebhook (Maybe Text)
- updateWebhook_rotateSecret :: Lens' UpdateWebhook (Maybe Bool)
- updateWebhook_filterGroups :: Lens' UpdateWebhook (Maybe [[WebhookFilter]])
- updateWebhook_buildType :: Lens' UpdateWebhook (Maybe WebhookBuildType)
- updateWebhook_projectName :: Lens' UpdateWebhook Text
- data UpdateWebhookResponse = UpdateWebhookResponse' {
- webhook :: Maybe Webhook
- httpStatus :: Int
- newUpdateWebhookResponse :: Int -> UpdateWebhookResponse
- updateWebhookResponse_webhook :: Lens' UpdateWebhookResponse (Maybe Webhook)
- updateWebhookResponse_httpStatus :: Lens' UpdateWebhookResponse Int
Creating a Request
data UpdateWebhook Source #
See: newUpdateWebhook
smart constructor.
UpdateWebhook' | |
|
Instances
Create a value of UpdateWebhook
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:UpdateWebhook'
, updateWebhook_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:rotateSecret:UpdateWebhook'
, updateWebhook_rotateSecret
- A boolean value that specifies whether the associated GitHub
repository's secret token should be updated. If you use Bitbucket for
your repository, rotateSecret
is ignored.
$sel:filterGroups:UpdateWebhook'
, updateWebhook_filterGroups
- An array of arrays of WebhookFilter
objects used to determine if a
webhook event can trigger a build. A filter group must contain at least
one EVENT
WebhookFilter
.
$sel:buildType:UpdateWebhook'
, updateWebhook_buildType
- Specifies the type of build this webhook will trigger.
$sel:projectName:UpdateWebhook'
, updateWebhook_projectName
- The name of the CodeBuild project.
Request Lenses
updateWebhook_branchFilter :: Lens' UpdateWebhook (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
.
updateWebhook_rotateSecret :: Lens' UpdateWebhook (Maybe Bool) Source #
A boolean value that specifies whether the associated GitHub
repository's secret token should be updated. If you use Bitbucket for
your repository, rotateSecret
is ignored.
updateWebhook_filterGroups :: Lens' UpdateWebhook (Maybe [[WebhookFilter]]) Source #
An array of arrays of WebhookFilter
objects used to determine if a
webhook event can trigger a build. A filter group must contain at least
one EVENT
WebhookFilter
.
updateWebhook_buildType :: Lens' UpdateWebhook (Maybe WebhookBuildType) Source #
Specifies the type of build this webhook will trigger.
updateWebhook_projectName :: Lens' UpdateWebhook Text Source #
The name of the CodeBuild project.
Destructuring the Response
data UpdateWebhookResponse Source #
See: newUpdateWebhookResponse
smart constructor.
UpdateWebhookResponse' | |
|
Instances
newUpdateWebhookResponse Source #
Create a value of UpdateWebhookResponse
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:webhook:UpdateWebhookResponse'
, updateWebhookResponse_webhook
- Information about a repository's webhook that is associated with a
project in CodeBuild.
$sel:httpStatus:UpdateWebhookResponse'
, updateWebhookResponse_httpStatus
- The response's http status code.
Response Lenses
updateWebhookResponse_webhook :: Lens' UpdateWebhookResponse (Maybe Webhook) Source #
Information about a repository's webhook that is associated with a project in CodeBuild.
updateWebhookResponse_httpStatus :: Lens' UpdateWebhookResponse Int Source #
The response's http status code.