Managing a subscription
Written by
Updated at September 12, 2025
Updating a subscription
Management console
AWS CLI
AWS SDK for Python
- In the management console
, select the folder containing the topic. - In the list of services, select Cloud Notification Service.
- Select Topics on the left.
- Select the topic containing the subscription.
- Select Subscriptions on the left.
- Select the subscription and specify the new settings.
- Click Save changes.
- View the list of subscriptions for the topic:
aws sns set-subscription-attributes \ --subscription-arn **subscription_ARN** <attributes> - Update the subscription:
aws sns set-subscription-attributes \ --subscription-arn **subscription_ARN** <attributes> - View the new subscription settings:
aws sns get-subscription-attributes \ --subscription-arn **subscription_ARN**
For more information about the set-subscription-attributes
To update a subscription, use the code below:
try:
response = sns.set_subscription_attributes(
SubscriptionArn='<subscription_arn>',
AttributeName='<attribute_name>',
AttributeValue='<new_value>'
)
Deleting a subscription
Management console
AWS CLI
AWS SDK for Python
- In the management console
, select the folder containing the topic. - In the list of services, select Cloud Notification Service.
- Select Topics on the left.
- Select the topic containing the subscription.
- Select Subscriptions on the left.
- Click
next to the subscription and select Delete. - Confirm the deletion.
Run this command:
aws sns unsubscribe --subscription-arn **subscription_ARN**
For more information about the aws sns unsubscribe command, see the AWS documentation
Use the following code:
try:
response = sns.unsubscribe(
SubscriptionArn='**subscription_ARN**'
Deleting a subscription does not delete the endpoint associated with it.