remove_permission

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'
)
Parameters
  • TopicArn (string) --

    [REQUIRED]

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

  • Label (string) --

    [REQUIRED]

    The unique label of the statement you want to remove.

Returns

None

Exceptions

  • SNS.Client.exceptions.InvalidParameterException
  • SNS.Client.exceptions.InternalErrorException
  • SNS.Client.exceptions.AuthorizationErrorException
  • SNS.Client.exceptions.NotFoundException