aws_sdk_lightsail/client/
delete_disk_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 [`DeleteDiskSnapshot`](crate::operation::delete_disk_snapshot::builders::DeleteDiskSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`disk_snapshot_name(impl Into<String>)`](crate::operation::delete_disk_snapshot::builders::DeleteDiskSnapshotFluentBuilder::disk_snapshot_name) / [`set_disk_snapshot_name(Option<String>)`](crate::operation::delete_disk_snapshot::builders::DeleteDiskSnapshotFluentBuilder::set_disk_snapshot_name):<br>required: **true**<br><p>The name of the disk snapshot you want to delete (<code>my-disk-snapshot</code>).</p><br>
7    /// - On success, responds with [`DeleteDiskSnapshotOutput`](crate::operation::delete_disk_snapshot::DeleteDiskSnapshotOutput) with field(s):
8    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_disk_snapshot::DeleteDiskSnapshotOutput::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>
9    /// - On failure, responds with [`SdkError<DeleteDiskSnapshotError>`](crate::operation::delete_disk_snapshot::DeleteDiskSnapshotError)
10    pub fn delete_disk_snapshot(&self) -> crate::operation::delete_disk_snapshot::builders::DeleteDiskSnapshotFluentBuilder {
11        crate::operation::delete_disk_snapshot::builders::DeleteDiskSnapshotFluentBuilder::new(self.handle.clone())
12    }
13}