CmdID

CmdID / aws / aws sns

aws sns create-topic

Creates a topic to which notifications can be published. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create an SNS topic

The following create-topic example creates an SNS topic named my-topic.

aws sns create-topic --name my-topicIdentify
--nameThe name of the topic you want to create.
Its output
{
    "TopicArn": "arn:aws:sns:us-west-2:123456789012:my-topic"
}

For more information, see Using the AWS Command Line Interface with Amazon SQS and Amazon SNS in the AWS Command Line Interface User Guide.

Options

4 in the AWS CLI reference
--attributesA map of attributes with their corresponding values.
--data-protection-policyAmazon SNS message data protection is no longer available to new customers.
--nameThe name of the topic you want to create.
--tagsThe list of tags to add to a new topic.