aws_sdk_fsx/client/
delete_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 [`DeleteSnapshot`](crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_request_token(impl Into<String>)`](crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder::set_client_request_token):<br>required: **false**<br><p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p><br>
7    ///   - [`snapshot_id(impl Into<String>)`](crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder::snapshot_id) / [`set_snapshot_id(Option<String>)`](crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder::set_snapshot_id):<br>required: **true**<br><p>The ID of the snapshot that you want to delete.</p><br>
8    /// - On success, responds with [`DeleteSnapshotOutput`](crate::operation::delete_snapshot::DeleteSnapshotOutput) with field(s):
9    ///   - [`snapshot_id(Option<String>)`](crate::operation::delete_snapshot::DeleteSnapshotOutput::snapshot_id): <p>The ID of the deleted snapshot.</p>
10    ///   - [`lifecycle(Option<SnapshotLifecycle>)`](crate::operation::delete_snapshot::DeleteSnapshotOutput::lifecycle): <p>The lifecycle status of the snapshot. If the <code>DeleteSnapshot</code> operation is successful, this status is <code>DELETING</code>.</p>
11    /// - On failure, responds with [`SdkError<DeleteSnapshotError>`](crate::operation::delete_snapshot::DeleteSnapshotError)
12    pub fn delete_snapshot(&self) -> crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder {
13        crate::operation::delete_snapshot::builders::DeleteSnapshotFluentBuilder::new(self.handle.clone())
14    }
15}