如何设置C#.NET SDK的EndPoint/Region:EC2Client? [英] How to set the EndPoint / Region for the C# .NET SDK : EC2Client?

查看:107
本文介绍了如何设置C#.NET SDK的EndPoint/Region:EC2Client?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JAVA SDK中可以设置端点,请参见这里.

In the JAVA SDK it's possible to set the endpoint, see here.

但是对于.NET SDK,该如何做呢?以及要使用的名称是什么?

But how to do this for .NET SDK ? And what are the names to use?

因为似乎总是使用默认端点美国东部(弗吉尼亚北部)地区".

Because it seems that a default endpoint "US East (Northern Virginia) Region" is always used.

推荐答案

可以找到此处.

并举例说明如何连接到欧盟:

And example how to connect to EU:

AmazonEC2 ec2 = AWSClientFactory.CreateAmazonEC2Client("key", "secret",
    new AmazonEC2Config
    {
        ServiceURL = "http://ec2.eu-west-1.amazonaws.com"
    }
);

这篇关于如何设置C#.NET SDK的EndPoint/Region:EC2Client?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