开发者

Amazon S3 - set Region to EU using Java AWS SDK

开发者 https://www.devze.com 2023-01-02 07:51 出处:网络
I am in Europe. How do I set the Region to EU (ireland) when using AmazonS3Client to co开发者_开发技巧py files?The Amazon S3 Region enum is very helpful for looking up the different Amazon S3 endpoint

I am in Europe. How do I set the Region to EU (ireland) when using AmazonS3Client to co开发者_开发技巧py files?


The Amazon S3 Region enum is very helpful for looking up the different Amazon S3 endpoints: http://docs.amazonwebservices.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/Region.html

After you find the right endpoint for EU, just call setEndpoint on your AmazonS3 client object.

0

精彩评论

暂无评论...
验证码 换一张
取 消