Skip to content

AWS SimpleDB Example

Timothy Kay edited this page Jul 15, 2014 · 2 revisions

Here is an example of SimpleDB, including the use of NextToken. It seems important to use --xml on the select, so that NextToken is displayed with newlines. (The NextToken does not seem to work without the newlines, as the grid display corrupts the value.)

aws create-domain timkay
aws patt timkay -i testItem -n testName -v testValue
aws -v patt timkay -i secondItem -n testName -v testValue
aws --xml select 'select testItem from timkay'
aws -v --xml select 'select testItem from timkay limit 1' --next 'rO0ABXNyACdjb20uYW1hem9uLnNkcy5RdWVyeVByb2Nlc3Nvci5Nb3JlVG9rZW7racXLnINNqwMA
> C0kAFGluaXRpYWxDb25qdW5jdEluZGV4WgAOaXNQYWdlQm91bmRhcnlKAAxsYXN0RW50aXR5SURa
> AApscnFFbmFibGVkSQAPcXVlcnlDb21wbGV4aXR5SgATcXVlcnlTdHJpbmdDaGVja3N1bUkACnVu
> aW9uSW5kZXhaAA11c2VRdWVyeUluZGV4TAANY29uc2lzdGVudExTTnQAEkxqYXZhL2xhbmcvU3Ry
> aW5nO0wAEmxhc3RBdHRyaWJ1dGVWYWx1ZXEAfgABTAAJc29ydE9yZGVydAAvTGNvbS9hbWF6b24v
> c2RzL1F1ZXJ5UHJvY2Vzc29yL1F1ZXJ5JFNvcnRPcmRlcjt4cAAAAAAAAAAAAAAAAAEAAAAAAAAA
> AAAAAAAAAAAAAABwcHB4'