订阅列表(aws sns list-subscriptions-by-topic
;用户界面也是)显示可能已取消订阅的订阅“已删除”。
{
"Subscriptions": [
{
"SubscriptionArn": "Deleted",
"Owner": "326764833890",
"Protocol": "email",
"Endpoint": "[email protected]",
"TopicArn": "arn:aws:sns:us-east-1:326764833890:my-sns"
},
{
"SubscriptionArn": "arn:aws:sns:us-east-1:326764833890:my-sns:65d23ee0-57e1-4ba5-86e7-2913bef8c9bf",
"Owner": "326764833890",
"Protocol": "email",
"Endpoint": "[email protected]",
"TopicArn": "arn:aws:sns:us-east-1:326764833890:my-sns"
}
]
}
因此,删除时没有任何用处。通过 UI 删除时,它会显示错误,抱怨 ARN 只有一部分而不是六部分。
答案1
看起来没有办法删除它们,但是,为同一端点创建一个新的订阅将会简单地替换它(一旦确认)。