sns_topics: Create, delete and manage your topic

Description Usage Arguments Examples

Description

Create and delete a topic in your SNS account. Display name is optional and only appears when you send emails. If you want to modify or insert a display name in a topic that already exist, use rename_display_name().

Usage

1
2
3
4
5
6
create_topic(topic_name, display_name = NULL, suppress_output = FALSE,
  profile = "default")

delete_topic(topic, profile = "default")

rename_display_name(topic, display_name, profile = "default")

Arguments

topic_name

Your topic name. Must contain only alphanumeric characters hyphens (-), or underscores (_).

display_name

(optional) The name that will display when you send an email. The display name won't appear in SMS. Display name cannot be greater than 10.

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.

topic

A topic name or topic ARN.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
 # create a topic
 create_topic(topic_name = "your_topic_name",
              display_name = "testing")

 # rename display name
 rename_display_name(topic = "your_topic_name",
                     display_name = "testing_2")

 # delete your topic
 delete_topic(topic = "your_topic_name")

## End(Not run)

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