SNS.Client.remove_permission(**kwargs)¶Removes a statement from a topic's access control policy.
Note
To remove the ability to change topic permissions, you must deny permissions to the AddPermission , RemovePermission , and SetTopicAttributes actions in your IAM policy.
See also: AWS API Documentation
Request Syntax
response = client.remove_permission(
TopicArn='string',
Label='string'
)
[REQUIRED]
The ARN of the topic whose access control policy you wish to modify.
[REQUIRED]
The unique label of the statement you want to remove.
None
Exceptions
SNS.Client.exceptions.InvalidParameterExceptionSNS.Client.exceptions.InternalErrorExceptionSNS.Client.exceptions.AuthorizationErrorExceptionSNS.Client.exceptions.NotFoundException