Package io.awspring.cloud.sns.sms
Interface SnsSmsOperations
- All Known Implementing Classes:
SnsSmsTemplate
public interface SnsSmsOperations
High level SNS operations for sending SMS.
Read more in the official AWS documentation:
- Since:
- 3.0.0
- Author:
- Matej Nedic
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidSends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.voidsend(String phoneNumber, String message, SmsMessageAttributes attributes) Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.default voidsendToTopicArn(String topicArn, String message) Sends SMS to a topic to which phone numbers are subscribed.voidsendToTopicArn(String topicArn, String message, SmsMessageAttributes attributes) Sends SMS to a topic to which phone numbers are subscribed.
-
Method Details
-
send
Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.- Parameters:
phoneNumber- - phone number to receive a message in E.164 format (for example +14155552671)message- - content of the SMSattributes- - the message attributes
-
send
Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.- Parameters:
phoneNumber- - phone number to receive a message in E.164 format (for example +14155552671)message- - content of the SMS
-
sendToTopicArn
Sends SMS to a topic to which phone numbers are subscribed.- Parameters:
topicArn- - the topic ARNmessage- - content of the SMSattributes- - the message attributes
-
sendToTopicArn
Sends SMS to a topic to which phone numbers are subscribed.- Parameters:
topicArn- - the topic ARNmessage- - content of the SMS
-