public void ElasticLoadBalancingDescribeTags() { #region elb-describe-tags-1 var response = client.DescribeTags(new DescribeTagsRequest { LoadBalancerNames = new List <string> { "my-load-balancer" } }); List <TagDescription> tagDescriptions = response.TagDescriptions; #endregion }
private Amazon.ElasticLoadBalancing.Model.DescribeTagsResponse CallAWSServiceOperation(IAmazonElasticLoadBalancing client, Amazon.ElasticLoadBalancing.Model.DescribeTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing", "DescribeTags"); try { #if DESKTOP return(client.DescribeTags(request)); #elif CORECLR return(client.DescribeTagsAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }