Example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient setRegion

List of usage examples for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient setRegion

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2 AmazonDynamoDBAsyncClient setRegion.

Prototype

@Deprecated
void setRegion(Region region);

Source Link

Document

An alternative to AmazonDynamoDB#setEndpoint(String) , sets the regional endpoint for this client's service calls.

Usage

From source file:io.fineo.drill.exec.store.dynamo.config.DynamoEndpoint.java

License:Apache License

@JsonIgnore
public void configure(AmazonDynamoDBAsyncClient client) {
    // set the region or the url, depending on the format
    if (regionOrUrl.contains(":")) {
        client.setEndpoint(regionOrUrl);
    } else {//from w w  w  .j a  v  a  2s .  com
        client.setRegion(RegionUtils.getRegion(regionOrUrl));
    }
}