Skip to content

update_restore_testing_plan async

update_restore_testing_plan(
    restore_testing_plan: RestoreTestingPlanForUpdate,
    restore_testing_plan_name: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> UpdateRestoreTestingPlanOutput

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

Parameters:

  • restore_testing_plan (RestoreTestingPlanForUpdate) –

    Specifies the body of a restore testing plan.

  • restore_testing_plan_name (str) –

    The name of the restore testing plan name.

Raises:

Source code in docs_src/capo_backup/_services/async_backup.py
async def update_restore_testing_plan(
    self,
    restore_testing_plan: "capo_backup.types.restore_testing_plan_for_update.RestoreTestingPlanForUpdate",
    restore_testing_plan_name: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> "capo_backup.types.update_restore_testing_plan_output.UpdateRestoreTestingPlanOutput":
    """<p>This request will send changes to your specified restore testing plan. <code>RestoreTestingPlanName</code> cannot be updated after it is created.</p> <p> <code>RecoveryPointSelection</code> can contain:</p> <ul> <li> <p> <code>Algorithm</code> </p> </li> <li> <p> <code>ExcludeVaults</code> </p> </li> <li> <p> <code>IncludeVaults</code> </p> </li> <li> <p> <code>RecoveryPointTypes</code> </p> </li> <li> <p> <code>SelectionWindowDays</code> </p> </li> </ul>

    Args:
        restore_testing_plan: <p>Specifies the body of a restore testing plan.</p>
        restore_testing_plan_name: <p>The name of the restore testing plan name.</p>

    Raises:
        capo_backup.errors.conflict_exception.ConflictException: <p>Backup can't perform the action that you requested until it finishes performing a previous action. Try again later.</p>
        capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
        capo_backup.errors.missing_parameter_value_exception.MissingParameterValueException: <p>Indicates that a required parameter is missing.</p>
        capo_backup.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource that is required for the action doesn't exist.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_backup.types.update_restore_testing_plan_input.UpdateRestoreTestingPlanInput]",
    ) -> AsyncOperationResponse[
        "capo_backup.types.update_restore_testing_plan_output.UpdateRestoreTestingPlanOutput"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.update_restore_testing_plan

        (
            output,
            http_response,
        ) = await capo_backup._operations.cryo_controller_user_manager.update_restore_testing_plan.async_update_restore_testing_plan(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateRestoreTestingPlan")
    )
    input_: capo_backup.types.update_restore_testing_plan_input.UpdateRestoreTestingPlanInput = {
        "restore_testing_plan": restore_testing_plan,
        "restore_testing_plan_name": restore_testing_plan_name,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output