Add basic SNS support.
This commit is contained in:
parent
955b4c6c4a
commit
216750c05b
10 changed files with 517 additions and 0 deletions
10
moto/sns/utils.py
Normal file
10
moto/sns/utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import uuid
|
||||
|
||||
|
||||
def make_arn_for_topic(account_id, name):
|
||||
return "arn:aws:sns:us-east-1:{}:{}".format(account_id, name)
|
||||
|
||||
|
||||
def make_arn_for_subscription(topic_arn):
|
||||
subscription_id = uuid.uuid4()
|
||||
return "{}:{}".format(topic_arn, subscription_id)
|
||||
Loading…
Add table
Add a link
Reference in a new issue