Menu
Amazon Simple Notification Service
CLI Reference (API Version 2010-03-31)

sns-remove-permission

The Amazon SNS CLI has been deprecated and is no longer supported. Please use the AWS Unified CLI or the AWS Tools for Windows PowerShell instead. To map the old SNS CLI commands to the AWS Unified CLI or PowerShell, see Migrating Amazon SNS CLI Commands to AWS CLI and PowerShell Commands.

Description

Removes a specific statement from the topic's access control policy.

Syntax

Copy
sns-remove-permission TopicArn --label value [General Options]

Options

Name Description Required

TopicArn

The ARN of the topic to be modified.

Yes

--label

The unique statement ID of the access control policy statement to be removed.

Yes

Output

Returns a message stating that the request succeeded.

Example

This example removes permissions associated with label fooPublish from topic ARN arn:aws:sns:us-east-1:365928882516:Foo.

Copy
$PROMPT> sns-remove-permission arn:aws:sns:us-east-1:365928882516:Foo --label fooPublish