public void ElasticLoadBalancingRemoveTags() { #region elb-remove-tags-1 var response = client.RemoveTags(new RemoveTagsRequest { LoadBalancerNames = new List <string> { "my-load-balancer" }, Tags = new List <TagKeyOnly> { new TagKeyOnly { Key = "project" } } }); #endregion }
private Amazon.ElasticLoadBalancing.Model.RemoveTagsResponse CallAWSServiceOperation(IAmazonElasticLoadBalancing client, Amazon.ElasticLoadBalancing.Model.RemoveTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing", "RemoveTags"); try { #if DESKTOP return(client.RemoveTags(request)); #elif CORECLR return(client.RemoveTagsAsync(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; } }