aws_sdk_lightsail/client/
delete_auto_snapshot.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 [`DeleteAutoSnapshot`](crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_name(impl Into<String>)`](crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the source instance or disk from which to delete the automatic snapshot.</p><br>
7    ///   - [`date(impl Into<String>)`](crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder::date) / [`set_date(Option<String>)`](crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder::set_date):<br>required: **true**<br><p>The date of the automatic snapshot to delete in <code>YYYY-MM-DD</code> format. Use the <code>get auto snapshots</code> operation to get the available automatic snapshots for a resource.</p><br>
8    /// - On success, responds with [`DeleteAutoSnapshotOutput`](crate::operation::delete_auto_snapshot::DeleteAutoSnapshotOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_auto_snapshot::DeleteAutoSnapshotOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10    /// - On failure, responds with [`SdkError<DeleteAutoSnapshotError>`](crate::operation::delete_auto_snapshot::DeleteAutoSnapshotError)
11    pub fn delete_auto_snapshot(&self) -> crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder {
12        crate::operation::delete_auto_snapshot::builders::DeleteAutoSnapshotFluentBuilder::new(self.handle.clone())
13    }
14}