AWS SDK for .NET
Developer Guide

This documentation is for version 2.0 of the AWS SDK for .NET. For the latest version, see the AWS SDK for .NET Developer Guide for version 3.

AWS Region Selection

AWS regions allow you to access AWS services that reside physically in a specific geographic region. This can be useful both for redundancy and to keep your data and applications running close to where you and your users will access them. To select a particular region, configure the AWS client object with an endpoint that corresponds to that region.

For example:

AmazonEC2Config config = new AmazonEC2Config();
config.ServiceURL = "https://us-east-1.amazonaws.com";
Amazon.Runtime.AWSCredentials credentials = new Amazon.Runtime.StoredProfileAWSCredentials("profile_name");
AmazonEC2Client ec2 = new AmazonEC2Client(credentials, config);

You can also specify the region using the RegionEndpoint class. Here is an example that instantiates an Amazon EC2 client using AWSClientFactory and specifies the region:

Amazon.Runtime.AWSCredentials credentials = new Amazon.Runtime.StoredProfileAWSCredentials("profile_name");
AmazonEC2Client ec2 = AWSClientFactory.CreateAmazonEC2Client(
   credentials, RegionEndpoint.USEast1 );

Regions are isolated from each other. For example, you can't access US East resources when using the EU West region. If your code needs access to multiple AWS regions, we recommend that you create a client specific to each region.

Regions are logically isolated from each other; you can't access another region's resources when communicating with the China (Beijing) Region endpoint.

Go to Regions and Endpoints in the Amazon Web Services General Reference to view the current list of regions and corresponding endpoints for each of the services offered by AWS.