AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/dynamodb_example_dynamodb_Scan_section.md

Summary

Added PowerShell V5 examples for DynamoDB Scan operations with filter conditions

Security assessment

The examples demonstrate basic Scan functionality without addressing security implications like excessive permissions, data exposure risks, or best practices for scan operations. No security controls or mitigations are mentioned in the added content.

Diff

diff --git a/code-library/latest/ug/dynamodb_example_dynamodb_Scan_section.md b/code-library/latest/ug/dynamodb_example_dynamodb_Scan_section.md
index 6c7e66713..4802a575c 100644
--- a//code-library/latest/ug/dynamodb_example_dynamodb_Scan_section.md
+++ b//code-library/latest/ug/dynamodb_example_dynamodb_Scan_section.md
@@ -864,0 +865,56 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: Returns all items in the Music table.**
+    
+    
+    Invoke-DDBScan -TableName 'Music' | ConvertFrom-DDBItem
+    
+
+**Output:**
+    
+    
+    Name                           Value
+    ----                           -----
+    Genre                          Country
+    Artist                         No One You Know
+    Price                          1.94
+    CriticRating                   9
+    SongTitle                      Somewhere Down The Road
+    AlbumTitle                     Somewhat Famous
+    Genre                          Country
+    Artist                         No One You Know
+    Price                          1.98
+    CriticRating                   8.4
+    SongTitle                      My Dog Spot
+    AlbumTitle                     Hey Now
+
+**Example 2: Returns items in the Music table with a CriticRating greater than or equal to nine.**
+    
+    
+    $scanFilter = @{
+            CriticRating = [Amazon.DynamoDBv2.Model.Condition]@{
+                AttributeValueList = @(@{N = '9'})
+                ComparisonOperator = 'GE'
+            }
+        }
+        Invoke-DDBScan -TableName 'Music' -ScanFilter $scanFilter | ConvertFrom-DDBItem
+    
+
+**Output:**
+    
+    
+    Name                           Value
+    ----                           -----
+    Genre                          Country
+    Artist                         No One You Know
+    Price                          1.94
+    CriticRating                   9
+    SongTitle                      Somewhere Down The Road
+    AlbumTitle                     Somewhat Famous
+
+  * For API details, see [Scan](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+