List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBClient AmazonSimpleDBClient
AmazonSimpleDBClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled)
From source file:com.netflix.ice.common.AwsUtils.java
License:Apache License
public static AmazonSimpleDBClient getAmazonSimpleDBClient() { if (simpleDBClient == null) { simpleDBClient = new AmazonSimpleDBClient(awsCredentialsProvider, clientConfig); if (System.getProperty("EC2_REGION") != null && !"us-east-1".equals(System.getProperty("EC2_REGION"))) { if ("global".equals(System.getProperty("EC2_REGION"))) { simpleDBClient.setEndpoint("sdb.amazonaws.com"); } else { simpleDBClient.setEndpoint("sdb." + System.getProperty("EC2_REGION") + ".amazonaws.com"); }//from ww w. j a v a2 s.c o m } } return simpleDBClient; }