mirror of https://github.com/apache/jclouds.git
JCLOUDS-766: Add eu-central-1 to AWS S3 regions
Also clean up some missing and duplicated properties.
This commit is contained in:
parent
dd670f3f78
commit
c18371a793
|
@ -110,7 +110,7 @@ public class Region {
|
|||
*/
|
||||
public static final String AP_NORTHEAST_1 = "ap-northeast-1";
|
||||
|
||||
public static final Set<String> DEFAULT_S3 = ImmutableSet.of(US_STANDARD, US_WEST_1, US_WEST_2, EU_WEST_1, SA_EAST_1,
|
||||
public static final Set<String> DEFAULT_S3 = ImmutableSet.of(US_STANDARD, US_WEST_1, US_WEST_2, EU_WEST_1, EU_CENTRAL_1, SA_EAST_1,
|
||||
AP_SOUTHEAST_1, AP_SOUTHEAST_2, AP_NORTHEAST_1);
|
||||
|
||||
public static final Set<String> DEFAULT_REGIONS = ImmutableSet.of(US_EAST_1, US_WEST_1, US_WEST_2, SA_EAST_1,
|
||||
|
@ -121,9 +121,8 @@ public class Region {
|
|||
Properties properties = regionProperties();
|
||||
properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
|
||||
// note that due to US_STANDARD the codes include US instead of US-VA
|
||||
properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,SG,AU-NSW,JP-13");
|
||||
properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,DE-HE,SG,AU-NSW,JP-13");
|
||||
properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
|
||||
properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ISO3166_CODES, "IE");
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ import static org.jclouds.Constants.PROPERTY_ENDPOINT;
|
|||
import static org.jclouds.aws.domain.Region.AP_NORTHEAST_1;
|
||||
import static org.jclouds.aws.domain.Region.AP_SOUTHEAST_1;
|
||||
import static org.jclouds.aws.domain.Region.AP_SOUTHEAST_2;
|
||||
import static org.jclouds.aws.domain.Region.EU_CENTRAL_1;
|
||||
import static org.jclouds.aws.domain.Region.EU_WEST_1;
|
||||
import static org.jclouds.aws.domain.Region.SA_EAST_1;
|
||||
import static org.jclouds.aws.domain.Region.US_STANDARD;
|
||||
|
@ -69,6 +70,8 @@ public class AWSS3ProviderMetadata extends BaseProviderMetadata {
|
|||
properties.setProperty(PROPERTY_REGION + "." + US_WEST_1 + "." + ENDPOINT, "https://s3-us-west-1.amazonaws.com");
|
||||
properties.setProperty(PROPERTY_REGION + "." + US_WEST_2 + "." + ENDPOINT, "https://s3-us-west-2.amazonaws.com");
|
||||
properties.setProperty(PROPERTY_REGION + "." + SA_EAST_1 + "." + ENDPOINT, "https://s3-sa-east-1.amazonaws.com");
|
||||
properties.setProperty(PROPERTY_REGION + "." + EU_CENTRAL_1 + "." + ENDPOINT,
|
||||
"https://s3-eu-central-1.amazonaws.com");
|
||||
properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ENDPOINT, "https://s3-eu-west-1.amazonaws.com");
|
||||
properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_1 + "." + ENDPOINT,
|
||||
"https://s3-ap-southeast-1.amazonaws.com");
|
||||
|
@ -88,7 +91,7 @@ public class AWSS3ProviderMetadata extends BaseProviderMetadata {
|
|||
.homepage(URI.create("http://aws.amazon.com/s3"))
|
||||
.console(URI.create("https://console.aws.amazon.com/s3/home"))
|
||||
.linkedServices("aws-ec2", "aws-elb", "aws-cloudwatch", "aws-s3", "aws-simpledb")
|
||||
.iso3166Codes("US", "US-CA", "US-OR", "BR-SP", "IE", "SG", "AU-NSW", "JP-13")
|
||||
.iso3166Codes("US", "US-CA", "US-OR", "BR-SP", "IE", "DE-HE", "SG", "AU-NSW", "JP-13")
|
||||
.defaultProperties(AWSS3ProviderMetadata.defaultProperties());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue