Implement support for sns delete_endpoint()
This commit is contained in:
parent
9c176671d0
commit
d34dd5b08a
3 changed files with 64 additions and 0 deletions
|
|
@ -252,6 +252,12 @@ class SNSBackend(BaseBackend):
|
|||
endpoint.attributes.update(attributes)
|
||||
return endpoint
|
||||
|
||||
def delete_endpoint(self, arn):
|
||||
try:
|
||||
del self.platform_endpoints[arn]
|
||||
except KeyError:
|
||||
raise SNSNotFoundError("Endpoint with arn {0} not found".format(arn))
|
||||
|
||||
|
||||
sns_backends = {}
|
||||
for region in boto.sns.regions():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue