AWS bedrock-agentcore documentation change
Summary
Updated code formatting and added clarification about code sample integration
Security assessment
Changes are purely code formatting improvements (syntax, spacing) and documentation clarifications without any security-specific content or vulnerability fixes.
Diff
diff --git a/bedrock-agentcore/latest/devguide/identity-getting-started-step3.md b/bedrock-agentcore/latest/devguide/identity-getting-started-step3.md index ca5e2e9cf..103da8955 100644 --- a//bedrock-agentcore/latest/devguide/identity-getting-started-step3.md +++ b//bedrock-agentcore/latest/devguide/identity-getting-started-step3.md @@ -10,0 +11,2 @@ Once you have the Google Credential Provider created in the previous step, add t +The following code sample is intended to be integrated into your agent code to invoke an authorization workflow. This is not standalone code that can be copied and run independently. + @@ -15 +17,2 @@ Once you have the Google Credential Provider created in the previous step, add t - @requires_access_token(# Uses the same credential provider name created above + @requires_access_token( + # Uses the same credential provider name created above @@ -24 +27,3 @@ Once you have the Google Credential Provider created in the previous step, add t - force_authentication= False,)async def write_to_google_drive(*, access_token: str): + force_authentication=False, + ) + async def write_to_google_drive(*, access_token: str): @@ -26 +31,3 @@ Once you have the Google Credential Provider created in the previous step, add t - print(access_token)asyncio.run(write_to_google_drive(access_token= "")) + print(access_token) + + asyncio.run(write_to_google_drive(access_token=""))