updateRestoreTestingPlan method

Future<UpdateRestoreTestingPlanOutput> updateRestoreTestingPlan({
  1. required RestoreTestingPlanForUpdate restoreTestingPlan,
  2. required String restoreTestingPlanName,
})

This request will send changes to your specified restore testing plan. RestoreTestingPlanName cannot be updated after it is created.

RecoveryPointSelection can contain:

  • Algorithm
  • ExcludeVaults
  • IncludeVaults
  • RecoveryPointTypes
  • SelectionWindowDays

May throw ConflictException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter restoreTestingPlan : Specifies the body of a restore testing plan.

Parameter restoreTestingPlanName : The name of the restore testing plan name.

Implementation

Future<UpdateRestoreTestingPlanOutput> updateRestoreTestingPlan({
  required RestoreTestingPlanForUpdate restoreTestingPlan,
  required String restoreTestingPlanName,
}) async {
  final $payload = <String, dynamic>{
    'RestoreTestingPlan': restoreTestingPlan,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/restore-testing/plans/${Uri.encodeComponent(restoreTestingPlanName)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateRestoreTestingPlanOutput.fromJson(response);
}