AWS Import/Export
Developer Guide (API Version 2010-06-03)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Canceling a Job

You use CancelJob to cancel a job. You specify the job to cancel using the job ID returned in the CreateJob response. The operation fails if the job is already complete. We can, however, cancel a job in progress. You can only cancel jobs you own.

To cancel a job using the command line client

Use the CancelJob command.

The following command cancels the job JOBID.

> java -jar lib\AWSImportExportWebServiceTool-1.0.jar CancelJob JOBID

To cancel a job using REST

Submit a CancelJob request.

POST / HTTP/1.1
content-type:application/x-www-form-urlencoded;charset=utf-8
host: https://importexport.amazonaws.com
content-length:189

Action=CancelJob&JobId=JOBID&JobType=Import 
&SignatureVersion=2&SignatureMethod=HmacSHA256&Version=2010-06-01 
&SignatureMethod=%2FVfkltRBOoSUi1sWxRzN8rw%3D

Amazon Import/Export returns a response to notify you whether we were able to cancel your job. For more information about the API operation, go to CancelJob.