AWS Import/Export
Developer Guide (API Version 2010-06-03)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid 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

To update a job

  1. Use a text editor to create a YAML-compliant manifest file.

    manifestversion: 2.0
    bucket: toady
    accessKeyId: AKIAIOSFODNN7EXAMPLE
    returnAddress:
      name: Amazon.com ATTN Joe Random 
      street1: 1200 12th Ave S.
      city: Seattle
      stateOrProvince: WA
      postalCode: 98114
      phoneNumber: 206-266-0000
      country: USA
    setContentEncodingForGzFiles: yes
    expires: tomorrow
    contentLanguage: Spanish
    acl: public-read
    cacheControl: max-age=3600

    For more information, see 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%0AaccessKeyId%3A%2013QSAMPLE3FK02%0 
    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&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE 
    &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.