I am using AWS Java API for S3. The access key, secret key, bucket name, and region name are all provided to my application as environment variables.
I am not sure how to set the region name...I'm currently getting the AmazonS3Client
return new AmazonS3Client(new BasicAWSCredentials(accessKey, secretKey))
Can someone please tell me how to set the region name?