HEX
Server: Apache
System: Linux vps28526 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
User: heewonvps_17 (6705002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/examples/sns/create-topic.rst
**To create an SNS topic**

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

    aws sns create-topic \
        --name my-topic

Output::

    {
        "ResponseMetadata": {
            "RequestId": "1469e8d7-1642-564e-b85d-a19b4b341f83"
        },
        "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 <http://docs.aws.amazon.com/cli/latest/userguide/cli-sqs-queue-sns-topic.html>`__ in the *AWS Command Line Interface User Guide*.