"description":"This example reads multiple items from the Music table using a batch of three GetItem requests. Only the AlbumTitle attribute is returned.",
"description":"This example creates a table named Music.",
"id":"to-create-a-table-1476116291743",
"title":"To create a table"
}
],
"DeleteItem":[
{
"input":{
"Key":{
"Artist":{
"S":"No One You Know"
},
"SongTitle":{
"S":"Scared of My Shadow"
}
},
"TableName":"Music"
},
"output":{
"ConsumedCapacity":{
"CapacityUnits":1,
"TableName":"Music"
}
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example deletes an item from the Music table.",
"id":"to-delete-an-item-1475884573758",
"title":"To delete an item"
}
],
"DeleteTable":[
{
"input":{
"TableName":"Music"
},
"output":{
"TableDescription":{
"ItemCount":0,
"ProvisionedThroughput":{
"NumberOfDecreasesToday":1,
"ReadCapacityUnits":5,
"WriteCapacityUnits":5
},
"TableName":"Music",
"TableSizeBytes":0,
"TableStatus":"DELETING"
}
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example deletes the Music table.",
"id":"to-delete-a-table-1475884368755",
"title":"To delete a table"
}
],
"DescribeLimits":[
{
"input":{
},
"output":{
"AccountMaxReadCapacityUnits":20000,
"AccountMaxWriteCapacityUnits":20000,
"TableMaxReadCapacityUnits":10000,
"TableMaxWriteCapacityUnits":10000
},
"comments":{
"input":{
},
"output":{
}
},
"description":"The following example returns the maximum read and write capacity units per table, and for the AWS account, in the current AWS region.",
"title":"To determine capacity limits per table and account, in the current AWS region"
}
],
"DescribeTable":[
{
"input":{
"TableName":"Music"
},
"output":{
"Table":{
"AttributeDefinitions":[
{
"AttributeName":"Artist",
"AttributeType":"S"
},
{
"AttributeName":"SongTitle",
"AttributeType":"S"
}
],
"CreationDateTime":"1421866952.062",
"ItemCount":0,
"KeySchema":[
{
"AttributeName":"Artist",
"KeyType":"HASH"
},
{
"AttributeName":"SongTitle",
"KeyType":"RANGE"
}
],
"ProvisionedThroughput":{
"NumberOfDecreasesToday":1,
"ReadCapacityUnits":5,
"WriteCapacityUnits":5
},
"TableName":"Music",
"TableSizeBytes":0,
"TableStatus":"ACTIVE"
}
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example describes the Music table.",
"id":"to-describe-a-table-1475884440502",
"title":"To describe a table"
}
],
"GetItem":[
{
"input":{
"Key":{
"Artist":{
"S":"Acme Band"
},
"SongTitle":{
"S":"Happy Day"
}
},
"TableName":"Music"
},
"output":{
"Item":{
"AlbumTitle":{
"S":"Songs About Life"
},
"Artist":{
"S":"Acme Band"
},
"SongTitle":{
"S":"Happy Day"
}
}
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example retrieves an item from the Music table. The table has a partition key and a sort key (Artist and SongTitle), so you must specify both of these attributes.",
"description":"This example lists all of the tables associated with the current AWS account and endpoint.",
"id":"to-list-tables-1475884741238",
"title":"To list tables"
}
],
"PutItem":[
{
"input":{
"Item":{
"AlbumTitle":{
"S":"Somewhat Famous"
},
"Artist":{
"S":"No One You Know"
},
"SongTitle":{
"S":"Call Me Today"
}
},
"ReturnConsumedCapacity":"TOTAL",
"TableName":"Music"
},
"output":{
"ConsumedCapacity":{
"CapacityUnits":1,
"TableName":"Music"
}
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example adds a new item to the Music table.",
"id":"to-add-an-item-to-a-table-1476116191110",
"title":"To add an item to a table"
}
],
"Query":[
{
"input":{
"ExpressionAttributeValues":{
":v1":{
"S":"No One You Know"
}
},
"KeyConditionExpression":"Artist = :v1",
"ProjectionExpression":"SongTitle",
"TableName":"Music"
},
"output":{
"ConsumedCapacity":{
},
"Count":2,
"Items":[
{
"SongTitle":{
"S":"Call Me Today"
}
}
],
"ScannedCount":2
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example queries items in the Music table. The table has a partition key and sort key (Artist and SongTitle), but this query only specifies the partition key value. It returns song titles by the artist named \"No One You Know\".",
"id":"to-query-an-item-1475883874631",
"title":"To query an item"
}
],
"Scan":[
{
"input":{
"ExpressionAttributeNames":{
"AT":"AlbumTitle",
"ST":"SongTitle"
},
"ExpressionAttributeValues":{
":a":{
"S":"No One You Know"
}
},
"FilterExpression":"Artist = :a",
"ProjectionExpression":"#ST, #AT",
"TableName":"Music"
},
"output":{
"ConsumedCapacity":{
},
"Count":2,
"Items":[
{
"AlbumTitle":{
"S":"Somewhat Famous"
},
"SongTitle":{
"S":"Call Me Today"
}
},
{
"AlbumTitle":{
"S":"Blue Sky Blues"
},
"SongTitle":{
"S":"Scared of My Shadow"
}
}
],
"ScannedCount":3
},
"comments":{
"input":{
},
"output":{
}
},
"description":"This example scans the entire Music table, and then narrows the results to songs by the artist \"No One You Know\". For each item, only the album title and song title are returned.",
"description":"This example updates an item in the Music table. It adds a new attribute (Year) and modifies the AlbumTitle attribute. All of the attributes in the item, as they appear after the update, are returned in the response.",