List of usage examples for com.amazonaws.services.autoscaling AmazonAutoScalingClient setEndpoint
@Deprecated
void setEndpoint(String endpoint);
From source file:com.liferay.amazontools.BaseAMITool.java
License:Open Source License
protected AmazonAutoScalingClient getAmazonAutoScalingClient(String accessKey, String secretKey, String endpoint) {//from ww w .j a v a 2s. co m AWSCredentials awsCredentials = new BasicAWSCredentials(accessKey, secretKey); AmazonAutoScalingClient amazonAutoScalingClient = new AmazonAutoScalingClient(awsCredentials); amazonAutoScalingClient.setEndpoint(endpoint); return amazonAutoScalingClient; }
From source file:com.netflix.simianarmy.aws.AWSClient.java
License:Apache License
/** * Amazon ASG client. Abstradted to aid testing. * * @return the amazon auto scaling client *//*from w w w. j av a 2 s.c o m*/ protected AmazonAutoScalingClient asgClient() { AmazonAutoScalingClient client = new AmazonAutoScalingClient(cred); client.setEndpoint("autoscaling." + region + ".amazonaws.com"); return client; }
From source file:com.netflix.simianarmy.client.aws.AWSClient.java
License:Apache License
/** * Amazon ASG client. Abstracted to aid testing. * * @return the Amazon Auto Scaling client *///from w ww. j a v a 2 s . c o m protected AmazonAutoScalingClient asgClient() { AmazonAutoScalingClient client; if (awsCredentialsProvider == null) { client = new AmazonAutoScalingClient(); } else { client = new AmazonAutoScalingClient(awsCredentialsProvider); } client.setEndpoint("autoscaling." + region + ".amazonaws.com"); return client; }