AWS Security ChangesHomeSearch

AWS lambda documentation change

Service: lambda · 2025-06-25 · Documentation low

File: lambda/latest/dg/example_lambda_GetPolicy_section.md

Summary

Added PowerShell V5 examples for Get-LMPolicy command to retrieve Lambda function policies

Security assessment

The change adds example usage of retrieving function policies but does not address security vulnerabilities or introduce new security features.

Diff

diff --git a/lambda/latest/dg/example_lambda_GetPolicy_section.md b/lambda/latest/dg/example_lambda_GetPolicy_section.md
index f0dd804c6..9a73f89b8 100644
--- a//lambda/latest/dg/example_lambda_GetPolicy_section.md
+++ b//lambda/latest/dg/example_lambda_GetPolicy_section.md
@@ -69,0 +70,19 @@ PowerShell
+
+
+
+
+**Tools for PowerShell V5**
+    
+
+**Example 1: This sample displays the Function policy of the Lambda function**
+    
+    
+    Get-LMPolicy -FunctionName test -Select Policy
+    
+
+**Output:**
+    
+    
+    {"Version":"2012-10-17","Id":"default","Statement":[{"Sid":"xxxx","Effect":"Allow","Principal":{"Service":"sns.amazonaws.com"},"Action":"lambda:InvokeFunction","Resource":"arn:aws:lambda:us-east-1:123456789102:function:test"}]}
+
+  * For API details, see [GetPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.