I'm writing code to send an OTP message. My current parameters and publish method look as follows:
params = {
Message: otpMessage,
MessageStructure: 'string',
PhoneNumber: contactNo
};
sns.publish(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
How do I set the TTL attribute?