Skip to content

Commit

Permalink
AWS Regions. Summer 2024 (#59)
Browse files Browse the repository at this point in the history
* Added the new AWS regions availables

* Adding new AWS regions

* Fix the variable declaration
  • Loading branch information
fitomad authored Nov 7, 2024
1 parent ec7e66d commit 32a1d03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/AWSLambdaEvents/AWSRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public struct AWSRegion: RawRepresentable, Equatable, Sendable {
Self.af_south_1,
Self.ap_northeast_1,
Self.ap_northeast_2,
Self.ap_northeast_3,
Self.ap_east_1,
Self.ap_southeast_1,
Self.ap_southeast_2,
Expand All @@ -53,15 +54,18 @@ public struct AWSRegion: RawRepresentable, Equatable, Sendable {
Self.us_gov_east_1,
Self.us_gov_west_1,
Self.ca_central_1,
Self.ca_west_1,
Self.sa_east_1,
Self.me_central_1,
Self.me_south_1,
Self.il_central_1
]

public static var af_south_1: Self { AWSRegion(rawValue: "af-south-1")! }

public static var ap_northeast_1: Self { AWSRegion(rawValue: "ap-northeast-1")! }
public static var ap_northeast_2: Self { AWSRegion(rawValue: "ap-northeast-2")! }
public static var ap_northeast_3: Self { AWSRegion(rawValue: "ap-northeast-3")! }
public static var ap_east_1: Self { AWSRegion(rawValue: "ap-east-1")! }
public static var ap_southeast_1: Self { AWSRegion(rawValue: "ap-southeast-1")! }
public static var ap_southeast_2: Self { AWSRegion(rawValue: "ap-southeast-2")! }
Expand Down Expand Up @@ -90,9 +94,12 @@ public struct AWSRegion: RawRepresentable, Equatable, Sendable {
public static var us_gov_west_1: Self { AWSRegion(rawValue: "us-gov-west-1")! }

public static var ca_central_1: Self { AWSRegion(rawValue: "ca-central-1")! }
public static var ca_west_1: Self { AWSRegion(rawValue: "ca-west-1")! }
public static var sa_east_1: Self { AWSRegion(rawValue: "sa-east-1")! }
public static var me_central_1: Self { AWSRegion(rawValue: "me-central-1")! }
public static var me_south_1: Self { AWSRegion(rawValue: "me-south-1")! }

public static var il_central_1: Self { AWSRegion(rawValue: "il-central-1")! }
}

extension AWSRegion: Codable {
Expand Down

0 comments on commit 32a1d03

Please sign in to comment.