public void SecretsManagerUntagResource()
        {
            #region to-remove-tags-from-a-secret-1524002239065

            var response = client.UntagResource(new UntagResourceRequest
            {
                SecretId = "MyTestDatabaseSecret",
                TagKeys  = new List <string> {
                    "FirstTag",
                    "SecondTag"
                }
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.SecretsManager.Model.UntagResourceResponse CallAWSServiceOperation(IAmazonSecretsManager client, Amazon.SecretsManager.Model.UntagResourceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Secrets Manager", "UntagResource");
     try
     {
         #if DESKTOP
         return(client.UntagResource(request));
         #elif CORECLR
         return(client.UntagResourceAsync(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;
     }
 }