use of com.amazonaws.services.elasticloadbalancing.model.DescribeTagsResult in project SimianArmy by Netflix.
the class AWSClient method describeElasticLoadBalancerTags.
/**
* Retreive the tags for a specific ELB.
*
* @param name the ELB names
* @return the ELBs
*/
public List<TagDescription> describeElasticLoadBalancerTags(String name) {
LOGGER.info(String.format("Getting tags for ELB with name '%s' in region %s.", name, region));
AmazonElasticLoadBalancingClient elbClient = elbClient();
DescribeTagsRequest request = new DescribeTagsRequest().withLoadBalancerNames(name);
DescribeTagsResult result = elbClient.describeTags(request);
LOGGER.info(String.format("Got tags for ELB with name '%s' in region %s.", name, region));
return result.getTagDescriptions();
}
Aggregations