update_webhook
async
¶
update_webhook(
project_name: ProjectName,
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = 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/async_code_build.py
4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 | |