AWS amazondynamodb documentation change
Summary
Added PowerShell V5 examples for Scan operations including basic scans and filtered scans using CriticRating
Security assessment
The changes demonstrate standard Scan operation usage patterns without addressing security aspects like access control, data exposure risks, or scan permission management. No security guidance or vulnerability information is included.
Diff
diff --git a/amazondynamodb/latest/developerguide/example_dynamodb_Scan_section.md b/amazondynamodb/latest/developerguide/example_dynamodb_Scan_section.md index 1bd035590..608ff6856 100644 --- a//amazondynamodb/latest/developerguide/example_dynamodb_Scan_section.md +++ b//amazondynamodb/latest/developerguide/example_dynamodb_Scan_section.md @@ -862,0 +863,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)_. + + + +