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

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

Introduction

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

Prototype

@Deprecated
void setEndpoint(String endpoint);

Source Link

Document

Overrides the default endpoint for this client ("https://dynamodb.us-east-1.amazonaws.com").

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 ww  .  j a  v  a 2 s  . c  om*/
        client.setRegion(RegionUtils.getRegion(regionOrUrl));
    }
}