Amazon SNSのEmailの最後についてくるUnsubscribeのリンク
メーリングリスト宛に通知するなどの使い方をしている場合、誰かがUnsubscribeすると困っちゃう、それへの対応方法
--
If you wish to stop receiving notifications from this topic,
please click or visit the link below to unsubscribe:
https://sns.ap-northeast-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:ap-northeast-1:999999999999:xxxxxx:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Endpoint=user@example.com
Please do not reply directly to this email.
If you have any questions or comments regarding this email,
please contact us at https://aws.amazon.com/support
既に購読している場合は一旦解除し、再度購読要求を出す。
その時に発行されるTOKENを使い、次のAWSCLIで購読する。
--authenticate-on-unsubscribe true
とすると、topic所有者のみ購読解除が可能となる。
aws sns confirm-subscription --token token --topic-arn topic-arn --authenticate-on-unsubscribe true