-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.7.12: Bumping version to 1.7.12 Update changelog with service updates Bumped CLI dependancy of bcdoc Add #1172 to the changelog Honor --endpoint-url in s3/s3api commands Remove unnecessary --recursive from sync command Update dependencies Update dependencies Prefix doc references with "cli:" Update event names to new bcdoc event names Add reference label and changed breadcrumbs Switched event class to use full name of command dynamo db examples Remove status code checks from s3 tests Update s3 end to end integration test to clients
- Loading branch information
Showing
34 changed files
with
736 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
**To retrieve multiple items from a table** | ||
|
||
This example reads multiple items from the *MusicCollection* table using a batch of three GetItem requests. Only the *AlbumTitle* attribute is returned. | ||
|
||
Command:: | ||
|
||
aws dynamodb batch-get-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": { | ||
"Keys": [ | ||
{ | ||
"Artist": {"S": "No One You Know"}, | ||
"SongTitle": {"S": "Call Me Today"} | ||
}, | ||
{ | ||
"Artist": {"S": "Acme Band"}, | ||
"SongTitle": {"S": "Happy Day"} | ||
}, | ||
{ | ||
"Artist": {"S": "No One You Know"}, | ||
"SongTitle": {"S": "Scared of My Shadow"} | ||
} | ||
], | ||
"ProjectionExpression":"AlbumTitle" | ||
} | ||
} | ||
|
||
Output:: | ||
|
||
{ | ||
"UnprocessedKeys": {}, | ||
"Responses": { | ||
"MusicCollection": [ | ||
{ | ||
"AlbumTitle": { | ||
"S": "Somewhat Famous" | ||
} | ||
}, | ||
{ | ||
"AlbumTitle": { | ||
"S": "Blue Sky Blues" | ||
} | ||
}, | ||
{ | ||
"AlbumTitle": { | ||
"S": "Louder Than Ever" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
**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": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
**To create a table** | ||
|
||
This example creates a table named *MusicCollection*. | ||
|
||
Command:: | ||
|
||
aws dynamodb create-table --table-name MusicCollection --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 | ||
|
||
Output:: | ||
|
||
{ | ||
"TableDescription": { | ||
"AttributeDefinitions": [ | ||
{ | ||
"AttributeName": "Artist", | ||
"AttributeType": "S" | ||
}, | ||
{ | ||
"AttributeName": "SongTitle", | ||
"AttributeType": "S" | ||
} | ||
], | ||
"ProvisionedThroughput": { | ||
"NumberOfDecreasesToday": 0, | ||
"WriteCapacityUnits": 5, | ||
"ReadCapacityUnits": 5 | ||
}, | ||
"TableSizeBytes": 0, | ||
"TableName": "MusicCollection", | ||
"TableStatus": "CREATING", | ||
"KeySchema": [ | ||
{ | ||
"KeyType": "HASH", | ||
"AttributeName": "Artist" | ||
}, | ||
{ | ||
"KeyType": "RANGE", | ||
"AttributeName": "SongTitle" | ||
} | ||
], | ||
"ItemCount": 0, | ||
"CreationDateTime": 1421866952.062 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**To delete an item** | ||
|
||
This example deletes an item from the *MusicCollection* table. | ||
|
||
Command:: | ||
|
||
aws dynamodb delete-item --table-name MusicCollection --key file://key.json | ||
|
||
The arguments for ``--key`` are stored in a JSON file, ``key.json``. Here are the contents of that file:: | ||
|
||
{ | ||
"Artist": {"S": "No One You Know"}, | ||
"SongTitle": {"S": "Scared of My Shadow"} | ||
} | ||
|
||
Output:: | ||
|
||
{ | ||
"ConsumedCapacity": { | ||
"CapacityUnits": 1.0, | ||
"TableName": "MusicCollection" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**To delete a table** | ||
|
||
This example deletes the *MusicCollection* table. | ||
|
||
Command:: | ||
|
||
aws dynamodb delete-table --table-name MusicCollection | ||
|
||
Output:: | ||
|
||
{ | ||
"TableDescription": { | ||
"TableStatus": "DELETING", | ||
"TableSizeBytes": 0, | ||
"ItemCount": 0, | ||
"TableName": "MusicCollection", | ||
"ProvisionedThroughput": { | ||
"NumberOfDecreasesToday": 0, | ||
"WriteCapacityUnits": 5, | ||
"ReadCapacityUnits": 5 | ||
} | ||
} | ||
} |
Oops, something went wrong.