aws_sdk_amplify/client/
create_webhook.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateWebhook`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique ID for an Amplify app.</p><br>
7    ///   - [`branch_name(impl Into<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::set_branch_name):<br>required: **true**<br><p>The name for a branch that is part of an Amplify app.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::set_description):<br>required: **false**<br><p>The description for a webhook.</p><br>
9    /// - On success, responds with [`CreateWebhookOutput`](crate::operation::create_webhook::CreateWebhookOutput) with field(s):
10    ///   - [`webhook(Option<Webhook>)`](crate::operation::create_webhook::CreateWebhookOutput::webhook): <p>Describes a webhook that connects repository events to an Amplify app.</p>
11    /// - On failure, responds with [`SdkError<CreateWebhookError>`](crate::operation::create_webhook::CreateWebhookError)
12    pub fn create_webhook(&self) -> crate::operation::create_webhook::builders::CreateWebhookFluentBuilder {
13        crate::operation::create_webhook::builders::CreateWebhookFluentBuilder::new(self.handle.clone())
14    }
15}