send_message: Send message to endpoints

Description Usage Arguments Examples

View source: R/send_message.R

Description

You can send messages for every endpoint in a topic or directly to a phone number. SMS is only available for profiles in us-east-1 region, you can verify your region profile using raws.profile::profile_settings("your profile").

Usage

1
2
send_message(topic = NULL, phone_number = NULL, message,
  subject = NULL, suppress_output = FALSE, profile = "default")

Arguments

topic

A topic name or topic ARN.

phone_number

Send a message directly to this phone number. This number doesn't need to be in a topic.

message

The massage you want to send.

subject

(optional) The message subject. Only available to "email" protocol.

suppress_output

Use TRUE if you don't want the output.

profile

Your profile name in AWS. If profile was not supplied this function will use the default profile.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# send a message to a topic
send_message(topic = "your_topic",
             subject = "testing",
             message = "This is a test message.")

# send a message directly to a phone number
send_message(phone_number = "+0081345678",
             message = "This is a test message.")

## End(Not run)

samuelmacedo83/raws.sns documentation built on May 23, 2019, 8:57 a.m.