1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutWebhook`](crate::operation::put_webhook::builders::PutWebhookFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`webhook(WebhookDefinition)`](crate::operation::put_webhook::builders::PutWebhookFluentBuilder::webhook) / [`set_webhook(Option<WebhookDefinition>)`](crate::operation::put_webhook::builders::PutWebhookFluentBuilder::set_webhook):<br>required: **true**<br><p>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.</p><br>
    ///   - [`tags(Tag)`](crate::operation::put_webhook::builders::PutWebhookFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::put_webhook::builders::PutWebhookFluentBuilder::set_tags):<br>required: **false**<br><p>The tags for the webhook.</p><br>
    /// - On success, responds with [`PutWebhookOutput`](crate::operation::put_webhook::PutWebhookOutput) with field(s):
    ///   - [`webhook(Option<ListWebhookItem>)`](crate::operation::put_webhook::PutWebhookOutput::webhook): <p>The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.</p>
    /// - On failure, responds with [`SdkError<PutWebhookError>`](crate::operation::put_webhook::PutWebhookError)
    pub fn put_webhook(&self) -> crate::operation::put_webhook::builders::PutWebhookFluentBuilder {
        crate::operation::put_webhook::builders::PutWebhookFluentBuilder::new(self.handle.clone())
    }
}