Used to explicitly designate an attribute to be an auto-generated counter updated unconditionally in DynamoDB. By default, the counter will start on 0 and increment with 1 for each subsequent calls to updateItem. By supplying a negative integer delta value, the attribute works as a decreasing counter.
Optional Element Summary
Optional Elements
longThe value to increment (positive) or decrement (negative) the counter with for each update.
longThe starting value of the counter.
Element Details
delta
long delta
The value to increment (positive) or decrement (negative) the counter with for each update.
- Default:
1L
startValue
long startValue
The starting value of the counter.
- Default:
0L