Example usage for com.amazonaws.services.simpledb AmazonSimpleDBClient setRegion

List of usage examples for com.amazonaws.services.simpledb AmazonSimpleDBClient setRegion

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb AmazonSimpleDBClient setRegion.

Prototype

@Deprecated
public void setRegion(Region region) throws IllegalArgumentException 

Source Link

Document

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

Usage

From source file:pl.worker.Main.java

public static void putToSDB(String file) {
    AmazonSimpleDBClient simpleDB = new AmazonSimpleDBClient();
    simpleDB.setRegion(Region.getRegion(Regions.US_WEST_2));
    simpleDB.putAttributes(new PutAttributesRequest("leszczynska_project", "Przetworzono plik",
            Arrays.asList(new ReplaceableAttribute("key", file, Boolean.FALSE))));
}