AWS Security ChangesHomeSearch

AWS bedrock documentation change

Service: bedrock · 2025-10-16 · Documentation low

File: bedrock/latest/userguide/getting-started-api-ex-python.md

Summary

Removed model access requirement, updated region handling in code examples, and fixed string formatting

Security assessment

Changes focus on code example improvements and documentation accuracy. Explicit region specification improves configuration practices but doesn't directly address security vulnerabilities.

Diff

diff --git a/bedrock/latest/userguide/getting-started-api-ex-python.md b/bedrock/latest/userguide/getting-started-api-ex-python.md
index 07aa5acb3..e217b7f06 100644
--- a//bedrock/latest/userguide/getting-started-api-ex-python.md
+++ b//bedrock/latest/userguide/getting-started-api-ex-python.md
@@ -13,3 +13 @@ This section guides you through trying out some common operations in Amazon Bedr
-  * You have an AWS account and a user or role with authentication set up and the necessary permissions for Amazon Bedrock. Otherwise, follow the steps at [Getting started with the API](./getting-started-api.html).
-
-  * You've requested access to the Amazon Titan Text G1 - Express model. Otherwise, follow the steps at [Request access to an Amazon Bedrock foundation model](./getting-started.html#getting-started-model-access).
+  * You have an AWS account and a user or role with authentication set up and the necessary permissions for Amazon Bedrock. Otherwise, follow the steps at [Get started with the API](./getting-started-api.html).
@@ -43 +41 @@ The following example runs the [ListFoundationModels](https://docs.aws.amazon.co
-    Lists the available Amazon Bedrock models.
+    Lists the available Amazon Bedrock models in an &AWS-Region;.
@@ -76,4 +74,4 @@ The following example runs the [ListFoundationModels](https://docs.aws.amazon.co
-        """Entry point for the example. Uses the AWS SDK for Python (Boto3)
-        to create an Amazon Bedrock client. Then lists the available Bedrock models
-        in the region set in the callers profile and credentials.
-        """
+        """Entry point for the example. Change aws_region to the &AWS-Region;
+        that you want to use."""
+       
+        aws_region = "us-east-1"
@@ -81 +79 @@ The following example runs the [ListFoundationModels](https://docs.aws.amazon.co
-        bedrock_client = boto3.client(service_name="bedrock")
+        bedrock_client = boto3.client(service_name="bedrock", region_name=aws_region)
@@ -85 +83 @@ The following example runs the [ListFoundationModels](https://docs.aws.amazon.co
-            print(f"Model: {model['modelName']}")
+            print(f"Model: {model["modelName"]}")