| 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.UpdateWebhook
Description
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_buildType :: Lens' UpdateWebhook (Maybe WebhookBuildType)
- updateWebhook_filterGroups :: Lens' UpdateWebhook (Maybe [[WebhookFilter]])
- updateWebhook_rotateSecret :: Lens' UpdateWebhook (Maybe Bool)
- 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.
Constructors
| UpdateWebhook' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateWebhook |
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:
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.
UpdateWebhook, updateWebhook_buildType - Specifies the type of build this webhook will trigger.
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: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.
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_buildType :: Lens' UpdateWebhook (Maybe WebhookBuildType) Source #
Specifies the type of build this webhook will trigger.
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_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_projectName :: Lens' UpdateWebhook Text Source #
The name of the CodeBuild project.
Destructuring the Response
data UpdateWebhookResponse Source #
See: newUpdateWebhookResponse smart constructor.
Constructors
| UpdateWebhookResponse' | |
Fields
| |
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:
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.