aws_sdk_cloudhsmv2/client/
restore_backup.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 [`RestoreBackup`](crate::operation::restore_backup::builders::RestoreBackupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`backup_id(impl Into<String>)`](crate::operation::restore_backup::builders::RestoreBackupFluentBuilder::backup_id) / [`set_backup_id(Option<String>)`](crate::operation::restore_backup::builders::RestoreBackupFluentBuilder::set_backup_id):<br>required: **true**<br><p>The ID of the backup to be restored. To find the ID of a backup, use the <code>DescribeBackups</code> operation.</p><br>
7    /// - On success, responds with [`RestoreBackupOutput`](crate::operation::restore_backup::RestoreBackupOutput) with field(s):
8    ///   - [`backup(Option<Backup>)`](crate::operation::restore_backup::RestoreBackupOutput::backup): <p>Information on the <code>Backup</code> object created.</p>
9    /// - On failure, responds with [`SdkError<RestoreBackupError>`](crate::operation::restore_backup::RestoreBackupError)
10    pub fn restore_backup(&self) -> crate::operation::restore_backup::builders::RestoreBackupFluentBuilder {
11        crate::operation::restore_backup::builders::RestoreBackupFluentBuilder::new(self.handle.clone())
12    }
13}