Skip to content
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

Include ap-southeast-3 in AWS Regions #1976

Merged
merged 1 commit into from Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions rusoto/signature/src/region.rs
Expand Up @@ -58,6 +58,9 @@ pub enum Region {

/// Region that covers the South-Eastern part of Asia Pacific
ApSoutheast2,

/// Region that covers the South-Eastern part of Asia Pacific
ApSoutheast3,

/// Region that covers Canada
CaCentral1,
Expand Down Expand Up @@ -144,6 +147,7 @@ impl Region {
Region::ApSouth1 => "ap-south-1",
Region::ApSoutheast1 => "ap-southeast-1",
Region::ApSoutheast2 => "ap-southeast-2",
Region::ApSoutheast3 => "ap-southeast-3",
Region::CaCentral1 => "ca-central-1",
Region::EuCentral1 => "eu-central-1",
Region::EuWest1 => "eu-west-1",
Expand Down Expand Up @@ -244,6 +248,7 @@ impl FromStr for Region {
"ap-south-1" | "apsouth1" => Ok(Region::ApSouth1),
"ap-southeast-1" | "apsoutheast1" => Ok(Region::ApSoutheast1),
"ap-southeast-2" | "apsoutheast2" => Ok(Region::ApSoutheast2),
"ap-southeast-3" | "apsoutheast3" => Ok(Region::ApSoutheast3),
"ca-central-1" | "cacentral1" => Ok(Region::CaCentral1),
"eu-central-1" | "eucentral1" => Ok(Region::EuCentral1),
"eu-west-1" | "euwest1" => Ok(Region::EuWest1),
Expand Down Expand Up @@ -319,6 +324,7 @@ mod tests {
assert_eq!("ap-south-1".parse(), Ok(Region::ApSouth1));
assert_eq!("ap-southeast-1".parse(), Ok(Region::ApSoutheast1));
assert_eq!("ap-southeast-2".parse(), Ok(Region::ApSoutheast2));
assert_eq!("ap-southeast-3".parse(), Ok(Region::ApSoutheast3));
assert_eq!("ca-central-1".parse(), Ok(Region::CaCentral1));
assert_eq!("eu-central-1".parse(), Ok(Region::EuCentral1));
assert_eq!("eu-west-1".parse(), Ok(Region::EuWest1));
Expand Down Expand Up @@ -348,6 +354,7 @@ mod tests {
assert_tokens(&Region::ApSouth1, &tokens_for_region("ap-south-1"));
assert_tokens(&Region::ApSoutheast1, &tokens_for_region("ap-southeast-1"));
assert_tokens(&Region::ApSoutheast2, &tokens_for_region("ap-southeast-2"));
assert_tokens(&Region::ApSoutheast3, &tokens_for_region("ap-southeast-3"));
assert_tokens(&Region::CaCentral1, &tokens_for_region("ca-central-1"));
assert_tokens(&Region::EuCentral1, &tokens_for_region("eu-central-1"));
assert_tokens(&Region::EuWest1, &tokens_for_region("eu-west-1"));
Expand Down