public void RedshiftCreateTags() { #region to-create-tags--1482440094007 var response = client.CreateTags(new CreateTagsRequest { ResourceName = "arn:aws:redshift:us-west-2:644653688104:cluster:mycluster", Tags = new List <Tag> { new Tag { Key = "owner", Value = "admin" }, new Tag { Key = "test", Value = "environment" } } }); #endregion }
private Amazon.Redshift.Model.CreateTagsResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.CreateTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "CreateTags"); try { #if DESKTOP return(client.CreateTags(request)); #elif CORECLR return(client.CreateTagsAsync(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; } }