List of usage examples for com.amazonaws.services.dynamodbv2 AmazonDynamoDB setRegion
@Deprecated
void setRegion(Region region);
From source file:uk.co.keithj.postcodelookup.infrastructure.repository.SpringDataDynamoDBConfigurator.java
License:Apache License
@Bean public AmazonDynamoDB amazonDynamoDB() { AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient(amazonAWSCredentials()); if (StringUtils.isNotEmpty(amazonDynamoDBEndpoint)) { amazonDynamoDB.setEndpoint(amazonDynamoDBEndpoint); }//from w ww . j a v a 2s . c o m amazonDynamoDB.setRegion(amazonRegion()); return amazonDynamoDB; }