List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBClientBuilder standard
public static AmazonSimpleDBClientBuilder standard()
From source file:org.wildfly.camel.test.common.aws.SDBUtils.java
License:Apache License
public static AmazonSimpleDBClient createDBClient() { BasicCredentialsProvider credentials = BasicCredentialsProvider.standard(); AmazonSimpleDBClient client = !credentials.isValid() ? null : (AmazonSimpleDBClient) AmazonSimpleDBClientBuilder.standard().withCredentials(credentials) .withRegion("eu-west-1").build(); return client; }
From source file:squash.booking.lambdas.core.OptimisticPersister.java
License:Apache License
/** * Returns a SimpleDB database client.//from w ww . j a v a 2 s .c o m */ protected AmazonSimpleDB getSimpleDBClient() { // Use a getter here so unit tests can substitute a mock client AmazonSimpleDB client = AmazonSimpleDBClientBuilder.standard().withRegion(region.getName()).build(); return client; }