fn parse_s3_region(s3_region: &str) -> Region {
        match &s3_region[..] {
            "ap-east-1" => Region::ApEast1,
            "ap-northeast-1" => Region::ApNortheast1,
            "ap-northeast-2" => Region::ApNortheast2,
            "ap-south-1" => Region::ApSouth1,
            "ap-southeast-1" => Region::ApSoutheast1,
            "ap-southeast-2" => Region::ApSoutheast2,
            "ca-central-1" => Region::CaCentral1,
            "eu-central-1" => Region::EuCentral1,
            "eu-west-1" => Region::EuWest1,
            "eu-west-2" => Region::EuWest2,
            "eu-west-3" => Region::EuWest3,
            "eu-north-1" => Region::EuNorth1,
            "sa-east-1" => Region::SaEast1,
            "us-east-1" => Region::UsEast1,
            "us-east-2" => Region::UsEast2,
            "us-west-1" => Region::UsWest1,
            "us-west-2" => Region::UsWest2,
            "us-gov-east-1" => Region::UsGovEast1,
            "us-gov-west-1" => Region::UsGovWest1,
            _ => Region::UsEast1,
        }
    }
// Parse aws region input into a Region object
Parse aws region input into a Region object
Parse aws region input into a Region object
fn parse_s3_region(s3_region: &str) -> Region {
        match &s3_region[..] {
            "ap-east-1" => Region::ApEast1,
            "ap-northeast-1" => Region::ApNortheast1,
            "ap-northeast-2" => Region::ApNortheast2,
            "ap-south-1" => Region::ApSouth1,
            "ap-southeast-1" => Region::ApSoutheast1,
            "ap-southeast-2" => Region::ApSoutheast2,
            "ca-central-1" => Region::CaCentral1,
            "eu-central-1" => Region::EuCentral1,
            "eu-west-1" => Region::EuWest1,
            "eu-west-2" => Region::EuWest2,
            "eu-west-3" => Region::EuWest3,
            "eu-north-1" => Region::EuNorth1,
            "sa-east-1" => Region::SaEast1,
            "us-east-1" => Region::UsEast1,
            "us-east-2" => Region::UsEast2,
            "us-west-1" => Region::UsWest1,
            "us-west-2" => Region::UsWest2,
            "us-gov-east-1" => Region::UsGovEast1,
            "us-gov-west-1" => Region::UsGovWest1,
            _ => Region::UsEast1,
        }
    }
fn parse_s3_region ( s3_region : & str ) -> Region { match & s3_region [ .. ] { " " => Region :: ApEast1 , " " => Region :: ApNortheast1 , " " => Region :: ApNortheast2 , " " => Region :: ApSouth1 , " " => Region :: ApSoutheast1 , " " => Region :: ApSoutheast2 , " " => Region :: CaCentral1 , " " => Region :: EuCentral1 , " " => Region :: EuWest1 , " " => Region :: EuWest2 , " " => Region :: EuWest3 , " " => Region :: EuNorth1 , " " => Region :: SaEast1 , " " => Region :: UsEast1 , " " => Region :: UsEast2 , " " => Region :: UsWest1 , " " => Region :: UsWest2 , " " => Region :: UsGovEast1 , " " => Region :: UsGovWest1 , _ => Region :: UsEast1 , } }
Parse aws region input into a Region object
Parse aws region input into a Region object
s3_region
&str
s3_region
&str