public void DatabaseMigrationServiceAddTagsToResource()
        {
            #region add-tags-to-resource-1481744141435

            var response = client.AddTagsToResource(new AddTagsToResourceRequest
            {
                ResourceArn = "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E", // Required. Use the ARN of the resource you want to tag.
                Tags        = new List <Tag> {
                    new Tag {
                        Key   = "Acount",
                        Value = "1633456"
                    }
                } // Required. Use the Key/Value pair format.
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.DatabaseMigrationService.Model.AddTagsToResourceResponse CallAWSServiceOperation(IAmazonDatabaseMigrationService client, Amazon.DatabaseMigrationService.Model.AddTagsToResourceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Database Migration Service", "AddTagsToResource");
     try
     {
         #if DESKTOP
         return(client.AddTagsToResource(request));
         #elif CORECLR
         return(client.AddTagsToResourceAsync(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;
     }
 }