AWS Security ChangesHomeSearch

AWS lambda: Reformat Lambda GetPolicy example output JSON

Service: lambda · 2026-10-31 · Documentation low

File: lambda/latest/dg/example_lambda_GetPolicy_section.md

Summary

The example GetPolicy response was reformatted so the Policy field is shown as an escaped JSON string and the RevisionId placeholder was updated.

Security assessment

The change is a cosmetic reformatting of sample output (Policy as a string, new placeholder RevisionId); the example policy content is unchanged and no security issue is addressed.

Evidence

+        "Policy": "{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"iot-events\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"iotevents.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\"}]}",

Diff

diff --git a/lambda/latest/dg/example_lambda_GetPolicy_section.md b/lambda/latest/dg/example_lambda_GetPolicy_section.md
index 9b63d6c..ffe9b9e 100644
--- a//lambda/latest/dg/example_lambda_GetPolicy_section.md
+++ b//lambda/latest/dg/example_lambda_GetPolicy_section.md
@@ -30,15 +30,2 @@ Output:
-        "Policy": {
-            "Version":"2012-10-17",
-            "Id":"default",
-            "Statement":
-            [
-                {
-                    "Sid":"iot-events",
-                    "Effect":"Allow",
-                    "Principal": {"Service":"iotevents.amazonaws.com"},
-                    "Action":"lambda:InvokeFunction",
-                    "Resource":"arn:aws:lambda:us-west-2:123456789012:function:my-function"
-                }
-            ]
-        },
-        "RevisionId": "93017fc9-59cb-41dc-901b-4845ce4bf668"
+        "Policy": "{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"iot-events\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"iotevents.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-west-2:123456789012:function:my-function\"}]}",
+        "RevisionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"