PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
dynamodb
**To add multiple items to a table** This example adds three new items to the *MusicCollection* table using a batch of three PutItem requests. Command:: aws dynamodb batch-write-item --request-items file://request-items.json The arguments for ``--request-items`` are stored in a JSON file, ``request-items.json``. Here are the contents of that file:: { "MusicCollection": [ { "PutRequest": { "Item": { "Artist": {"S": "No One You Know"}, "SongTitle": {"S": "Call Me Today"}, "AlbumTitle": {"S": "Somewhat Famous"} } } }, { "PutRequest": { "Item": { "Artist": {"S": "Acme Band"}, "SongTitle": {"S": "Happy Day"}, "AlbumTitle": {"S": "Songs About Life"} } } }, { "PutRequest": { "Item": { "Artist": {"S": "No One You Know"}, "SongTitle": {"S": "Scared of My Shadow"}, "AlbumTitle": {"S": "Blue Sky Blues"} } } } ] } Output:: { "UnprocessedItems": {} }
[-] get-item.rst
[edit]
[-] update-item.rst
[edit]
[-] update-table.rst
[edit]
[-] batch-get-item.rst
[edit]
[+]
..
[-] delete-item.rst
[edit]
[-] batch-write-item.rst
[edit]
[-] list-tables.rst
[edit]
[-] query.rst
[edit]
[-] describe-table.rst
[edit]
[-] create-table.rst
[edit]
[-] scan.rst
[edit]
[-] put-item.rst
[edit]
[-] delete-table.rst
[edit]