Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

remove_permission

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