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
Examples
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
--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.