Struct aws_sdk_codepipeline::client::fluent_builders::PutWebhook
source · [−]pub struct PutWebhook { /* private fields */ }
Expand description
Fluent builder constructing a request to PutWebhook
.
Defines a webhook and returns a unique webhook URL generated by CodePipeline. This URL can be supplied to third party source hosting providers to call every time there's a code change. When CodePipeline receives a POST request on this URL, the pipeline defined in the webhook is started as long as the POST request satisfied the authentication and filtering requirements supplied when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty APIs can be used to automatically configure supported third parties to call the generated webhook URL.
Implementations
sourceimpl PutWebhook
impl PutWebhook
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutWebhook, AwsResponseRetryClassifier>, SdkError<PutWebhookError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutWebhook, AwsResponseRetryClassifier>, SdkError<PutWebhookError>>
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<PutWebhookOutput, SdkError<PutWebhookError>>
pub async fn send(self) -> Result<PutWebhookOutput, SdkError<PutWebhookError>>
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 webhook(self, input: WebhookDefinition) -> Self
pub fn webhook(self, input: WebhookDefinition) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
sourcepub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
pub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the webhook.
The tags for the webhook.
Trait Implementations
sourceimpl Clone for PutWebhook
impl Clone for PutWebhook
sourcefn clone(&self) -> PutWebhook
fn clone(&self) -> PutWebhook
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more