AWS bedrock documentation change
Summary
Updated code samples to use Claude Opus 4.7 model, added Messages API example, improved image accessibility with alt text, and reorganized content sections.
Security assessment
Changes are routine documentation updates for new model versions (4.6 → 4.7) and improved examples. Added alt text for images enhances accessibility but doesn't relate to security. No security features, vulnerabilities, or security-related configurations are modified or documented.
Diff
diff --git a/bedrock/latest/userguide/what-is-bedrock.md b/bedrock/latest/userguide/what-is-bedrock.md index de7b0d876..3b4de8d46 100644 --- a//bedrock/latest/userguide/what-is-bedrock.md +++ b//bedrock/latest/userguide/what-is-bedrock.md @@ -16,0 +17,15 @@ Read the [Quickstart](./getting-started.html) to write your first API call using +Messages API + + + + import anthropic + + client = anthropic.Anthropic() + + response = client.messages.create( + model="anthropic.claude-opus-4-7", + max_tokens=1024, + messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}] + ) + print(response) + @@ -45,18 +59,0 @@ Chat Completions API -Invoke API - - - - import json - import boto3 - - client = boto3.client('bedrock-runtime', region_name='us-east-1') - response = client.invoke_model( - modelId='anthropic.claude-opus-4-6-v1', - body=json.dumps({ - 'anthropic_version': 'bedrock-2023-05-31', - 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], - 'max_tokens': 1024 - }) - ) - print(json.loads(response['body'].read())) - @@ -71 +68 @@ Converse API - modelId='anthropic.claude-opus-4-6-v1', + modelId='anthropic.claude-opus-4-7', @@ -80,0 +78,18 @@ Converse API +Invoke API + + + + import json + import boto3 + + client = boto3.client('bedrock-runtime', region_name='us-east-1') + response = client.invoke_model( + modelId='anthropic.claude-opus-4-7', + body=json.dumps({ + 'anthropic_version': 'bedrock-2023-05-31', + 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], + 'max_tokens': 1024 + }) + ) + print(json.loads(response['body'].read())) + @@ -85 +100 @@ Bedrock supports [100+ foundation models](./models.html) from industry-leading p - **Nova 2** |  **Claude Opus 4.6** |  **Deepseek 3.2** |  **Kimi K2.5** |  **MiniMax M2.1** |  **GPT-OSS-20B** + **Nova 2** |  **Claude Opus 4.6** |  **Deepseek 3.2** |  **Kimi K2.5** |  **MiniMax M2.1** |  **GPT-OSS-20B** @@ -103 +118 @@ Bedrock supports [100+ foundation models](./models.html) from industry-leading p - | Explore the [APIs supported by Amazon Bedrock](./apis.html) and [Endpoints supported by Amazon Bedrock](./endpoints.html) supported by Amazon Bedrock. + | Explore the [APIs supported by Amazon Bedrock](./apis.html) and [Endpoints supported by Amazon Bedrock](./endpoints.html) supported by Amazon Bedrock. @@ -105 +120 @@ Bedrock supports [100+ foundation models](./models.html) from industry-leading p - | Build using the [Submit prompts and generate responses with model inference](./inference.html) operations provided by Amazon Bedrock. + | Build using the [Submit prompts and generate responses with model inference](./inference.html) operations provided by Amazon Bedrock.