AWS bedrock medium security documentation change
Summary
Removed inline input option and updated examples for batch inference
Security assessment
The removal of the inline input method ('inputInlineRequests') forces all data through S3, which enables proper access controls and encryption. This addresses potential security risks from unsecured inline data transmission.
Diff
diff --git a/bedrock/latest/userguide/batch-inference-data.md b/bedrock/latest/userguide/batch-inference-data.md index 595e31708..136a7bd6b 100644 --- a//bedrock/latest/userguide/batch-inference-data.md +++ b//bedrock/latest/userguide/batch-inference-data.md @@ -7 +7 @@ -Example text inputExample video input for Amazon NovaExample Converse inputExample inline input +Example text input for Anthropic Claude 3 HaikuExample video input for Amazon NovaExample Converse input @@ -9 +9 @@ Example text inputExample video input for Amazon NovaExample Converse inputExamp -# Prepare your batch inference data +# Format and upload your batch inference data @@ -11 +11 @@ Example text inputExample video input for Amazon NovaExample Converse inputExamp -You must add your batch inference data to an S3 location that you'll choose or specify when submitting a model invocation job. Alternatively, you can pass inference requests inline in the API call using the `inputInlineRequests` field. If you use S3 input, the S3 location must contain the following items: +You must add your batch inference data to an S3 location that you'll choose or specify when submitting a model invocation job. The S3 location must contain the following items: @@ -55 +55 @@ To better understand how to set up your batch inference inputs, see the followin -## Example text input +## Example text input for Anthropic Claude 3 Haiku @@ -57 +57 @@ To better understand how to set up your batch inference inputs, see the followin -If you plan to run batch inference using the [Messages API](./model-parameters-anthropic-claude-messages.html) format for an Anthropic Claude model, you might provide a JSONL file containing the following JSON object as one of the lines: +If you plan to run batch inference using the [Messages API](./model-parameters-anthropic-claude-messages.html) format for the Anthropic Claude 3 Haiku model, you might provide a JSONL file containing the following JSON object as one of the lines: @@ -159,56 +158,0 @@ For the full list of fields supported in the Converse request body, see [Convers -## Example inline input - -Instead of uploading a JSONL file to Amazon S3, you can pass inference requests directly in the `CreateModelInvocationJob` API call using the `inputInlineRequests` field. Each item in the list uses the same record format as a line in the input JSONL file. - -The following example shows a full `CreateModelInvocationJob` request body with inline requests for an Anthropic Claude model: - - - { - "jobName": "my-inline-batch-job", - "roleArn": "arn:aws:iam::123456789012:role/BatchServiceRole", - "modelId": "anthropic.claude-sonnet-4-20250514", - "inputInlineRequests": [ - { - "recordId": "CALL0000001", - "modelInput": { - "anthropic_version": "bedrock-2023-05-31", - "max_tokens": 1024, - "messages": [ - { - "role": "user", - "content": [ - { - "type": "text", - "text": "Summarize the following call transcript: ..." - } - ] - } - ] - } - }, - { - "recordId": "CALL0000002", - "modelInput": { - "anthropic_version": "bedrock-2023-05-31", - "max_tokens": 1024, - "messages": [ - { - "role": "user", - "content": [ - { - "type": "text", - "text": "Extract the key action items from this meeting: ..." - } - ] - } - ] - } - } - ], - "outputDataConfig": { - "s3OutputDataConfig": { - "s3Uri": "s3://amzn-s3-demo-bucket/output/" - } - } - } -