User guide
Topics
• Sample Data (p. 53)
• Get a Single Item by Using Expressions and the Item's Primary Key (p. 56)
• Get Multiple Items by Using Expressions and the Table's Primary Key (p. 57)
• Get Multiple Items by Using Expressions and Other Item Attributes (p. 58)
• Print an Item (p. 58)
• Create or Replace an Item by Using Expressions (p. 60)
• Update an Item by Using Expressions (p. 61)
• Delete an Item by Using Expressions (p. 62)
• Additional Resources (p. 63)
Sample Data
The code examples in this topic rely on the following two example items in a DynamoDB table named
ProductCatalog. These items describe information about product entries in a fictitious bicycle store
catalog. These items are based on the example that is provided in Case Study: A ProductCatalog Item.
The data type descriptors such as BOOL, L, M, N, NS, S, and SS correspond to those in the JSON Data
Format.
{
"Id": {
"N": "205"
},
"Title": {
"S": "20-Bicycle 205"
},
"Description": {
"S": "205 description"
},
"BicycleType": {
"S": "Hybrid"
},
"Brand": {
"S": "Brand-Company C"
},
"Price": {
"N": "500"
},
"Gender": {
"S": "B"
},
"Color": {
"SS": [
"Red",
"Black"
]
},
"ProductCategory": {
"S": "Bike"
},
"InStock": {
"BOOL": true
},
"QuantityOnHand": {
Version v2.0.0
53
AWS SDK for .NET Developer Guide
Using Expressions with DynamoDB