Item Editing
Create, edit, and delete DynamoDB items with support for all DynamoDB attribute types.
Item Inspector
Click any item row in the DynamoDB table to open the inspector panel on the right side. The inspector displays all attributes for the selected item with type-appropriate formatting.
Key Attributes
The top of the inspector shows the item’s primary key:
- Partition key — the attribute name and value, displayed as selectable text for easy copying
- Sort key — if the table has a composite key, the sort key attribute and value are shown below the partition key
Attribute Display
Item attributes are rendered in a structured view:
- String (S) — displayed as plain text
- Number (N) — displayed as a numeric value
- Boolean (BOOL) — displayed as true/false with a toggle indicator
- Null (NULL) — displayed as a null badge
- List (L) — displayed as an expandable tree with indexed entries
- Map (M) — displayed as an expandable tree with named entries
- StringSet (SS) — displayed as a list of string values
- NumberSet (NS) — displayed as a list of numeric values
- BinarySet (BS) — displayed as a list of base64-encoded values
- Binary (B) — displayed as a base64-encoded string
Maps and Lists can be nested to any depth. Expand or collapse nodes to navigate complex item structures.
Editing Items
Click Edit to enter edit mode. In this mode you can modify attribute values, add new attributes, and remove existing attributes.
Modifying Values
Click any attribute value to edit it. The editor adapts to the attribute type:
- Strings open a text field
- Numbers open a numeric input
- Booleans toggle between true and false
- Lists and Maps allow editing individual entries or adding new child entries
Adding Attributes
- Click the + button in the inspector toolbar.
- Enter the attribute name.
- Select the type from the dropdown: String, Number, Boolean, Null, List, Map, StringSet, NumberSet, Binary, or BinarySet.
- Enter the value.
- The new attribute appears in the inspector.
Removing Attributes
Click the trash icon next to any non-key attribute to remove it. Key attributes (partition key and sort key) cannot be removed.
Key Constraints
The partition key and sort key values are read-only in edit mode. DynamoDB does not support modifying an item’s primary key. To change an item’s key, delete the existing item and create a new one with the desired key values.
Saving Changes
Click Save to commit the changes. Stackpane sends an UpdateItem request to DynamoDB with the modified attributes. Click Cancel to discard all changes and return to read mode.
Creating Items
Create a new item in the current table:
- Click the + button in the toolbar and select Create Item.
- Enter the partition key value (required).
- Enter the sort key value if the table has a composite key.
- Add additional attributes using the attribute editor.
- Click Create.
Stackpane sends a PutItem request to DynamoDB. The new item appears in the table immediately. If an item with the same primary key already exists, DynamoDB replaces it — Stackpane warns you before overwriting.
Deleting Items
Single Item
- Select an item in the table.
- Click Delete in the inspector panel.
- Confirm the deletion in the dialog.
Stackpane sends a DeleteItem request using the item’s primary key.
Batch Delete
Select multiple items using selection mode and delete them in bulk:
- Toggle selection mode from the toolbar.
- Select the items you want to delete using checkboxes.
- Click Delete Selected in the bulk action bar.
- Confirm the deletion in the dialog.
Stackpane uses BatchWriteItem to delete items in batches of up to 25 (the DynamoDB batch limit). A progress indicator shows the deletion status for larger selections.
DynamoDB Attribute Types Reference
| Type | Code | Example |
|---|---|---|
| String | S | "hello" |
| Number | N | 42, 3.14 |
| Binary | B | Base64-encoded bytes |
| Boolean | BOOL | true, false |
| Null | NULL | null |
| List | L | ["a", 1, true] |
| Map | M | {"name": "Alice", "age": 30} |
| String Set | SS | ["a", "b", "c"] |
| Number Set | NS | [1, 2, 3] |
| Binary Set | BS | Base64-encoded byte arrays |
DynamoDB stores items in a JSON-like wire format with explicit type annotations. Stackpane handles the conversion between the wire format and a human-readable display automatically.
Item Size Limit
DynamoDB enforces a maximum item size of 400 KB. Stackpane displays an estimated item size in the inspector and shows a warning when an item approaches this limit during editing.