File size: 1,221 Bytes
beedd7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
**To update the status of an Amazon S3 batch operations job**

The following ``update-job-status`` example cancels the specified job which is awaiting approval. ::

    aws s3control update-job-status \
        --account-id 123456789012 \
        --job-id 8d9a18fe-c303-4d39-8ccc-860d372da386 \
        --requested-job-status Cancelled

Output::

    {
        "Status": "Cancelled",
        "JobId": "8d9a18fe-c303-4d39-8ccc-860d372da386"
    }

The following ``update-job-status`` example confirms and runs the specified which is awaiting approval. ::

    aws s3control update-job-status \
        --account-id 123456789012 \
        --job-id 5782949f-3301-4fb3-be34-8d5bab54dbca \
        --requested-job-status Ready

    Output::

    {
        "Status": "Ready",
        "JobId": "5782949f-3301-4fb3-be34-8d5bab54dbca"
    }

The following ``update-job-status`` example cancels the specified job which is running. ::

     aws s3control update-job-status \
        --account-id 123456789012 \
        --job-id 5782949f-3301-4fb3-be34-8d5bab54dbca \
        --requested-job-status Cancelled

    Output::
    {
             "Status": "Cancelling",
             "JobId": "5782949f-3301-4fb3-be34-8d5bab54dbca"
    }