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

sns-create-topic

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

Creates a topic to which notifications can be published.

Syntax

Copy
sns-create-topic Name [General Options]

Options

Name Description Required

Name

Name of the topic to create.

Yes

Output

Returns the Topic ARN.

Examples

Example Request

This example creates a topic named Foo.

Copy
$PROMPT> sns-create-topic Foo

Example Response

This is an example of the output for this command.

Copy
TOPIC ARN arn:aws:sns:us-east-1:365928882516:Foo