DynamoDB provides the following operations for creating, updating, and deleting an item from a table:
- PutItem
- UpdateItem
- DeleteItem
For performing any of these operations, you need to specify the complete primary key. If the table has just a partition key, you can provide the partition key. If the table has a composite key, you need to provide both the partition key as well as the sort key. Providing just the partition key or the sort key alone does not work for these operations. You need to specify both the keys for the composite key table.
If you want the operation to return the write capacity consumed by the operation, you can set the ReturnConsumedCapacity parameter with one of the following values:
- TOTAL: Indicates the total number of write capacity units consumed by the operation.
- INDEXES: Indicates the total number of write capacity...