Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avikivity/aa33eccc25b3a6c349d54de769e1c317 to your computer and use it in GitHub Desktop.
Save avikivity/aa33eccc25b3a6c349d54de769e1c317 to your computer and use it in GitHub Desktop.
{
"TableName": "Orders",
"Key": {
"orderId": {
"S": "order-12345"
}
},
"ConsistentRead": true,
"ReturnConsumedCapacity": "TOTAL",
"ProjectionExpression": "#oid, customerInfo.#name, #items[0], orderTotal, #status",
"ExpressionAttributeNames": {
"#oid": "orderId",
"#name": "name",
"#items": "items",
"#status": "status"
},
"ConditionExpression": "#status = :statusValue AND orderTotal > :minValue",
"ExpressionAttributeValues": {
":statusValue": {
"S": "SHIPPED"
},
":minValue": {
"N": "100.00"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment