I have a DynamoDB table with one attribute as a primary key ItemName
.
Every attribute that is added to the table is named using the current UTC timestamp.
I want to do a conditional deletion of the item when I delete the last attribute which will check if there's another attribute other than ItemName
and if there isn't I want to delete the item.
Is there anyway to do so?
Thanks.