blob: 9bfeba1ad3665926950048d632bb4a5d8b987041 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/Core_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
/**
* AWS Regions
*/
namespace Region
{
// AWS_GLOBAL is a pseudo region that can be used to tell SDK to use the service global endpoint if there is any.
// You can specify this region to corresponding environment variable, config file item and in your code.
// For services without global region, the request will be directed to us-east-1
static const char AWS_GLOBAL[] = "aws-global";
static const char US_EAST_1[] = "us-east-1"; // US East (N. Virginia)
static const char US_EAST_2[] = "us-east-2"; // US East (Ohio)
static const char US_WEST_1[] = "us-west-1"; // US West (N. California)
static const char US_WEST_2[] = "us-west-2"; // US West (Oregon)
static const char EU_WEST_1[] = "eu-west-1"; // EU (Ireland)
static const char EU_WEST_2[] = "eu-west-2"; // EU (London)
static const char EU_WEST_3[] = "eu-west-3"; // EU (Paris)
static const char EU_CENTRAL_1[] = "eu-central-1"; // "EU (Frankfurt)
static const char EU_NORTH_1[] = "eu-north-1"; // EU (Stockholm)
static const char EU_SOUTH_1[] = "eu-south-1"; // EU (Milan)
static const char AP_EAST_1[] = "ap-east-1"; // Asia Pacific (Hong Kong)
static const char AP_SOUTH_1[] = "ap-south-1"; // Asia Pacific (Mumbai)
static const char AP_SOUTHEAST_1[] = "ap-southeast-1"; // Asia Pacific (Singapore)
static const char AP_SOUTHEAST_2[] = "ap-southeast-2"; // Asia Pacific (Sydney)
static const char AP_SOUTHEAST_3[] = "ap-southeast-3"; // Asia Pacific (Jakarta)
static const char AP_NORTHEAST_1[] = "ap-northeast-1"; // Asia Pacific (Tokyo)
static const char AP_NORTHEAST_2[] = "ap-northeast-2"; // Asia Pacific (Seoul)
static const char AP_NORTHEAST_3[] = "ap-northeast-3"; // Asia Pacific (Osaka)
static const char SA_EAST_1[] = "sa-east-1"; // South America (Sao Paulo
static const char CN_NORTH_1[] = "cn-north-1"; // China (Beijing)
static const char CN_NORTHWEST_1[] = "cn-northwest-1"; // China (Ningxia)
static const char CA_CENTRAL_1[] = "ca-central-1"; // Canada (Central)
static const char ME_SOUTH_1[] = "me-south-1"; // Middle East (Bahrain)
static const char ME_CENTRAL_1[] = "me-central-1"; // Middle East (UEA)
static const char AF_SOUTH_1[] = "af-south-1"; // Africa (Cape Town)
static const char US_GOV_WEST_1[] = "us-gov-west-1"; // AWS GovCloud (US-West)
static const char US_GOV_EAST_1[] = "us-gov-east-1"; // AWS GovCloud (US-East)
static const char US_ISO_EAST_1[] = "us-iso-east-1"; // US ISO East
static const char US_ISOB_EAST_1[] = "us-isob-east-1"; // US ISOB East (Ohio)
static const char US_ISO_WEST_1[] = "us-iso-west-1"; // US ISO West
// If a pseudo region, for example, aws-global or us-east-1-fips is provided, it should be converted to the region name used for signing.
Aws::String AWS_CORE_API ComputeSignerRegion(const Aws::String& region);
// A FIPs region starts with "fips-" or ends with "-fips".
bool AWS_CORE_API IsFipsRegion(const Aws::String& region);
}
} // namespace Aws
|