Skip to content

/AWS1/CL_SNS=>ADDPERMISSION()

About AddPermission

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

To remove the ability to change topic permissions, you must deny permissions to the AddPermission, RemovePermission, and SetTopicAttributes actions in your IAM policy.

Method Signature

IMPORTING

Required arguments:

IV_TOPICARN TYPE /AWS1/SNSTOPICARN /AWS1/SNSTOPICARN

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

IV_LABEL TYPE /AWS1/SNSLABEL /AWS1/SNSLABEL

A unique identifier for the new policy statement.

IT_AWSACCOUNTID TYPE /AWS1/CL_SNSDELEGATESLIST_W=>TT_DELEGATESLIST TT_DELEGATESLIST

The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.

IT_ACTIONNAME TYPE /AWS1/CL_SNSACTIONSLIST_W=>TT_ACTIONSLIST TT_ACTIONSLIST

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

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