/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
.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->/aws1/if_sns~addpermission(
it_actionname = VALUE /aws1/cl_snsactionslist_w=>tt_actionslist(
( new /aws1/cl_snsactionslist_w( |string| ) )
)
it_awsaccountid = VALUE /aws1/cl_snsdelegateslist_w=>tt_delegateslist(
( new /aws1/cl_snsdelegateslist_w( |string| ) )
)
iv_label = |string|
iv_topicarn = |string|
).