AWS Security ChangesHomeSearch

AWS powertools documentation change

Service: powertools · 2026-07-13 · Documentation low

File: powertools/typescript/latest/features/event-handler/http.md

Summary

Added links to Data Masking/Signer features, updated Context imports, added type safety for request bodies, and fixed test assertions

Security assessment

The changes improve code quality and documentation navigation but don't address security vulnerabilities. The type safety enhancement is a general reliability improvement.

Diff

diff --git a/powertools/typescript/latest/features/event-handler/http.md b/powertools/typescript/latest/features/event-handler/http.md
index a2275653d..f77e48e90 100644
--- a//powertools/typescript/latest/features/event-handler/http.md
+++ b//powertools/typescript/latest/features/event-handler/http.md
@@ -112,0 +113 @@ Event Handler
+      * [ Data Masking  ](../../data-masking/)
@@ -113,0 +115 @@ Event Handler
+      * [ Signer  ](../../signer/)
@@ -762 +764 @@ index.tsRequest
-    import type { Context } from 'aws-lambda/handler';
+    import type { Context } from 'aws-lambda';
@@ -930 +932 @@ index.tsRequest
-    import type { Context } from 'aws-lambda/handler';
+    import type { Context } from 'aws-lambda';
@@ -1022 +1024 @@ index.ts
-    import type { Context } from 'aws-lambda/handler';
+    import type { Context } from 'aws-lambda';
@@ -1799 +1801 @@ index.tsUsing decorators
-    import type { Context } from 'aws-lambda/handler';
+    import type { Context } from 'aws-lambda';
@@ -1971 +1973 @@ index.tsUsing decorators
-    import type { Context } from 'aws-lambda/handler';
+    import type { Context } from 'aws-lambda';
@@ -3090 +3092 @@ index.tsResponse
-      const body = await req.json();
+      const body = (await req.json()) as { title: string };
@@ -4149 +4151 @@ split_route.tsindex.ts
-    import { router } from './split_route';
+    import { router } from './split_route.js';
@@ -4211 +4213 @@ split_route_prefix.tsindex.ts
-    import { router } from './split_route';
+    import { router } from './split_route.js';
@@ -4834 +4836 @@ index.test.tsevent_helper.tsindex.ts
-        ).sort((a, b) => a.localeCompare(b))
+        )?.sort((a, b) => a.localeCompare(b))
@@ -4845 +4847 @@ index.test.tsevent_helper.tsindex.ts
-        ).sort((a, b) => a.localeCompare(b))
+        )?.sort((a, b) => a.localeCompare(b))
@@ -4970 +4972 @@ index.test.tsevent_helper.tsindex.ts
-2026-05-27 
+2026-07-10