AWS Security ChangesHomeSearch

AWS bedrock-agentcore documentation change

Service: bedrock-agentcore · 2025-11-22 · Documentation low

File: bedrock-agentcore/latest/devguide/obtain-api-key.md

Summary

Fixed code formatting and syntax in documentation examples (backticks for code elements, indentation corrections)

Security assessment

Changes are purely formatting improvements to code examples without altering security-related content or practices

Diff

diff --git a/bedrock-agentcore/latest/devguide/obtain-api-key.md b/bedrock-agentcore/latest/devguide/obtain-api-key.md
index 9d1f5fe6d..ab21cb021 100644
--- a//bedrock-agentcore/latest/devguide/obtain-api-key.md
+++ b//bedrock-agentcore/latest/devguide/obtain-api-key.md
@@ -7 +7 @@
-Once you have stored your API keys in the AgentCore Identity vault, you can retrieve them directly in your agent using the AgentCore SDK and the @requires_api_key annotation. For example, the code below will retrieve the API key from the “your-service-name” API key provider so that you can use it in the need_api_key function.
+Once you have stored your API keys in the AgentCore Identity vault, you can retrieve them directly in your agent using the AgentCore SDK and the `@requires_api_key` annotation. For example, the code below will retrieve the API key from the “your-service-name” API key provider so that you can use it in the `need_api_key` function.
@@ -12,3 +12,6 @@ Once you have stored your API keys in the AgentCore Identity vault, you can retr
-    @requires_api_key(provider_name= " your-service-name" # replace with your own credential provider name)async def need_api_key(*, api_key: str):
-        # Use the key in api_key
-    asyncio.run(need_api_key(api_key= ""))
+    
+    @requires_api_key(
+        provider_name= "your-service-name" # replace with your own credential provider name
+    )
+    async def need_api_key(*, api_key: str):
+        asyncio.run(need_api_key(api_key))