1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteBackup`](crate::operation::delete_backup::builders::DeleteBackupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`backup_id(impl Into<String>)`](crate::operation::delete_backup::builders::DeleteBackupFluentBuilder::backup_id) / [`set_backup_id(Option<String>)`](crate::operation::delete_backup::builders::DeleteBackupFluentBuilder::set_backup_id):<br>required: **true**<br><p>The ID of the backup that you want to delete.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::delete_backup::builders::DeleteBackupFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::delete_backup::builders::DeleteBackupFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This parameter is automatically filled on your behalf when using the CLI or SDK.</p><br>
    /// - On success, responds with [`DeleteBackupOutput`](crate::operation::delete_backup::DeleteBackupOutput) with field(s):
    ///   - [`backup_id(Option<String>)`](crate::operation::delete_backup::DeleteBackupOutput::backup_id): <p>The ID of the backup that was deleted.</p>
    ///   - [`lifecycle(Option<BackupLifecycle>)`](crate::operation::delete_backup::DeleteBackupOutput::lifecycle): <p>The lifecycle status of the backup. If the <code>DeleteBackup</code> operation is successful, the status is <code>DELETED</code>.</p>
    /// - On failure, responds with [`SdkError<DeleteBackupError>`](crate::operation::delete_backup::DeleteBackupError)
    pub fn delete_backup(&self) -> crate::operation::delete_backup::builders::DeleteBackupFluentBuilder {
        crate::operation::delete_backup::builders::DeleteBackupFluentBuilder::new(self.handle.clone())
    }
}