14 lines
524 B
Python
14 lines
524 B
Python
from __future__ import unicode_literals
|
|
|
|
|
|
def make_arn_for_compute_env(account_id, name, region_name):
|
|
return "arn:aws:batch:{0}:{1}:compute-environment/{2}".format(region_name, account_id, name)
|
|
|
|
|
|
def make_arn_for_job_queue(account_id, name, region_name):
|
|
return "arn:aws:batch:{0}:{1}:job-queue/{2}".format(region_name, account_id, name)
|
|
|
|
|
|
def make_arn_for_task_def(account_id, name, revision, region_name):
|
|
return "arn:aws:batch:{0}:{1}:job-definition/{2}:{3}".format(region_name, account_id, name, revision)
|