Struct aws_sdk_codebuild::client::fluent_builders::UpdateWebhook
source · pub struct UpdateWebhook { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateWebhook
.
Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository, rotateSecret
is ignored.
Implementations§
source§impl UpdateWebhook
impl UpdateWebhook
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateWebhook, AwsResponseRetryClassifier>, SdkError<UpdateWebhookError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateWebhook, AwsResponseRetryClassifier>, SdkError<UpdateWebhookError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateWebhookOutput, SdkError<UpdateWebhookError>>
pub async fn send(
self
) -> Result<UpdateWebhookOutput, SdkError<UpdateWebhookError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the CodeBuild project.
sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the CodeBuild project.
sourcepub fn branch_filter(self, input: impl Into<String>) -> Self
pub fn branch_filter(self, input: impl Into<String>) -> Self
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
.
sourcepub fn set_branch_filter(self, input: Option<String>) -> Self
pub fn set_branch_filter(self, input: Option<String>) -> Self
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
.
sourcepub fn rotate_secret(self, input: bool) -> Self
pub fn rotate_secret(self, input: bool) -> Self
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.
sourcepub fn set_rotate_secret(self, input: Option<bool>) -> Self
pub fn set_rotate_secret(self, input: Option<bool>) -> Self
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.
sourcepub fn filter_groups(self, input: Vec<WebhookFilter>) -> Self
pub fn filter_groups(self, input: Vec<WebhookFilter>) -> Self
Appends an item to filterGroups
.
To override the contents of this collection use set_filter_groups
.
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
.
sourcepub fn set_filter_groups(self, input: Option<Vec<Vec<WebhookFilter>>>) -> Self
pub fn set_filter_groups(self, input: Option<Vec<Vec<WebhookFilter>>>) -> Self
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
.
sourcepub fn build_type(self, input: WebhookBuildType) -> Self
pub fn build_type(self, input: WebhookBuildType) -> Self
Specifies the type of build this webhook will trigger.
sourcepub fn set_build_type(self, input: Option<WebhookBuildType>) -> Self
pub fn set_build_type(self, input: Option<WebhookBuildType>) -> Self
Specifies the type of build this webhook will trigger.
Trait Implementations§
source§impl Clone for UpdateWebhook
impl Clone for UpdateWebhook
source§fn clone(&self) -> UpdateWebhook
fn clone(&self) -> UpdateWebhook
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more