This commit is contained in:
Terry Cain 2017-09-26 19:55:44 +01:00
commit f9c8836d54
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
4 changed files with 19 additions and 0 deletions

10
moto/batch/urls.py Normal file
View file

@ -0,0 +1,10 @@
from __future__ import unicode_literals
from .responses import BatchResponse
url_bases = [
"https?://batch.(.+).amazonaws.com",
]
url_paths = {
'{0}/$': BatchResponse.dispatch,
}

6
moto/batch/utils.py Normal file
View file

@ -0,0 +1,6 @@
from __future__ import unicode_literals
import uuid
def make_arn_for_topic(account_id, name, region_name):
return "arn:aws:sns:{0}:{1}:{2}".format(region_name, account_id, name)