Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • Getting started with topics
    • All guides
      • Create topic
      • Creating a subscription to a topic
      • Sending a notification to a topic
      • Managing a topic
      • Managing a subscription
    • Configuring logging
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Topics
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes

In this article:

  • Updating a topic
  • Deleting a topic
  1. Step-by-step operations
  2. Topics
  3. Managing a topic

Managing a topic

Written by
Yandex Cloud
Updated at September 12, 2025
  • Updating a topic
  • Deleting a topic

Updating a topicUpdating a topic

Management console
AWS CLI
AWS SDK for Python
  1. In the management console, select the folder containing the topic.
  2. In the list of services, select Cloud Notification Service.
  3. Select Topics on the left.
  4. Select the topic.
  5. At the top right, click Edit.
  6. Edit the topic name. The name must be unique within Cloud Notification Service.
  7. Under Logging, enable or disable Write logs.
  8. Update the existing log group or create a new one.
  9. Click Save changes.
  1. If you do not have the AWS CLI yet, install and configure it.

  2. Run this command:

    aws sns set-topic-attributes \
     --topic-arn <topic_ARN> <attributes>
    
  3. View the new topic settings:

    aws sns get-topic-attributes \
     --topic-arn <topic_ARN>
    

For more information about the set-topic-attributes and get-topic-attributes commands, see the AWS documentation.

  1. If you do not have the AWS SDK for Python (boto3) yet, install and configure it.

  2. To update a topic, use the code below:

    try:
      response = client.set_topic_attributes(
         TopicArn = "<topic_ARN>",
         AttributeName='<attribute_name>',
         AttributeValue='<attribute_value>'
      )
    print("Response metadata:", response['ResponseMetadata'])
    

Deleting a topicDeleting a topic

Management console
AWS CLI
AWS SDK for Python
  1. In the management console, select the folder containing the topic.
  2. In the list of services, select Cloud Notification Service.
  3. Select Topics on the left.
  4. Click next to the topic of interest and select Delete.
  5. Confirm the deletion.

Run this command:

aws sns delete-topic --topic-arn <topic_ARN>

For more information about the aws sns delete-topic command, see the AWS documentation.

Use the following code:

@staticmethod
  def delete_topic(topic):

      try:
          topic.delete()
          logger.info("Deleted topic %s.", topic.arn)
      except ClientError:
          logger.exception("Couldn't delete topic %s.", topic.arn)
          raise

Deleting a topic will also delete all its subscriptions. The endpoints associated with the subscriptions will remain. Topic deletion may take a while. You cannot create a new topic with the same name while the topic is being deleted.

Was the article helpful?

Previous
Sending a notification to a topic
Next
Managing a subscription
© 2025 Direct Cursus Technology L.L.C.