diff --git a/examples/event_handler_bedrock_agents/src/customizing_bedrock_api_operations.py b/examples/event_handler_bedrock_agents/src/customizing_bedrock_api_operations.py index 6eb2393b263..5cd4c9d95c4 100644 --- a/examples/event_handler_bedrock_agents/src/customizing_bedrock_api_operations.py +++ b/examples/event_handler_bedrock_agents/src/customizing_bedrock_api_operations.py @@ -2,7 +2,7 @@ from typing_extensions import Annotated from aws_lambda_powertools.event_handler import BedrockAgentResolver -from aws_lambda_powertools.event_handler.openapi.params import Body, Query +from aws_lambda_powertools.event_handler.openapi.params import Body, Path from aws_lambda_powertools.utilities.typing import LambdaContext app = BedrockAgentResolver() @@ -22,7 +22,7 @@ tags=["todos"], ) def get_todo_title( - todo_id: Annotated[int, Query(description="The ID of the TODO item to get the title from")], + todo_id: Annotated[int, Path(description="The ID of the TODO item from which to retrieve the title")], ) -> Annotated[str, Body(description="The TODO title")]: todo = requests.get(f"https://jsonplaceholder.typicode.com/todos/{todo_id}") todo.raise_for_status()