aws_sdk_codebuild/client/update_webhook.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateWebhook`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`project_name(impl Into<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the CodeBuild project.</p><br>
7 /// - [`branch_filter(impl Into<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::branch_filter) / [`set_branch_filter(Option<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_branch_filter):<br>required: **false**<br><p>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 <code>branchFilter</code> is empty, then all branches are built.</p><note> <p>It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>.</p> </note><br>
8 /// - [`rotate_secret(bool)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::rotate_secret) / [`set_rotate_secret(Option<bool>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_rotate_secret):<br>required: **false**<br><p>A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored.</p><br>
9 /// - [`filter_groups(Vec::<WebhookFilter>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::filter_groups) / [`set_filter_groups(Option<Vec::<Vec::<WebhookFilter>>>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_filter_groups):<br>required: **false**<br><p>An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>.</p><br>
10 /// - [`build_type(WebhookBuildType)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::build_type) / [`set_build_type(Option<WebhookBuildType>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_build_type):<br>required: **false**<br><p>Specifies the type of build this webhook will trigger.</p><note> <p><code>RUNNER_BUILDKITE_BUILD</code> is only available for <code>NO_SOURCE</code> source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html">Tutorial: Configure a CodeBuild-hosted Buildkite runner</a> in the <i>CodeBuild user guide</i>.</p> </note><br>
11 /// - On success, responds with [`UpdateWebhookOutput`](crate::operation::update_webhook::UpdateWebhookOutput) with field(s):
12 /// - [`webhook(Option<Webhook>)`](crate::operation::update_webhook::UpdateWebhookOutput::webhook): <p>Information about a repository's webhook that is associated with a project in CodeBuild.</p>
13 /// - On failure, responds with [`SdkError<UpdateWebhookError>`](crate::operation::update_webhook::UpdateWebhookError)
14 pub fn update_webhook(&self) -> crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder {
15 crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::new(self.handle.clone())
16 }
17}