I am new to AWS lambda and have a doubt in mind. I have a dynamodb table("People") and in that table I have one attribute called "SeniorCitizen". By default the attribute is set to Yes/No based on another attribute "Age".
At some point of time Age attribute gets updated on the table and based on that I want my lambda function to be triggered to update the SeniorCitizen attribute value from No to Yes if Age gets passed 60 for a particular person.
So how can I set my trigger to check the age in the table when the table gets updated and trigger my lambda function to perform the actual update of SeniorCitizen attribute?