aws_sdk_cloudfront/client/
delete_function.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 [`DeleteFunction`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the function that you are deleting.</p><br>
7    ///   - [`if_match(impl Into<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::set_if_match):<br>required: **true**<br><p>The current version (<code>ETag</code> value) of the function that you are deleting, which you can get using <code>DescribeFunction</code>.</p><br>
8    /// - On success, responds with [`DeleteFunctionOutput`](crate::operation::delete_function::DeleteFunctionOutput)
9    /// - On failure, responds with [`SdkError<DeleteFunctionError>`](crate::operation::delete_function::DeleteFunctionError)
10    pub fn delete_function(&self) -> crate::operation::delete_function::builders::DeleteFunctionFluentBuilder {
11        crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::new(self.handle.clone())
12    }
13}