Skip to content

Commit 1bfd8eb

Browse files
authored
Merge pull request #1017 from Tristano8/2025-region-update
amazonka-core: Add regions
2 parents 1f48062 + 44e5565 commit 1bfd8eb

File tree

6 files changed

+46
-5
lines changed

6 files changed

+46
-5
lines changed

lib/amazonka-core/src/Amazonka/Types.hs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,17 @@ module Amazonka.Types
130130
HongKong,
131131
Hyderabad,
132132
Jakarta,
133+
Malaysia,
133134
Melbourne,
134135
Mumbai,
135136
Osaka,
136137
Seoul,
137138
Singapore,
138139
Sydney,
140+
Thailand,
139141
Tokyo,
140142
Montreal,
143+
Calgary,
141144
Frankfurt,
142145
Ireland,
143146
London,
@@ -146,6 +149,7 @@ module Amazonka.Types
146149
Spain,
147150
Stockholm,
148151
Zurich,
152+
TelAviv,
149153
Bahrain,
150154
UAE,
151155
SaoPaulo,
@@ -876,6 +880,9 @@ pattern Hyderabad = Region' "ap-south-2"
876880
pattern Jakarta :: Region
877881
pattern Jakarta = Region' "ap-southeast-3"
878882

883+
pattern Malaysia :: Region
884+
pattern Malaysia = Region' "ap-southeast-5"
885+
879886
pattern Melbourne :: Region
880887
pattern Melbourne = Region' "ap-southeast-4"
881888

@@ -894,6 +901,9 @@ pattern Singapore = Region' "ap-southeast-1"
894901
pattern Sydney :: Region
895902
pattern Sydney = Region' "ap-southeast-2"
896903

904+
pattern Thailand :: Region
905+
pattern Thailand = Region' "ap-southeast-7"
906+
897907
pattern Tokyo :: Region
898908
pattern Tokyo = Region' "ap-northeast-1"
899909

@@ -902,6 +912,9 @@ pattern Tokyo = Region' "ap-northeast-1"
902912
pattern Montreal :: Region
903913
pattern Montreal = Region' "ca-central-1"
904914

915+
pattern Calgary :: Region
916+
pattern Calgary = Region' "ca-west-1"
917+
905918
-- Europe
906919

907920
pattern Frankfurt :: Region
@@ -928,6 +941,11 @@ pattern Stockholm = Region' "eu-north-1"
928941
pattern Zurich :: Region
929942
pattern Zurich = Region' "eu-central-2"
930943

944+
-- Israel
945+
946+
pattern TelAviv :: Region
947+
pattern TelAviv = Region' "il-central-1"
948+
931949
-- Middle East
932950

933951
pattern Bahrain :: Region
@@ -966,14 +984,17 @@ pattern Ningxia = Region' "cn-northwest-1"
966984
HongKong,
967985
Hyderabad,
968986
Jakarta,
987+
Malaysia,
969988
Melbourne,
970989
Mumbai,
971990
Osaka,
972991
Seoul,
973992
Singapore,
974993
Sydney,
994+
Thailand,
975995
Tokyo,
976996
Montreal,
997+
Calgary,
977998
Frankfurt,
978999
Ireland,
9791000
London,
@@ -982,6 +1003,7 @@ pattern Ningxia = Region' "cn-northwest-1"
9821003
Spain,
9831004
Stockholm,
9841005
Zurich,
1006+
TelAviv,
9851007
Bahrain,
9861008
UAE,
9871009
SaoPaulo,

lib/amazonka/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Changed
66

