Skip to content

Commit

Permalink
Merge pull request #1976 from svc-93/patch-1
Browse files Browse the repository at this point in the history
Include ap-southeast-3 in AWS Regions
  • Loading branch information
iliana committed Apr 20, 2022
2 parents e9d9214 + ae7f34e commit 37bac10
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 37bac10

Please sign in to comment.