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 [`PublishFunction`](crate::operation::publish_function::builders::PublishFunctionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::publish_function::builders::PublishFunctionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::publish_function::builders::PublishFunctionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the function that you are publishing.</p><br>
    ///   - [`if_match(impl Into<String>)`](crate::operation::publish_function::builders::PublishFunctionFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::publish_function::builders::PublishFunctionFluentBuilder::set_if_match):<br>required: **true**<br><p>The current version (<code>ETag</code> value) of the function that you are publishing, which you can get using <code>DescribeFunction</code>.</p><br>
    /// - On success, responds with [`PublishFunctionOutput`](crate::operation::publish_function::PublishFunctionOutput) with field(s):
    ///   - [`function_summary(Option<FunctionSummary>)`](crate::operation::publish_function::PublishFunctionOutput::function_summary): <p>Contains configuration information and metadata about a CloudFront function.</p>
    /// - On failure, responds with [`SdkError<PublishFunctionError>`](crate::operation::publish_function::PublishFunctionError)
    pub fn publish_function(&self) -> crate::operation::publish_function::builders::PublishFunctionFluentBuilder {
        crate::operation::publish_function::builders::PublishFunctionFluentBuilder::new(self.handle.clone())
    }
}