Using Console
Using CLI
aws sns list-subscriptions
aws sns set-subscription-attributes --subscription-arn <subscription-arn> --attribute-name DeliveryPolicy --attribute-value '{"http":{"defaultHealthyRetryPolicy":{"minDelayTarget":20,"maxDelayTarget":20,"numRetries":3,"numMaxDelayRetries":0,"numNoDelayRetries":0,"numMinDelayRetries":0,"backoffFunction":"linear"}},"https":{"defaultHealthyRetryPolicy":{"minDelayTarget":20,"maxDelayTarget":20,"numRetries":3,"numMaxDelayRetries":0,"numNoDelayRetries":0,"numMinDelayRetries":0,"backoffFunction":"linear"}}}'
Replace <subscription-arn>
with the ARN of the subscription that needs to be updated.
aws sns get-subscription-attributes --subscription-arn <subscription-arn>
This command will return the attributes of the subscription. Verify that the DeliveryPolicy
attribute has been updated with the new value.
Using Python
set_subscription_attributes
method: