Struct aws_sdk_codebuild::client::fluent_builders::CreateWebhook [−][src]
pub struct CreateWebhook<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateWebhook
.
For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
Implementations
impl<C, M, R> CreateWebhook<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateWebhook<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateWebhookOutput, SdkError<CreateWebhookError>> where
R::Policy: SmithyRetryPolicy<CreateWebhookInputOperationOutputAlias, CreateWebhookOutput, CreateWebhookError, CreateWebhookInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateWebhookOutput, SdkError<CreateWebhookError>> where
R::Policy: SmithyRetryPolicy<CreateWebhookInputOperationOutputAlias, CreateWebhookOutput, CreateWebhookError, CreateWebhookInputOperationRetryAlias>,
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.
The name of the CodeBuild project.
The name of the CodeBuild project.
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
.
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
.
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 which
webhooks are triggered. At least one WebhookFilter
in the array must
specify EVENT
as its type
.
For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its
filters must pass.
An array of arrays of WebhookFilter
objects used to determine which
webhooks are triggered. At least one WebhookFilter
in the array must
specify EVENT
as its type
.
For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its
filters must pass.
Specifies the type of build this webhook will trigger.
Specifies the type of build this webhook will trigger.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateWebhook<C, M, R>
impl<C, M, R> Unpin for CreateWebhook<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateWebhook<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more