1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteFunction`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`function_name(impl Into<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::function_name) / [`set_function_name(Option<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::set_function_name):<br>required: **true**<br><p>The name or ARN of the Lambda function or version.</p> <p class="title"><b>Name formats</b></p> <ul>  <li>   <p><b>Function name</b> – <code>my-function</code> (name-only), <code>my-function:1</code> (with version).</p></li>  <li>   <p><b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p></li>  <li>   <p><b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p></li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p><br>
    ///   - [`qualifier(impl Into<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::qualifier) / [`set_qualifier(Option<String>)`](crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::set_qualifier):<br>required: **false**<br><p>Specify a version to delete. You can't delete a version that an alias references.</p><br>
    /// - On success, responds with [`DeleteFunctionOutput`](crate::operation::delete_function::DeleteFunctionOutput)
    /// - On failure, responds with [`SdkError<DeleteFunctionError>`](crate::operation::delete_function::DeleteFunctionError)
    pub fn delete_function(&self) -> crate::operation::delete_function::builders::DeleteFunctionFluentBuilder {
        crate::operation::delete_function::builders::DeleteFunctionFluentBuilder::new(self.handle.clone())
    }
}