Example usage for com.amazonaws.services.simpledb AmazonSimpleDBClientBuilder standard

List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBClientBuilder standard

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb AmazonSimpleDBClientBuilder standard.

Prototype

public static AmazonSimpleDBClientBuilder standard() 

Source Link

Usage

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;
}