I have a DynamoDB table whose items have these attributes: id, user, status. Status can take values A or B.
- Is it possible to trigger a lambda based on only the value of attribute 'status' ?
Example, trigger the lambda when a new item is added to DDB with status == A or when the status of an existing item is updated to A. (I am looking into DynamoDB streams for achieving this, but I have not come across an example where anyone is using it for this use case.)
- Is it possible to monitor a DDB based on value of a certain attribute ?
Example, when status == B, I don't want to trigger lambda, but only emit a metrics for that row. Basically, I want to have a metrics to see how many items in the table have status == B at a given point.
If not from DynamoDB , are the above two possible for any other storage type ?