Database Reference
In-Depth Information
GetItem
The following code will retrieve the
BookTitle
,
Language
, and
Edition
attributes
of the item whose
BookTitle
is
SCJP
and
Author
is
Kathy
:
{
"TableName": "Tbl_Book",
"Key": {
"BookTitle": { "S": "SCJP" },
"Author ": { "S": "Kathy" } },
"AttributesToGet": ["BookTitle","Language","Edition"],
"ConsistentRead": true,
"ReturnConsumedCapacity": "TOTAL"
}
The preceding code will return
ConsumedCapacity
, and the result of the previous oper-
ation is as follows:
{
"ConsumedCapacity": {"CapacityUnits": 1,"TableName":
"Tbl_Book" },
"Item": {
"BookTitle": { "S": "SCJP"},
"Language": {"SS": ["English","German"] },
"Edition": { "N": "1" }}
}