diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp')
-rw-r--r-- | contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp index ae35d48e13..4b18bf2a2a 100644 --- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp +++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/Region.cpp @@ -1,36 +1,36 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include <aws/core/utils/memory/stl/AWSString.h> -#include <aws/core/Region.h> -namespace Aws -{ - namespace Region - { - Aws::String ComputeSignerRegion(const Aws::String& region) - { - if (region == Aws::Region::AWS_GLOBAL) - { - return Aws::Region::US_EAST_1; - } - else if (region == "s3-external-1") - { - return Aws::Region::US_EAST_1; - } - else if (region.size() >= 5 && region.compare(0, 5, "fips-") == 0) - { - return region.substr(5); - } - else if (region.size() >= 5 && region.compare(region.size() - 5, 5, "-fips") == 0) - { - return region.substr(0, region.size() - 5); - } - else - { - return region; - } - } - } -}
\ No newline at end of file +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include <aws/core/utils/memory/stl/AWSString.h> +#include <aws/core/Region.h> +namespace Aws +{ + namespace Region + { + Aws::String ComputeSignerRegion(const Aws::String& region) + { + if (region == Aws::Region::AWS_GLOBAL) + { + return Aws::Region::US_EAST_1; + } + else if (region == "s3-external-1") + { + return Aws::Region::US_EAST_1; + } + else if (region.size() >= 5 && region.compare(0, 5, "fips-") == 0) + { + return region.substr(5); + } + else if (region.size() >= 5 && region.compare(region.size() - 5, 5, "-fips") == 0) + { + return region.substr(0, region.size() - 5); + } + else + { + return region; + } + } + } +}
\ No newline at end of file |