SNS / Client / add_permission
add_permission#
- SNS.Client.add_permission(**kwargs)#
Adds a statement to a topic’s access control policy, granting access for the specified Amazon Web Services accounts to the specified actions.
Note
To remove the ability to change topic permissions, you must deny permissions to the
AddPermission
,RemovePermission
, andSetTopicAttributes
actions in your IAM policy.See also: AWS API Documentation
Request Syntax
response = client.add_permission( TopicArn='string', Label='string', AWSAccountId=[ 'string', ], ActionName=[ 'string', ] )
- Parameters:
TopicArn (string) –
[REQUIRED]
The ARN of the topic whose access control policy you wish to modify.
Label (string) –
[REQUIRED]
A unique identifier for the new policy statement.
AWSAccountId (list) –
[REQUIRED]
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.
(string) –
ActionName (list) –
[REQUIRED]
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example
Publish
.(string) –
- Returns:
None
Exceptions