AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
This action deletes a health check. To delete a health check, send a DELETE request to the /Route 53 API version/healthcheck/health check ID resource. You can delete a health check only if there are no resource record sets associated with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your health check. If you try to delete a health check that is associated with resource record sets, Amazon Route 53 will deny your request with a HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.

Namespace: Amazon.Route53
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual DeleteHealthCheckResponse DeleteHealthCheck(
         DeleteHealthCheckRequest request
)

Parameters

request
Type: Amazon.Route53.Model.DeleteHealthCheckRequest

Container for the necessary parameters to execute the DeleteHealthCheck service method.

Return Value
Type: Amazon.Route53.Model.DeleteHealthCheckResponse
The response from the DeleteHealthCheck service method, as returned by Route53.

Exceptions

ExceptionCondition
HealthCheckInUseException There are resource records associated with this health check. Before you can delete the health check, you must disassociate it from the resource record sets.
InvalidInputException Some value specified in the request is invalid or the XML document is malformed.
NoSuchHealthCheckException The health check you are trying to get or delete does not exist.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5