DeleteVault() private method

private DeleteVault ( DeleteVaultRequest request ) : Amazon.Glacier.Model.DeleteVaultResponse
request Amazon.Glacier.Model.DeleteVaultRequest
return Amazon.Glacier.Model.DeleteVaultResponse
Ejemplo n.º 1
0
 private static bool DeleteVault(string vaultName)
 {
     using (IAmazonGlacier client = new AmazonGlacierClient(RegionEndpoint.EUWest1))
     {
         DeleteVaultRequest request = new DeleteVaultRequest()
         {
             VaultName = vaultName
         };
         DeleteVaultResponse response = client.DeleteVault(request);
         return (response.HttpStatusCode == System.Net.HttpStatusCode.NoContent);
     }
 }