public void GlacierAddTagsToVault()
        {
            #region add-tags-to-vault-post-tags-add-1481663457694

            var response = client.AddTagsToVault(new AddTagsToVaultRequest
            {
                Tags = new Dictionary <string, string> {
                    { "examplekey1", "examplevalue1" },
                    { "examplekey2", "examplevalue2" }
                },
                AccountId = "-",
                VaultName = "my-vault"
            });


            #endregion
        }
Esempio n. 2
0
 private Amazon.Glacier.Model.AddTagsToVaultResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.AddTagsToVaultRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "AddTagsToVault");
     try
     {
         #if DESKTOP
         return(client.AddTagsToVault(request));
         #elif CORECLR
         return(client.AddTagsToVaultAsync(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;
     }
 }