sns_add_permission: Adds a statement to a topic's access control policy, granting...

Description Usage Arguments Value Request syntax

View source: R/sns_operations.R

Description

Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.

Usage

1
sns_add_permission(TopicArn, Label, AWSAccountId, ActionName)

Arguments

TopicArn

[required] The ARN of the topic whose access control policy you wish to modify.

Label

[required] A unique identifier for the new policy statement.

AWSAccountId

[required] The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

ActionName

[required] The action you want to allow for the specified principal(s).

Valid values: Any Amazon SNS action name, for example publish.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
svc$add_permission(
  TopicArn = "string",
  Label = "string",
  AWSAccountId = list(
    "string"
  ),
  ActionName = list(
    "string"
  )
)

paws.application.integration documentation built on Aug. 23, 2021, 9:20 a.m.