aws_sdk_amplify/client/
get_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 [`GetWebhook`](crate::operation::get_webhook::builders::GetWebhookFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`webhook_id(impl Into<String>)`](crate::operation::get_webhook::builders::GetWebhookFluentBuilder::webhook_id) / [`set_webhook_id(Option<String>)`](crate::operation::get_webhook::builders::GetWebhookFluentBuilder::set_webhook_id):<br>required: **true**<br><p>The unique ID for a webhook.</p><br>
7    /// - On success, responds with [`GetWebhookOutput`](crate::operation::get_webhook::GetWebhookOutput) with field(s):
8    ///   - [`webhook(Option<Webhook>)`](crate::operation::get_webhook::GetWebhookOutput::webhook): <p>Describes the structure of a webhook.</p>
9    /// - On failure, responds with [`SdkError<GetWebhookError>`](crate::operation::get_webhook::GetWebhookError)
10    pub fn get_webhook(&self) -> crate::operation::get_webhook::builders::GetWebhookFluentBuilder {
11        crate::operation::get_webhook::builders::GetWebhookFluentBuilder::new(self.handle.clone())
12    }
13}