Learn R Programming

aws.sns (version 0.1.7)

add_topic_permission: Add/remove access permissions

Description

Add/remove permissions to publish to topic

Usage

add_topic_permission(topic, label, permissions, ...)

remove_topic_permission(topic, label, ...)

Arguments

topic

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

label

A character string containing a label for the permission.

permissions

A named list of character strings, where the names of the list are AWS Account ID numbers and the list elements are SNS API endpoints (e.g. “Publish”, “Subscribe”, “Unsubscribe”, etc.).

...

Additional arguments passed to snsHTTP.

Value

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.

Details

Add or remove a permission, which grants another AWS account permission to use an SNS topic.

References

AddPermission RemovePermission