Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Setting the AWS Region for the AWS SDK for C++

Focus mode
Setting the AWS Region for the AWS SDK for C++ - AWS SDK for C++

You can access AWS services that operate in a specific geographic area by using AWS 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 AWS 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 AWS config file or environment variables, see AWS Region in the AWS SDKs and Tools Reference Guide.

You must set a default AWS Region for the AWS SDK for C++ to use for AWS 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 Service client configuration.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.