public void AutoScalingDeleteTags() { #region autoscaling-delete-tags-1 var response = client.DeleteTags(new DeleteTagsRequest { Tags = new List <Tag> { new Tag { Key = "Dept", ResourceId = "my-auto-scaling-group", ResourceType = "auto-scaling-group", Value = "Research" } } }); #endregion }
private Amazon.AutoScaling.Model.DeleteTagsResponse CallAWSServiceOperation(IAmazonAutoScaling client, Amazon.AutoScaling.Model.DeleteTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Auto Scaling", "DeleteTags"); try { #if DESKTOP return(client.DeleteTags(request)); #elif CORECLR return(client.DeleteTagsAsync(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; } }