-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.17.10: Bumping version to 1.17.10 Update changelog based on model updates Added new CLI examples for WAFv2 and DynamoDB New CLI examples for EC2 and Service Quotas Run tests not in verbose mode New CLI exampeles for EC2 and ECR Soft-deprecate `aws ecr get-login` adds `aws ecr get-login-password` customization
- Loading branch information
Showing
99 changed files
with
2,738 additions
and
581 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"category": "``workmail``", | ||
"description": "Update workmail command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``ssm``", | ||
"description": "Update ssm command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``kafka``", | ||
"description": "Update kafka command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``ec2``", | ||
"description": "Update ec2 command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``storagegateway``", | ||
"description": "Update storagegateway command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``cloudfront``", | ||
"description": "Update cloudfront command to latest version", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``iot``", | ||
"description": "Update iot command to latest version", | ||
"type": "api-change" | ||
} | ||
] |
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 |
---|---|---|
@@ -1,54 +1,55 @@ | ||
**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. | ||
The following ``batch-get-items`` example reads multiple items from the ``MusicCollection`` table using a batch of three ``GetItem`` requests. The command returns only the ``AlbumTitle`` attribute. :: | ||
|
||
Command:: | ||
aws dynamodb batch-get-item \ | ||
--request-items file://request-items.json | ||
|
||
aws dynamodb batch-get-item --request-items file://request-items.json | ||
Contents of ``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" | ||
} | ||
} | ||
{ | ||
"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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
{ | ||
"UnprocessedKeys": {}, | ||
"Responses": { | ||
"MusicCollection": [ | ||
{ | ||
"AlbumTitle": { | ||
"S": "Somewhat Famous" | ||
} | ||
}, | ||
{ | ||
"AlbumTitle": { | ||
"S": "Blue Sky Blues" | ||
} | ||
}, | ||
{ | ||
"AlbumTitle": { | ||
"S": "Louder Than Ever" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
|
||
For more information, see `Batch Operations <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.BatchOperations>`__ in the *Amazon DynamoDB Developer Guide*. |
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 |
---|---|---|
@@ -1,47 +1,48 @@ | ||
**To add multiple items to a table** | ||
|
||
This example adds three new items to the *MusicCollection* table using a batch of three PutItem requests. | ||
The following ``batch-write-item`` 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 | ||
|
||
aws dynamodb batch-write-item --request-items file://request-items.json | ||
Contents of ``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"} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
{ | ||
"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": {} | ||
} | ||
{ | ||
"UnprocessedItems": {} | ||
} | ||
For more information, see `Batch Operations <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.BatchOperations>`__ in the *Amazon DynamoDB Developer Guide*. |
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 |
---|---|---|
@@ -1,44 +1,48 @@ | ||
**To create a table** | ||
|
||
This example creates a table named *MusicCollection*. | ||
The following ``create-table`` example uses the specified attributes and key schema to create 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 | ||
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 | ||
} | ||
} | ||
{ | ||
"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 | ||
} | ||
} | ||
|
||
For more information, see `Basic Operations for Tables <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html>`__ in the *Amazon DynamoDB Developer Guide*. |
Oops, something went wrong.