I'm using AWS Pinpoint to send to and receive SMS from customers. I have set up Two-way SMS in AWS PinPoint, which will receive SMS from customers using SNS topic and have a lambda as a subscriber to the topic to process the SMS from the customer.
My question is: How do I prevent a customer to send too many sms to our phone number?