pub struct PutWebhookFluentBuilder { /* 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§
source§impl PutWebhookFluentBuilder
impl PutWebhookFluentBuilder
sourcepub fn as_input(&self) -> &PutWebhookInputBuilder
pub fn as_input(&self) -> &PutWebhookInputBuilder
Access the PutWebhook as a reference.
sourcepub async fn send(
self
) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
pub async fn send( self ) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<PutWebhookOutput, PutWebhookError, Self>
pub fn customize( self ) -> CustomizableOperation<PutWebhookOutput, PutWebhookError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
sourcepub fn get_webhook(&self) -> &Option<WebhookDefinition>
pub fn get_webhook(&self) -> &Option<WebhookDefinition>
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.
The tags for the webhook.
Trait Implementations§
source§impl Clone for PutWebhookFluentBuilder
impl Clone for PutWebhookFluentBuilder
source§fn clone(&self) -> PutWebhookFluentBuilder
fn clone(&self) -> PutWebhookFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more