Search in sources :

Example 1 with DescribeTagsResult

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();
}
Also used : DescribeTagsRequest(com.amazonaws.services.elasticloadbalancing.model.DescribeTagsRequest) DescribeTagsResult(com.amazonaws.services.elasticloadbalancing.model.DescribeTagsResult) AmazonElasticLoadBalancingClient(com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient)

Aggregations

AmazonElasticLoadBalancingClient (com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient)1 DescribeTagsRequest (com.amazonaws.services.elasticloadbalancing.model.DescribeTagsRequest)1 DescribeTagsResult (com.amazonaws.services.elasticloadbalancing.model.DescribeTagsResult)1