topics: Manage topics

create_topicR Documentation

Manage topics

Description

Create, delete, and list topics

Usage

create_topic(name, ...)

delete_topic(topic, ...)

list_topics(token, ...)

Arguments

name

A character string containing a (private) name for the topic.

...

Additional arguments passed to snsHTTP.

topic

A character string containing an SNS Topic Amazon Resource Name (ARN).

token

A paging paramter used to return additional pages of results. This will be available in the “NextToken” attribute of a previous call to list_topics.

Details

create_topic creates a new topic. The name is a private name for the topic. Use set_topic_attrs to set a publicly visible name for the topic. delete_topic deletes a named topic. list_topics lists all currently available topics.

list_topics lists topics. Up to 100 subscriptions are returned by each request. The token argument can be used to return additional results.

Value

For create_topic: If successful, a character string containing an SNS Topic ARN. Otherwise, a data structure of class “aws_error” containing any error message(s) from AWS and information about the request attempt. For delete_topic: If successful, a logical TRUE. Otherwise, a data structure of class “aws_error” containing any error message(s) from AWS and information about the request attempt. For list_topics: If successful, a data frame. Otherwise, a data structure of class “aws_error” containing any error message(s) from AWS and information about the request attempt.

Author(s)

Thomas J. Leeper

References

CreateTopic DeleteTopic ListTopics

See Also

delete_topic

Examples

## Not run: 
  top <- create_topic("new_topic")
  get_topic_attrs(top)
  list_topics()
  delete_topic(top)

## End(Not run)

cloudyr/aws.sns documentation built on June 26, 2022, 4:04 a.m.