aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

EPIC: DynamoDB MVP

Open brmur opened this issue 3 years ago • 0 comments

Implement the scenario and API examples from DynamoDB.

Scenario

Movie database (taken from the examples in Getting Started with the AWS SDKs)

  1. Create a table with partition: year (N) and sort: title (S) (CreateTable)
  2. Add a new movie. (PutItem)
  3. Update the rating and plot of the movie by using an update expression. (UpdateItem with UpdateExpression + ExpressionAttributeValues args)
  4. Put movies in the table from moviedata.json--download it from the DynamoDB guide. OK to include manual download and unzip steps in your example README. This is a large file so limit the number of movies to 250 or so. (BatchWriteItem)
  5. Get a movie by Key (partition + sort) (GetItem)
  6. Delete a movie. (DeleteItem)
  7. Use Query with a key condition expression to return all movies released in a given year. (Query + KeyConditionExpression arg)
  8. Use Scan to return movies released within a range of years. Show how to paginate data using ExclusiveStartKey. (Scan + FilterExpression)
  9. Delete the table. (DeleteTable)

Actions

Include single-action examples for each of these.

  • [x] CreateTable
  • [x] ListTables
  • [x] DeleteTable
  • [x] PutItem
  • [x] GetItem
  • [x] UpdateItem
  • [x] #3498
  • [x] Query
  • [x] Scan
  • [x] BatchWriteItem
  • [ ] BatchGetItem

SDKs

Basic APIs

  • [x] #2765
  • [x] #2784
  • [x] #2766
  • [x] #2785
  • [x] #2771
  • [ ] #2767
  • [ ] #3498
  • [x] #2768
  • [x] #2769
  • [x] #2770

Requirements:

  • [ ] Runnable scenario code.
  • [ ] Service action code (may be same as scenario code).
  • [ ] Unit tests.
  • [ ] Scenario and API examples tagged for SOS.
  • [ ] README

brmur avatar Jan 27 '22 18:01 brmur