Does Aws has feature to send failed sms messages to dead letter queue without using topic and subscriptions.
I know with using topic and subscription we can attach the dlq in redrive policy in subscription and then sns send the failed delivered messages to dlq by default.
But I am using aws lambda function consuming sns boto3 client and publishing SMS directly to phone number coming from my api gateway rather using topicarn.
I can’t find anyway to get the failed messages in dead letter queue in this scenario.
Requesting a quick help here.
response=sns_client.publish(PhoneNumber=number,
Message=sms_message,
MessageAttributes={'AWS.SNS.SMS.SenderID': {'DataType': 'String', 'StringValue': sender_id},
'AWS.SNS.SMS.SMSType': {'DataType': 'String', 'StringValue': 'Transactional'}}