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...

Updating a Job

You use UpdateJob to update the specifics of how you want a job done. You specify a job using the job ID returned in the CreateJob response. You update a job request by replacing the original manifest with the manifest you include in this request. You can either modify the original manifest you submitted or start over and create a new manifest file. In either case, the original manifest is discarded.

You can only use UpdateJob after submitting a CreateJob request, but before the data transfer starts, and you can only use it on jobs you own.

To update a job using the command line client

Use the UpdateJob command with the new or updated manifest.

>  java -jar lib\AWSImportExportWebServiceTool-1.0.jar UpdateJob JOBID Export C:\DIRECTORY\updatedmanifest.txt 

To update a job using REST

  1. Modify the original manifest you submitted or start over and create a new manifest file.

  2. URL-encode the manifest file.

  3. Send an Update request.

The following example submits the above manifest file to update the job identified by JOBID.

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

Action=UpdateJob&JobId=JOBID&Manifest=manifestVersion 
%3A%201.0%0Abucket%3A%20XMSAGE 
AreturnAddress%3A%0A%20%20%20%20name%3A%20Amazon.com%20ATTN%20 
Joe%20Random%20%0A%20%20%20%20street1%3A%201200%111%20Nosuch%20Ave%20 
S.%0A%20%20%20%20city%3A%20Seattle%0A%20%20%20%20 
stateOrProvince%3A%20WA%0A%20%20%20%20postalCode%3A%2098114%0A%20%20%20%20 
phoneNumber%3A%20206-266-0000%0A%20%20%20%20country%3A%20USA%0 
AsetContentEncodingForGzFiles%3A%20yes%0Aexpires%3A%20tomorrow%0 
AcontentLanguage%3A%20Spanish%0Aacl%3A%20public-read%0AcacheControl%3A%20 
max-age%3D3600&JobType=Import 
&SignatureVersion=2&SignatureMethod=HmacSHA256&Version=2010-06-01 
&Signature=%2FVfkltRBOoSUi1sWxRzN8rw%3D

Amazon Import/Export returns a response to notify you whether we were able to update your job.