Skip to content

Commit 8e836e0

Browse files
authored
Added the new AWS regions availables (#30)
1 parent a374581 commit 8e836e0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Sources/AWSLambdaEvents/AWSRegion.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,26 @@ public struct AWSRegion: RawRepresentable, Equatable {
2626
}
2727

2828
static var all: [AWSRegion] = [
29+
Self.af_south_1,
2930
Self.ap_northeast_1,
3031
Self.ap_northeast_2,
3132
Self.ap_east_1,
3233
Self.ap_southeast_1,
3334
Self.ap_southeast_2,
35+
Self.ap_southeast_3,
36+
Self.ap_southeast_4,
3437
Self.ap_south_1,
38+
Self.ap_south_2,
3539
Self.cn_north_1,
3640
Self.cn_northwest_1,
3741
Self.eu_north_1,
42+
Self.eu_south_1,
43+
Self.eu_south_2,
3844
Self.eu_west_1,
3945
Self.eu_west_2,
4046
Self.eu_west_3,
4147
Self.eu_central_1,
48+
Self.eu_central_2,
4249
Self.us_east_1,
4350
Self.us_east_2,
4451
Self.us_west_1,
@@ -47,24 +54,33 @@ public struct AWSRegion: RawRepresentable, Equatable {
4754
Self.us_gov_west_1,
4855
Self.ca_central_1,
4956
Self.sa_east_1,
57+
Self.me_central_1,
5058
Self.me_south_1,
5159
]
5260

61+
public static var af_south_1: Self { AWSRegion(rawValue: "af-south-1")! }
62+
5363
public static var ap_northeast_1: Self { AWSRegion(rawValue: "ap-northeast-1")! }
5464
public static var ap_northeast_2: Self { AWSRegion(rawValue: "ap-northeast-2")! }
5565
public static var ap_east_1: Self { AWSRegion(rawValue: "ap-east-1")! }
5666
public static var ap_southeast_1: Self { AWSRegion(rawValue: "ap-southeast-1")! }
5767
public static var ap_southeast_2: Self { AWSRegion(rawValue: "ap-southeast-2")! }
68+
public static var ap_southeast_3: Self { AWSRegion(rawValue: "ap-southeast-3")! }
69+
public static var ap_southeast_4: Self { AWSRegion(rawValue: "ap-southeast-4")! }
5870
public static var ap_south_1: Self { AWSRegion(rawValue: "ap-south-1")! }
71+
public static var ap_south_2: Self { AWSRegion(rawValue: "ap-south-2")! }
5972

6073
public static var cn_north_1: Self { AWSRegion(rawValue: "cn-north-1")! }
6174
public static var cn_northwest_1: Self { AWSRegion(rawValue: "cn-northwest-1")! }
6275

6376
public static var eu_north_1: Self { AWSRegion(rawValue: "eu-north-1")! }
77+
public static var eu_south_1: Self { AWSRegion(rawValue: "eu-south-1")! }
78+
public static var eu_south_2: Self { AWSRegion(rawValue: "eu-south-2")! }
6479
public static var eu_west_1: Self { AWSRegion(rawValue: "eu-west-1")! }
6580
public static var eu_west_2: Self { AWSRegion(rawValue: "eu-west-2")! }
6681
public static var eu_west_3: Self { AWSRegion(rawValue: "eu-west-3")! }
6782
public static var eu_central_1: Self { AWSRegion(rawValue: "eu-central-1")! }
83+
public static var eu_central_2: Self { AWSRegion(rawValue: "eu-central-2")! }
6884

6985
public static var us_east_1: Self { AWSRegion(rawValue: "us-east-1")! }
7086
public static var us_east_2: Self { AWSRegion(rawValue: "us-east-2")! }
@@ -75,6 +91,7 @@ public struct AWSRegion: RawRepresentable, Equatable {
7591

7692
public static var ca_central_1: Self { AWSRegion(rawValue: "ca-central-1")! }
7793
public static var sa_east_1: Self { AWSRegion(rawValue: "sa-east-1")! }
94+
public static var me_central_1: Self { AWSRegion(rawValue: "me-central-1")! }
7895
public static var me_south_1: Self { AWSRegion(rawValue: "me-south-1")! }
7996
}
8097

0 commit comments

Comments
 (0)