-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathalgorithm_arns.py
More file actions
21 lines (19 loc) · 1.99 KB
/
algorithm_arns.py
File metadata and controls
21 lines (19 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class AlgorithmArnProvider:
@staticmethod
def get_algorithm_arn(current_region):
mapping = {
"ap-northeast-1" : "arn:aws:sagemaker:ap-northeast-1:977537786026:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"ap-northeast-2" : "arn:aws:sagemaker:ap-northeast-2:745090734665:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"ap-southeast-1" : "arn:aws:sagemaker:ap-southeast-1:192199979996:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"ap-southeast-2" : "arn:aws:sagemaker:ap-southeast-2:666831318237:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"us-east-1" : "arn:aws:sagemaker:us-east-1:865070037744:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"eu-central-1" : "arn:aws:sagemaker:eu-central-1:446921602837:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"ap-south-1" : "arn:aws:sagemaker:ap-south-1:077584701553:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"ca-central-1" : "arn:aws:sagemaker:ca-central-1:470592106596:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"eu-west-1" : "arn:aws:sagemaker:eu-west-1:985815980388:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"eu-west-2" : "arn:aws:sagemaker:eu-west-2:856760150666:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"us-west-1" : "arn:aws:sagemaker:us-west-1:382657785993:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"us-east-2" : "arn:aws:sagemaker:us-east-2:057799348421:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657",
"us-west-2" : "arn:aws:sagemaker:us-west-2:594846645681:algorithm/h2oai-h2o3-automl-12nov2018-d34bd03cd62a9cba0f596e8318e32657"
}
return mapping[current_region]