Setting the Amazon Web Services Region for the Amazon SDK for C++ - Amazon SDK for C++
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Setting the Amazon Web Services Region for the Amazon SDK for C++

You can access Amazon Web Services services that operate in a specific geographic area by using Amazon Web Services Regions. This can be useful both for redundancy and to keep your data and applications running close to where you and your users access them.

Important

Most resources reside in a specific Amazon Web Services Region and you must supply the correct Region for the resource when using the SDK.

For examples on how to set the default region through the shared Amazon config file or environment variables, see Amazon Web Services Region in the Amazon SDKs and Tools Reference Guide.

You must set a default Amazon Web Services Region for the Amazon SDK for C++ to use for Amazon requests. This default is used for any SDK service method calls that aren't specified with a Region. In the SDK for C++, you can also set the default region using the Client configuration in code.