public void Route53ChangeTagsForResource() { #region to-add-or-remove-tags-from-a-hosted-zone-or-health-check-1484084752409 var response = client.ChangeTagsForResource(new ChangeTagsForResourceRequest { AddTags = new List <Tag> { new Tag { Key = "apex", Value = "3874" }, new Tag { Key = "acme", Value = "4938" } }, RemoveTagKeys = new List <string> { "Nadir" }, ResourceId = "Z3M3LMPEXAMPLE", ResourceType = "hostedzone" // Valid values are healthcheck and hostedzone. }); #endregion }
private Amazon.Route53.Model.ChangeTagsForResourceResponse CallAWSServiceOperation(IAmazonRoute53 client, Amazon.Route53.Model.ChangeTagsForResourceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Route 53", "ChangeTagsForResource"); try { #if DESKTOP return(client.ChangeTagsForResource(request)); #elif CORECLR return(client.ChangeTagsForResourceAsync(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; } }