AWS Security ChangesHomeSearch

AWS bedrock documentation change

Service: bedrock · 2026-05-13 · Documentation low

File: bedrock/latest/userguide/batch-inference-example.md

Summary

Added Java code examples for batch inference operations including job creation, status retrieval, listing, and stopping

Security assessment

The change adds sample implementation code but contains no references to security vulnerabilities, patches, or security-specific configurations. The included IAM role reference (roleArn) is a standard AWS practice for resource access control, not evidence of a security fix.

Diff

diff --git a/bedrock/latest/userguide/batch-inference-example.md b/bedrock/latest/userguide/batch-inference-example.md
index 0908bc1fe..1732792fa 100644
--- a//bedrock/latest/userguide/batch-inference-example.md
+++ b//bedrock/latest/userguide/batch-inference-example.md
@@ -87,0 +88,52 @@ Stop the job that you started.
+Java
+    
+    
+    
+    package com.amazon.aws.sample.bedrock.inference;
+    
+    import software.amazon.awssdk.services.bedrock.BedrockClient;
+    import software.amazon.awssdk.services.bedrock.model.*;
+    
+    public class BedrockBatchInference {
+        private final BedrockClient bedrockClient = BedrockClient.create();
+    
+        public void createModelInvokeJobSampleCode() {
+    
+            CreateModelInvocationJobResponse response = bedrockClient.createModelInvocationJob(request -> request
+                    .modelId("anthropic.claude-haiku-4-5-20251001-v1:0")
+                    .jobName("unique-job-name")
+                    .roleArn("arn:aws:iam::123456789:role/bedrock-role")
+                    .clientRequestToken("client-token")
+                    .inputDataConfig(input -> input
+                            .s3InputDataConfig(s3 -> s3
+                                    .s3Uri("s3://batch-input/abc.jsonl")
+                                    .s3InputFormat(S3InputFormat.JSONL)))
+                    .outputDataConfig(output -> output
+                            .s3OutputDataConfig(s3 -> s3
+                                    .s3Uri("s3://batch-output/"))));
+    
+            System.out.println(response.jobArn());
+        }
+    
+        public void getModelInvokeJobSampleCode() {
+            GetModelInvocationJobResponse response = bedrockClient.getModelInvocationJob(request -> request
+                    .jobIdentifier("jobArn"));
+    
+            System.out.println(response.status());
+        }
+    
+        public void listModelInvokeJobSampleCode() {
+            ListModelInvocationJobsResponse response = bedrockClient.listModelInvocationJobs(request -> request
+                    .maxResults(10)
+                    .nameContains("matching-string"));
+    
+            response.invocationJobSummaries().forEach(job ->
+                    System.out.println(job.jobName() + ": " + job.status()));
+        }
+    
+        public void stopModelInvokeJobSampleCode() {
+            bedrockClient.stopModelInvocationJob(request -> request
+                    .jobIdentifier("jobArn"));
+        }
+    }
+