Menu
Amazon DynamoDB
Developer Guide (API Version 2012-08-10)

Working with Items and Attributes

You can use the DynamoDB console to add, modify, and delete items in a table.

Adding an Item

  1. From the navigation pane on the left-hand side of the console, choose Tables.

  2. Choose the desired table name, and then choose the Items tab. In the following screenshot, the Reply table is shown.

  3. Choose Create Item.

    The Create item window lets you enter the required primary key attribute values. If the table has any secondary indexes, then you must also enter values for the index primary key values.

    The following screen shot shows the primary key attributes of the Reply table (Id and ReplyDateTime). Because there is a global secondary index on the table (PostedBy-Message-Index), its primary key attributes are also required (PostedBy and Message).

  4. If you want to add more attributes, choose the action menu to the left of Message. In the action menu, choose Append, and then choose the data type you want.

    Type the new attribute name and value in the fields provided.

    Repeat this step as often as needed if you want to add more attributes.

  5. When the item is as you want it, choose Save to add the new item to the table.

Deleting an Item

  1. From the navigation pane on the left-hand side of the console, choose Tables.

  2. Choose the desired table name, and then choose the Items tab.

  3. Select one or more items that you want to remove, and then choose Actions | Delete.

  4. In the Delete Item? dialog box, choose Yes, Delete.

Updating an Item

  1. From the navigation pane on the left-hand side of the console, choose Tables.

  2. Choose the desired table name, and then choose the Items tab.

  3. Select the item that you want to update, and then choose Actions | Edit.

  4. In the Edit Item window, change the desired attributes or values.

  5. When the item is as you want it, choose Save to write the item to the table.

Copying an Item

You can take an existing item, copy it, and then save the copied item with a new primary key.

  1. From the navigation pane on the left-hand side of the console, choose Tables.

  2. Choose the desired table name, and then choose the Items tab.

  3. Select the item that you want to copy, and then choose Actions | Duplicate.

  4. In the Copy Item window, change the desired attributes or values.

    You must choose different values for the table primary key attribute(s). If any secondary indexes are present, you must choose values for the index primary key attribute(s) too.

  5. When the item is as you want it, choose Save to write the item to the table.