AWS powertools documentation change
Summary
Updated API Gateway documentation with new features including OpenAPI validation, dependency injection support, and enhanced route configuration with status_code parameter. Added documentation for Lambda Features section and updated source code examples.
Security assessment
The changes are primarily feature enhancements and documentation updates. There's no evidence of addressing security vulnerabilities. Changes include adding OpenAPI validation middleware, dependency injection support (has_dependencies), and configuration parameters for routes. The security-related aspects (like CORS configuration and security schemes) were already present and only received minor updates. No security patches or vulnerability fixes are indicated in the diff.
Diff
diff --git a/powertools/python/latest/api_doc/event_handler/api_gateway.md b/powertools/python/latest/api_doc/event_handler/api_gateway.md index a6c9bdefa..a32d3a810 100644 --- a//powertools/python/latest/api_doc/event_handler/api_gateway.md +++ b//powertools/python/latest/api_doc/event_handler/api_gateway.md @@ -44,0 +45 @@ Metrics + * [ OpenAPI ](../../../core/event_handler/openapi/) @@ -62,0 +64,5 @@ Metrics + * [ Lambda Features ](../../../lambda-features/) + +Lambda Features + * [ Lambda Managed Instances ](../../../lambda-features/managed-instances/) + * [ Durable Functions ](../../../lambda-features/durable-functions/) @@ -141,0 +148 @@ Build recipes + * has_dependencies @@ -226,0 +234 @@ Table of contents + * has_dependencies @@ -272,48 +280,47 @@ Source code in `aws_lambda_powertools/event_handler/api_gateway.py` - 3443 - 3444 - 3445 - 3446 - 3447 - 3448 - 3449 - 3450 - 3451 - 3452 - 3453 - 3454 - 3455 - 3456 - 3457 - 3458 - 3459 - 3460 - 3461 - 3462 - 3463 - 3464 - 3465 - 3466 - 3467 - 3468 - 3469 - 3470 - 3471 - 3472 - 3473 - 3474 - 3475 - 3476 - 3477 - 3478 - 3479 - 3480 - 3481 - 3482 - 3483 - 3484 - 3485 - 3486 - 3487 - 3488 - 3489 - 3490 + 3089 + 3090 + 3091 + 3092 + 3093 + 3094 + 3095 + 3096 + 3097 + 3098 + 3099 + 3100 + 3101 + 3102 + 3103 + 3104 + 3105 + 3106 + 3107 + 3108 + 3109 + 3110 + 3111 + 3112 + 3113 + 3114 + 3115 + 3116 + 3117 + 3118 + 3119 + 3120 + 3121 + 3122 + 3123 + 3124 + 3125 + 3126 + 3127 + 3128 + 3129 + 3130 + 3131 + 3132 + 3133 + 3134 + 3135 @@ -362,7 +369,6 @@ Source code in `aws_lambda_powertools/event_handler/api_gateway.py` - ProxyEventType.ALBEvent, - cors, - debug, - serializer, - strip_prefixes, - enable_validation, - response_validation_error_http_code, + cors=cors, + debug=debug, + serializer=serializer, + strip_prefixes=strip_prefixes, + enable_validation=enable_validation, + response_validation_error_http_code=response_validation_error_http_code, @@ -379 +385 @@ Source code in `aws_lambda_powertools/event_handler/api_gateway.py` - APIGatewayHttpResolver(cors: CORSConfig | None = None, debug: bool | None = None, serializer: Callable[[dict], str] | None = None, strip_prefixes: list[str | Pattern] | None = None, enable_validation: bool = False, response_validation_error_http_code: HTTPStatus | int | None = None, json_body_deserializer: Callable[[str], dict] | None = None) + APIGatewayHttpResolver(proxy_type: Enum | None = None, cors: CORSConfig | None = None, debug: bool | None = None, serializer: Callable[[dict], str] | None = None, strip_prefixes: list[str | Pattern] | None = None, enable_validation: bool = False, response_validation_error_http_code: HTTPStatus | int | None = None, json_body_deserializer: Callable[[str], dict] | None = None) @@ -389,21 +395,74 @@ Source code in `aws_lambda_powertools/event_handler/api_gateway.py` - 3402 - 3403 - 3404 - 3405 - 3406 - 3407 - 3408 - 3409 - 3410 - 3411 - 3412 - 3413 - 3414 - 3415 - 3416 - 3417 - 3418 - 3419 - 3420 - 3421 - 3422 + 1509 + 1510 + 1511 + 1512 + 1513 + 1514 + 1515 + 1516 + 1517 + 1518 + 1519 + 1520 + 1521 + 1522 + 1523 + 1524 + 1525 + 1526 + 1527 + 1528 + 1529 + 1530 + 1531 + 1532 + 1533 + 1534 + 1535 + 1536 + 1537 + 1538 + 1539 + 1540 + 1541 + 1542 + 1543 + 1544 + 1545 + 1546 + 1547 + 1548 + 1549 + 1550 + 1551 + 1552 + 1553 + 1554 + 1555 + 1556 + 1557