Example usage for com.amazonaws.services.route53 AmazonRoute53Client setRegion

List of usage examples for com.amazonaws.services.route53 AmazonRoute53Client setRegion

Introduction

In this page you can find the example usage for com.amazonaws.services.route53 AmazonRoute53Client 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:com.netflix.bluespar.amazon.security.AmazonClientProvider.java

License:Apache License

public AmazonRoute53 getAmazonRoute53(AmazonCredentials credentials, String region) {
    AmazonRoute53Client amazonRoute53 = new AmazonRoute53Client(credentials.getCredentials());
    if (region != null && region.length() > 0) {
        amazonRoute53.setRegion(Region.getRegion(Regions.fromName(region)));
    }//from  w w  w . j av a  2  s.  c o m

    return amazonRoute53;
}