12 lines
299 B
Python
12 lines
299 B
Python
from __future__ import unicode_literals
|
|
import uuid
|
|
|
|
|
|
def make_arn_for_topic(account_id, name):
|
|
return "arn:aws:sns:us-east-1:{0}:{1}".format(account_id, name)
|
|
|
|
|
|
def make_arn_for_subscription(topic_arn):
|
|
subscription_id = uuid.uuid4()
|
|
return "{0}:{1}".format(topic_arn, subscription_id)
|