AWS Security ChangesHomeSearch

AWS bedrock documentation change

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

File: bedrock/latest/userguide/model-card-anthropic-claude-mythos-preview.md

Summary

Added new 'Sample Code' section with SDK usage instructions

Security assessment

Added API usage example without security-specific guidance

Diff

diff --git a/bedrock/latest/userguide/model-card-anthropic-claude-mythos-preview.md b/bedrock/latest/userguide/model-card-anthropic-claude-mythos-preview.md
index 1d9003d3d..c84dd5bf9 100644
--- a//bedrock/latest/userguide/model-card-anthropic-claude-mythos-preview.md
+++ b//bedrock/latest/userguide/model-card-anthropic-claude-mythos-preview.md
@@ -7 +7 @@
-Orange rounded square icon with white radial loading spinner design. Anthropic — Claude Mythos PreviewModel DetailsCapabilities and FeaturesPricingProgrammatic AccessService TiersRegional Availability
+Orange rounded square icon with white radial loading spinner design. Anthropic — Claude Mythos PreviewModel DetailsCapabilities and FeaturesPricingProgrammatic AccessService TiersRegional AvailabilitySample Code
@@ -103,0 +104,34 @@ Bedrock offers three inference options: **In-Region** keeps requests within a si
+## Sample Code
+
+**Step 1 - AWS Account:** If you have an AWS account already, skip this step. If you are new to AWS, sign up for an [AWS account](https://portal.aws.amazon.com/billing/signup).
+
+**Step 2 - API key:** Go to the [Amazon Bedrock console](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) and generate a long-term API key.
+
+**Step 3 - Get the SDK:** To use this getting started guide, you must have Python already installed. Then install the relevant software.
+    
+    
+    pip install -U "anthropic[bedrock]"
+
+**Step 4 - Set environment variables:** Configure your environment to use the API key for authentication.
+    
+    
+    AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
+
+**Step 5 - Run your first inference request:** Save the file as `bedrock-first-request.py`
+
+Messages API
+    
+    
+    
+    from anthropic import AnthropicBedrockMantle
+    
+    client = AnthropicBedrockMantle(aws_region="us-east-1")
+    
+    message = client.messages.create(
+        model="anthropic.claude-mythos-preview",
+        max_tokens=1024,
+        messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}],
+    )
+    
+    print(message.content[0].text)
+