Skip to content

AWS Regions. Summer 2024 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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