Skip to content

Commit bc785e5

Browse files
authored
chore: add new partition (#3564)
1 parent 885280d commit bc785e5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

samtranslator/region_configuration.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ def is_apigw_edge_configuration_supported(cls) -> bool:
1818
:return: True, if API Gateway does not support Edge configuration
1919
"""
2020

21-
return ArnGenerator.get_partition_name() not in [
22-
"aws-us-gov",
23-
"aws-iso",
24-
"aws-iso-b",
25-
"aws-cn",
26-
]
21+
return ArnGenerator.get_partition_name() not in ["aws-us-gov", "aws-iso", "aws-iso-b", "aws-cn", "aws-iso-e"]
2722

2823
@classmethod
2924
def is_service_supported(cls, service, region=None): # type: ignore[no-untyped-def]

samtranslator/translator/arn_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def _region_to_partition(region: str) -> str:
2525
return "aws-iso-b"
2626
if region_string.startswith("us-gov"):
2727
return "aws-us-gov"
28+
if region_string.startswith("eu-isoe"):
29+
return "aws-iso-e"
2830

2931
return "aws"
3032

tests/unit/test_region_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_when_apigw_edge_configuration_supported(self, partition):
2626
["aws-us-gov"],
2727
["aws-iso"],
2828
["aws-iso-b"],
29+
["aws-iso-e"],
2930
]
3031
)
3132
def test_when_apigw_edge_configuration_is_not_supported(self, partition):

tests/unit/translator/test_arn_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class TestArnGenerator(TestCase):
1414
["us-gov-west-1", "aws-us-gov"],
1515
["us-iso-east-1", "aws-iso"],
1616
["us-isob-east-1", "aws-iso-b"],
17+
["eu-isoe-west-1", "aws-iso-e"],
1718
]
1819
)
1920
def test_get_partition_name(self, region, expected_partition):
@@ -27,6 +28,7 @@ def test_get_partition_name(self, region, expected_partition):
2728
["us-gov-west-1", "aws-us-gov"],
2829
["us-iso-east-1", "aws-iso"],
2930
["us-isob-east-1", "aws-iso-b"],
31+
["eu-isoe-west-1", "aws-iso-e"],
3032
]
3133
)
3234
def test_get_partition_name_when_region_not_provided(self, region, expected_partition):

0 commit comments

Comments
 (0)