update_webhook
¶
update_webhook(
project_name: ProjectName,
*,
config_overrides: Optional[CodeBuildClientConfig] = None,
branch_filter: Optional[String] = None,
rotate_secret: Optional[Boolean] = None,
filter_groups: Optional[FilterGroups] = None,
build_type: Optional[WebhookBuildType] = None,
pull_request_build_policy: Optional[PullRequestBuildPolicy] = None,
) -> UpdateWebhookOutput
Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository, rotateSecret is ignored.
Parameters:
-
project_name(ProjectName) –The name of the CodeBuild project.
-
branch_filter(Optional[String], default:None) –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
branchFilteris empty, then all branches are built.It is recommended that you use
filterGroupsinstead ofbranchFilter. -
rotate_secret(Optional[Boolean], default:None) –A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository,
rotateSecretis ignored. -
filter_groups(Optional[FilterGroups], default:None) –An array of arrays of
WebhookFilterobjects used to determine if a webhook event can trigger a build. A filter group must contain at least oneEVENTWebhookFilter. -
build_type(Optional[WebhookBuildType], default:None) –Specifies the type of build this webhook will trigger.
RUNNER_BUILDKITE_BUILDis only available forNO_SOURCEsource type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide. -
pull_request_build_policy(Optional[PullRequestBuildPolicy], default:None) –A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.
Raises:
-
InvalidInputException–The input value that was provided is not valid.
-
OAuthProviderException–There was a problem with the underlying OAuth provider.
-
ResourceNotFoundException–The specified Amazon Web Services resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/code_build.py
5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 | |