AWS Security ChangesHomeSearch

AWS AmazonS3 documentation change

Service: AmazonS3 · 2025-08-22 · Documentation low

File: AmazonS3/latest/userguide/batch-ops-job-priority.md

Summary

Replaced detailed Java SDK code example with a link to API reference documentation for updating job priority

Security assessment

The change removes implementation-specific code and directs users to official API reference documentation. There is no evidence of security vulnerability remediation or security feature additions.

Diff

diff --git a/AmazonS3/latest/userguide/batch-ops-job-priority.md b/AmazonS3/latest/userguide/batch-ops-job-priority.md
index aa56a77cf..150d2d791 100644
--- a//AmazonS3/latest/userguide/batch-ops-job-priority.md
+++ b//AmazonS3/latest/userguide/batch-ops-job-priority.md
@@ -39 +39 @@ The following example updates the job priority by using the AWS CLI. A higher nu
-The following example updates the priority of an S3 Batch Operations job using the AWS SDK for Java.
+To update the priority of an S3 Batch Operations job using the AWS SDK for Java, you can use the S3Control client to modify the job's execution priority, which determines the order in which jobs are processed relative to other jobs in the queue.
@@ -43,41 +43 @@ For more information about job priority, see [Assigning job priority](./batch-op
-    
-    package aws.example.s3control;
-    
-    
-    import com.amazonaws.AmazonServiceException;
-    import com.amazonaws.SdkClientException;
-    import com.amazonaws.auth.profile.ProfileCredentialsProvider;
-    import com.amazonaws.services.s3control.AWSS3Control;
-    import com.amazonaws.services.s3control.AWSS3ControlClient;
-    import com.amazonaws.services.s3control.model.UpdateJobPriorityRequest;
-    
-    import static com.amazonaws.regions.Regions.US_WEST_2;
-    
-    public class UpdateJobPriority {
-        public static void main(String[] args) {
-            String accountId = "Account ID";
-            String jobId = "00e123a4-c0d8-41f4-a0eb-b46f9ba5b07c";
-    
-            try {
-                AWSS3Control s3ControlClient = AWSS3ControlClient.builder()
-                        .withCredentials(new ProfileCredentialsProvider())
-                        .withRegion(US_WEST_2)
-                        .build();
-    
-                s3ControlClient.updateJobPriority(new UpdateJobPriorityRequest()
-                        .withAccountId(accountId)
-                        .withJobId(jobId)
-                        .withPriority(98));
-    
-            } catch (AmazonServiceException e) {
-                // The call was transmitted successfully, but Amazon S3 couldn't process
-                // it and returned an error response.
-                e.printStackTrace();
-            } catch (SdkClientException e) {
-                // Amazon S3 couldn't be contacted for a response, or the client
-                // couldn't parse the response from Amazon S3.
-                e.printStackTrace();
-            }
-        }
-    }
-    
+For examples of how to update job priority with the AWS SDK for Java, see [Update the priority of a batch job](https://docs.aws.amazon.com/AmazonS3/latest/API/s3-control_example_s3-control_UpdateJobPriority_section.html) in the _Amazon S3 API Reference_.