/// <summary> /// The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob /// created using CreateReplicationJob. Calling this API will affect the next scheduled /// ReplicationRun. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateReplicationJob service method.</param> /// /// <returns>The response from the UpdateReplicationJob service method, as returned by ServerMigrationService.</returns> /// <exception cref="Amazon.ServerMigrationService.Model.InternalErrorException"> /// An internal error has occured. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.InvalidParameterException"> /// A parameter specified in the request is not valid, is unsupported, or cannot be used. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.MissingRequiredParameterException"> /// The request is missing a required parameter. Ensure that you have supplied all the /// required parameters for the request. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.OperationNotPermittedException"> /// The specified operation is not allowed. This error can occur for a number of reasons; /// for example, you might be trying to start a Replication Run before seed Replication /// Run. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.ReplicationJobNotFoundException"> /// The specified Replication Job cannot be found. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.ServerCannotBeReplicatedException"> /// The provided server cannot be replicated. /// </exception> /// <exception cref="Amazon.ServerMigrationService.Model.UnauthorizedOperationException"> /// This user does not have permissions to perform this operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob">REST API Reference for UpdateReplicationJob Operation</seealso> public virtual UpdateReplicationJobResponse UpdateReplicationJob(UpdateReplicationJobRequest request) { var marshaller = new UpdateReplicationJobRequestMarshaller(); var unmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return(Invoke <UpdateReplicationJobRequest, UpdateReplicationJobResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateReplicationJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateReplicationJob operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob">REST API Reference for UpdateReplicationJob Operation</seealso> public virtual Task <UpdateReplicationJobResponse> UpdateReplicationJobAsync(UpdateReplicationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateReplicationJobRequestMarshaller(); var unmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return(InvokeAsync <UpdateReplicationJobRequest, UpdateReplicationJobResponse>(request, marshaller, unmarshaller, cancellationToken)); }