/// <summary> /// Updates the status for the specified job. Use this operation to confirm that you want /// to run a job or to cancel an existing job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobStatus service method.</param> /// /// <returns>The response from the UpdateJobStatus service method, as returned by S3Control.</returns> /// <exception cref="Amazon.S3Control.Model.BadRequestException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.InternalServiceException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.JobStatusException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.NotFoundException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.TooManyRequestsException"> /// /// </exception> public virtual UpdateJobStatusResponse UpdateJobStatus(UpdateJobStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobStatusResponseUnmarshaller.Instance; return(Invoke <UpdateJobStatusResponse>(request, options)); }
/// <summary> /// Updates the status for the specified job. Use this operation to confirm that you want /// to run a job or to cancel an existing job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateJobStatus service method, as returned by S3Control.</returns> /// <exception cref="Amazon.S3Control.Model.BadRequestException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.InternalServiceException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.JobStatusException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.NotFoundException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.TooManyRequestsException"> /// /// </exception> public virtual Task <UpdateJobStatusResponse> UpdateJobStatusAsync(UpdateJobStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobStatusResponseUnmarshaller.Instance; return(InvokeAsync <UpdateJobStatusResponse>(request, options, cancellationToken)); }