7+
- `amazonka-core`: Add regions: `Malaysia` (`ap-southeast-5`), `Thailand` (`ap-southeast-7`), `Calgary` (`ca-west-1`), and `TelAviv` (`il-central-1`)
8+
[\#1017](https://github.com/brendanhay/amazonka/pull/1017)
79
- Depend on `microlens`, `microlens-pro` and `microlens-contra` instead of the full `lens` package (thanks @mankykitty).
810
[\#996](https://github.com/brendanhay/amazonka/pull/996)
911
- `amazonka-s3`: `objectKey_keyComponents` has a new type `Delimiter -> Traversal' ObjectKey Text` instead of returning `IndexedTraversal' ObjectKey Text`. `lens` users can rebuild the `IndexedTraversal'` with [`Control.Lens.Indexed.indexing`](https://hackage.haskell.org/package/lens-5.3.2/docs/Control-Lens-Indexed.html#v:indexing). `optics` uses can use one of the following:

lib/services/amazonka-elb/src/Amazonka/ELB/Internal.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import Amazonka.Data
2525
-- @logdelivery.elasticloadbalancing.amazonaws.com@ principal.
2626
--
2727
-- /See:/ <http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy Attach a Policy to Your S3 Bucket>.
28+
-- /See:/ <https://docs.amazonaws.cn/en_us/elasticloadbalancing/latest/application/enable-access-logging.html#attach-bucket-policy Attach a Policy to Your S3 Bucket (China)>
2829
getAccountId :: Region -> Maybe Text
2930
getAccountId = \case
3031
NorthVirginia -> Just "127311923021"
@@ -52,4 +53,4 @@ getAccountId = \case
5253
GovCloudEast -> Just "190560391635"
5354
Beijing -> Just "638102146993"
5455
Ningxia -> Just "037604701340"
55-
_other -> Nothing
56+
_ -> Nothing

lib/services/amazonka-redshift/src/Amazonka/Redshift/Internal.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ getAccountId = \case
6060
-- services for you, and may appear in your CloudTrail logs.
6161
--
6262
-- /See:/ <https://docs.aws.amazon.com/redshift/latest/mgmt/logging-with-cloudtrail.html#cloudtrail-rs-acct-ids Amazon Redshift account IDs in AWS CloudTrail logs>
63+
-- /See:/ <https://docs.amazonaws.cn/en_us/redshift/latest/mgmt/logging-with-cloudtrail.html#cloudtrail-rs-acct-ids Amazon Redshift account IDs in AWS CloudTrail logs (includes China)>
6364
getCloudTrailAccountId :: Region -> Maybe Text
6465
getCloudTrailAccountId = \case
6566
NorthVirginia -> Just "368064434614"
@@ -70,6 +71,7 @@ getCloudTrailAccountId = \case
7071
HongKong -> Just "651179539253"
7172
Hyderabad -> Just "297058826802"
7273
Jakarta -> Just "623197973179"
74+
Malaysia -> Just "590184011157"
7375
Melbourne -> Just "945512339897"
7476
Mumbai -> Just "408097707231"
7577
Osaka -> Just "398671365691"
@@ -78,14 +80,18 @@ getCloudTrailAccountId = \case
7880
Sydney -> Just "485979073181"
7981
Tokyo -> Just "615915377779"
8082
Montreal -> Just "764870610256"
83+
Calgary -> Just "830903446466"
84+
Beijing -> Just "066403562008"
85+
Ningxia -> Just "194116488714"
8186
Frankfurt -> Just "434091160558"
8287
Ireland -> Just "246478207311"
8388
London -> Just "885798887673"
8489
Milan -> Just "041313461515"
8590
Paris -> Just "694668203235"
91+
Spain -> Just "028811157404"
8692
Stockholm -> Just "553461782468"
8793
Zurich -> Just "668912161003"
88-
Spain -> Just "028811157404"
94+
TelAviv -> Just "901883065212"
8995
Bahrain -> Just "051362938876"
9096
UAE -> Just "595013617770"
9197
SaoPaulo -> Just "392442076723"

lib/services/amazonka-route53/src/Amazonka/Route53/Internal.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,27 @@ getHostedZoneId = \case
7878
HongKong -> Just "ZNB98KWMFR0R6"
7979
Hyderabad -> Just "Z02976202B4EZMXIPMXF7"
8080
Jakarta -> Just "Z01846753K324LI26A3VV"
81+
Malaysia -> Just "Z08660063OXLMA7F1FJHU"
8182
Melbourne -> Just "Z0312387243XT5FE14WFO"
8283
Mumbai -> Just "Z11RGJOFQNVJUP"
8384
Osaka -> Just "Z2YQB5RD63NC85"
8485
Seoul -> Just "Z3W03O7B5YMIYP"
8586
Singapore -> Just "Z3O0J2DXBE1FTB"
8687
Sydney -> Just "Z1WCIGYICN2BYD"
88+
Thailand -> Just "Z0031014GXUMRZG6I14G"
8789
Tokyo -> Just "Z2M4EHUR26P7ZW"
8890
Montreal -> Just "Z1QDHH18159H29"
91+
Calgary -> Just "Z03565811Z33SLEZTHOUL"
8992
Ningxia -> Just "Z282HJ1KT0DH03"
9093
Frankfurt -> Just "Z21DNDUVLTQW6Q"
9194
Ireland -> Just "Z1BKCTXD74EZPE"
9295
London -> Just "Z3GKZC51ZF0DB4"
9396
Milan -> Just "Z30OZKI7KPW7MI"
9497
Paris -> Just "Z3R1K369G5AVDG"
95-
Stockholm -> Just "Z3BAZG2TWCNX0D"
9698
Spain -> Just "Z0081959F7139GRJC19J"
99+
Stockholm -> Just "Z3BAZG2TWCNX0D"
97100
Zurich -> Just "Z030506016YDQGETNASS"
101+
TelAviv -> Just "Z09640613K4A3MN55U7GU"
98102
Bahrain -> Just "Z1MPMWCPA7YB62"
99103
UAE -> Just "Z06143092I8HRXZRUZROF"
100104
SaoPaulo -> Just "Z7KQH4QJS55SO"

lib/services/amazonka-s3/src/Amazonka/S3/Internal.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ _ObjectKeySnoc dir !c = prism (ObjectKey . uncurry cat) split
276276
-- this region-specific website endpoint.
277277
--
278278
-- /See:/ <https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints Amazon Simple Storage Service Website Endpoints>.
279+
-- /See:/ <https://docs.amazonaws.cn/en_us/AmazonS3/latest/userguide/static-website-hosting-china.html>
279280
getWebsiteEndpoint :: Region -> Maybe Text
280281
getWebsiteEndpoint = \case
281282
Ohio -> Just "s3-website.us-east-2.amazonaws.com"
@@ -286,26 +287,31 @@ getWebsiteEndpoint = \case
286287
HongKong -> Just "s3-website.ap-east-1.amazonaws.com"
287288
Hyderabad -> Just "s3-website.ap-south-2.amazonaws.com"
288289
Jakarta -> Just "s3-website.ap-southeast-3.amazonaws.com"
290+
Malaysia -> Just "s3-website.ap-southeast-5.amazonaws.com"
289291
Melbourne -> Just "s3-website.ap-southeast-4.amazonaws.com"
290292
Mumbai -> Just "s3-website.ap-south-1.amazonaws.com"
291293
Osaka -> Just "s3-website.ap-northeast-3.amazonaws.com"
292294
Seoul -> Just "s3-website.ap-northeast-2.amazonaws.com"
293295
Singapore -> Just "s3-website-ap-southeast-1.amazonaws.com"
294296
Sydney -> Just "s3-website-ap-southeast-2.amazonaws.com"
297+
Thailand -> Just "s3-website.ap-southeast-7.amazonaws.com"
295298
Tokyo -> Just "s3-website-ap-northeast-1.amazonaws.com"
296299
Montreal -> Just "s3-website.ca-central-1.amazonaws.com"
297-
Ningxia -> Just "s3-website.cn-northwest-1.amazonaws.com.cn"
300+
Calgary -> Just "s3-website.ca-west-1.amazonaws.com"
298301
Frankfurt -> Just "s3-website.eu-central-1.amazonaws.com"
299302
Ireland -> Just "s3-website-eu-west-1.amazonaws.com"
300303
London -> Just "s3-website.eu-west-2.amazonaws.com"
301304
Milan -> Just "s3-website.eu-south-1.amazonaws.com"
302305
Paris -> Just "s3-website.eu-west-3.amazonaws.com"
303-
Stockholm -> Just "s3-website.eu-north-1.amazonaws.com"
304306
Spain -> Just "s3-website.eu-south-2.amazonaws.com"
307+
Stockholm -> Just "s3-website.eu-north-1.amazonaws.com"
305308
Zurich -> Just "s3-website.eu-central-2.amazonaws.com"
309+
TelAviv -> Just "s3-website.il-central-1.amazonaws.com"
306310
Bahrain -> Just "s3-website.me-south-1.amazonaws.com"
307311
UAE -> Just "s3-website.me-central-1.amazonaws.com"
308312
SaoPaulo -> Just "s3-website-sa-east-1.amazonaws.com"
309313
GovCloudEast -> Just "s3-website.us-gov-east-1.amazonaws.com"
310314
GovCloudWest -> Just "s3-website-us-gov-west-1.amazonaws.com"
315+
Beijing -> Just "s3-website.cn-north-1.amazonaws.com.cn"
316+
Ningxia -> Just "s3-website.cn-northwest-1.amazonaws.com.cn"
311317
Region' _ -> Nothing

0 commit comments

Comments
 (0)