🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

DynamoDB and its Data Pane Operations - 3

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

This is the 3rd and the last article in the series for .



In this article, I am going to show you such operations on DynamoDB scan. Some of the criteria which can be used in the scan operations are - Filter Expression, with options, such as max items, --starting-token, Count and ScannedCount and Reserved words.



In this article, I am not explaining the terminology and the concepts used in DynamoDB Tables. Please visit my previous articles for this - .



Since the scan operation involves scanning the whole table and not just a single item, there is no Key condition expression.






Scan



  • Retrieves all items in the specified table or index.


  • You can retrieve entire items, or just a subset of their attributes.





Filter Expression



  • It removes some items from the Result Set returned by the Query.


  • This can be compared in SQL to this is the part of the WHERE clause that acts on the non-Key attributes.





Max items



  • If we want to limit the number of items then we use the --max-items option.




ScannedCount and Count



  • Counts the items in the results


  • If you don't use a filter expression, ScannedCount and Count have the same value.


Let’s get started!



Please visit my








Steps for implementation to this project:



  • Copy the and paste the code in your AWS Cloud9 command prompt.




1. Create a DynamoDB table






CODE
aws dynamodb create-table \
--table-name Movies \
--attribute-definitions \
AttributeName=Title,AttributeType=S \
AttributeName=Review,AttributeType=S \
--key-schema \
AttributeName=Title,KeyType=HASH \
AttributeName=Review,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5
aws dynamodb wait table-exists --table-name Movies











3. Scan the table to get a subset of the attributes



  • Scan scanned all 3 items (ScannedCount) in the table -
    "ScannedCount": 3


  • But the Filter Expression reduced our result set size down to 2 items (Count) - "Count": 2


  • Hence, you should see 2 items in the result set, as the non-key attribute PostedBy references 2 items in Movies table.


  • --item '{

    "PostedBy": {"S": "User A"}


  • Refer the Movies table to check



CODE
aws dynamodb scan \
--table-name Movies \
--filter-expression 'PostedBy = :user' \
--expression-attribute-values '{
":user" : {"S": "User A"}
}' \
--return-consumed-capacity TOTAL









4. Scan the table to limit the items number to 1 using --max-items parameter.






CODE
aws dynamodb scan \
--table-name Movies \
--filter-expression 'PostedBy = :user' \
--expression-attribute-values '{
":user" : {"S": "User A"}
}' \
--max-items 1 \
--return-consumed-capacity TOTAL







  • the scan response will show a NextToken which we can then issue to a next scan call to pick up the 2nd item.




NextToken






CODE


"NextToken": "eyJFeGNsdXNpdmVTdGFydEtleSI6IG51bGwsICJib3RvX3RydW5jYXRlX2Ftb3VudCI6IDF9"













6. Dealing with Reserved words



  • In the Filter Expression, if the attribute name is actually a DynamoDB Reserved Word, it will throw an error - An error occurred (ValidationException) when calling the Scan operation: Invalid FilterExpression: Attribute name is a reserved keyword; reserved keyword: Number


  • Because the Number attribute name is actually a DynamoDB Reserved Word.


  • This can be solved by putting a placeholder which is a # (pound sign) in the FilterExpression and provide the actual attribute name in the --expression-attribute-names



CODE
aws dynamodb scan \
--table-name <Table Name> \
--filter-expression 'Pictures >= :pictures AND #Number >= :comment' \
--expression-attribute-values '{
":pictures" : {"N": "1"},
":Number" : {"S": "Nice"}
}' \
--expression-attribute-names '{"#Number" : "number"}' \
--return-consumed-capacity TOTAL









Cleanup



  • Delete the table Movies




What we have done so far



We have successfully demonstrated Data Pane operations on DynamoDB scan, using these criteria - Filter Expression, with options, such as max items, --starting-token, Count and ScannedCount, Reserved words.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten DynamoDB and its Data Pane Operations - 3

Thematisch verwandte Begriffe: DynamoDB, Data, Pane, Operations · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...