Example usage for com.amazonaws.services.elasticbeanstalk AWSElasticBeanstalkClient setRegion

List of usage examples for com.amazonaws.services.elasticbeanstalk AWSElasticBeanstalkClient setRegion

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticbeanstalk AWSElasticBeanstalkClient 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:org.xmlsh.aws.gradle.elasticbeanstalk.AwsBeanstalkPluginExtension.java

License:BSD License

private AWSElasticBeanstalk initClient() {
    AwsPluginExtension aws = project.getExtensions().getByType(AwsPluginExtension.class);
    AWSElasticBeanstalkClient client = aws.createClient(AWSElasticBeanstalkClient.class, profileName);
    client.setRegion(aws.getActiveRegion(region));
    return client;
}