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

sns-set-topic-attributes

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

Sets a new value on an attribute of a topic.

Syntax

Copy
sns-set-topic-attributes TopicArn --attribute-name value [--attribute-value value ] [General Options]

Options

Name Description Required

TopicArn

The ARN of the topic to be modified.

Yes

AttributeName

The name of the topic attribute to be modified.

Valid values: Policy | DisplayName

Yes

AttributeValue

The new value for the topic attribute.

Yes

Output

Returns a message stating that the attribute was set.

Examples

Example Request

This example gives the DisplayName attribute the value of Foo for a topic with ARN arn:aws:sns:us-east-1:365928882516:Foo.

Copy
$PROMPT> sns-set-topic-attributes arn:aws:sns:us-east-1:365928882516:Foo --attribute-name DisplayName --attribute-value Foo

Example Response

Copy
Attribute set.