aws_sdk_backup/client/
update_restore_testing_selection.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 [`UpdateRestoreTestingSelection`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`restore_testing_plan_name(impl Into<String>)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::restore_testing_plan_name) / [`set_restore_testing_plan_name(Option<String>)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::set_restore_testing_plan_name):<br>required: **true**<br><p>The restore testing plan name is required to update the indicated testing plan.</p><br>
7    ///   - [`restore_testing_selection(RestoreTestingSelectionForUpdate)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::restore_testing_selection) / [`set_restore_testing_selection(Option<RestoreTestingSelectionForUpdate>)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::set_restore_testing_selection):<br>required: **true**<br><p>To update your restore testing selection, you can use either protected resource ARNs or conditions, but not both. That is, if your selection has <code>ProtectedResourceArns</code>, requesting an update with the parameter <code>ProtectedResourceConditions</code> will be unsuccessful.</p><br>
8    ///   - [`restore_testing_selection_name(impl Into<String>)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::restore_testing_selection_name) / [`set_restore_testing_selection_name(Option<String>)`](crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::set_restore_testing_selection_name):<br>required: **true**<br><p>The required restore testing selection name of the restore testing selection you wish to update.</p><br>
9    /// - On success, responds with [`UpdateRestoreTestingSelectionOutput`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput) with field(s):
10    ///   - [`creation_time(DateTime)`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput::creation_time): <p>The time the resource testing selection was updated successfully.</p>
11    ///   - [`restore_testing_plan_arn(String)`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput::restore_testing_plan_arn): <p>Unique string that is the name of the restore testing plan.</p>
12    ///   - [`restore_testing_plan_name(String)`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput::restore_testing_plan_name): <p>The restore testing plan with which the updated restore testing selection is associated.</p>
13    ///   - [`restore_testing_selection_name(String)`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput::restore_testing_selection_name): <p>The returned restore testing selection name.</p>
14    ///   - [`update_time(DateTime)`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionOutput::update_time): <p>The time the update completed for the restore testing selection.</p>
15    /// - On failure, responds with [`SdkError<UpdateRestoreTestingSelectionError>`](crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError)
16    pub fn update_restore_testing_selection(
17        &self,
18    ) -> crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder {
19        crate::operation::update_restore_testing_selection::builders::UpdateRestoreTestingSelectionFluentBuilder::new(self.handle.clone())
20    }
21}