aws_sdk_backup/client/
create_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 [`CreateRestoreTestingSelection`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`creator_request_id(impl Into<String>)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::creator_request_id) / [`set_creator_request_id(Option<String>)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::set_creator_request_id):<br>required: **false**<br><p>This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.</p><br>
7    ///   - [`restore_testing_plan_name(impl Into<String>)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::restore_testing_plan_name) / [`set_restore_testing_plan_name(Option<String>)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::set_restore_testing_plan_name):<br>required: **true**<br><p>Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.</p><br>
8    ///   - [`restore_testing_selection(RestoreTestingSelectionForCreate)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::restore_testing_selection) / [`set_restore_testing_selection(Option<RestoreTestingSelectionForCreate>)`](crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::set_restore_testing_selection):<br>required: **true**<br><p>This consists of <code>RestoreTestingSelectionName</code>, <code>ProtectedResourceType</code>, and one of the following:</p> <ul>  <li>   <p><code>ProtectedResourceArns</code></p></li>  <li>   <p><code>ProtectedResourceConditions</code></p></li> </ul> <p>Each protected resource type can have one single value.</p> <p>A restore testing selection can include a wildcard value ("*") for <code>ProtectedResourceArns</code> along with <code>ProtectedResourceConditions</code>. Alternatively, you can include up to 30 specific protected resource ARNs in <code>ProtectedResourceArns</code>.</p><br>
9    /// - On success, responds with [`CreateRestoreTestingSelectionOutput`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionOutput) with field(s):
10    ///   - [`creation_time(DateTime)`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionOutput::creation_time): <p>The time that the resource testing selection was created.</p>
11    ///   - [`restore_testing_plan_arn(String)`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionOutput::restore_testing_plan_arn): <p>The ARN of the restore testing plan with which the restore testing selection is associated.</p>
12    ///   - [`restore_testing_plan_name(String)`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionOutput::restore_testing_plan_name): <p>The name of the restore testing plan.</p> <p>The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.</p>
13    ///   - [`restore_testing_selection_name(String)`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionOutput::restore_testing_selection_name): <p>The name of the restore testing selection for the related restore testing plan.</p>
14    /// - On failure, responds with [`SdkError<CreateRestoreTestingSelectionError>`](crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError)
15    pub fn create_restore_testing_selection(
16        &self,
17    ) -> crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder {
18        crate::operation::create_restore_testing_selection::builders::CreateRestoreTestingSelectionFluentBuilder::new(self.handle.clone())
19    }
20}