DeleteTrafficPolicyInstance - Amazon Route 53

DeleteTrafficPolicyInstance

Deletes a traffic policy instance and all of the resource record sets that Amazon Route 53 created when you created the instance.

Note

In the Route 53 console, traffic policy instances are known as policy records.

Request Syntax

DELETE /2013-04-01/trafficpolicyinstance/Id HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

Id

The ID of the traffic policy instance that you want to delete.

Important

When you delete a traffic policy instance, Amazon Route 53 also deletes all of the resource record sets that were created when you created the traffic policy instance.

Length Constraints: Minimum length of 1. Maximum length of 36.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidInput

The input is not valid.

HTTP Status Code: 400

NoSuchTrafficPolicyInstance

No traffic policy instance exists with the specified ID.

HTTP Status Code: 404

PriorRequestNotComplete

If Amazon Route 53 can't process a request before the next request arrives, it will reject subsequent requests for the same hosted zone and return an HTTP 400 error (Bad request). If Route 53 returns this error repeatedly for the same request, we recommend that you wait, in intervals of increasing duration, before you try the request again.

HTTP Status Code: 400

Examples

Example Request

This example illustrates one usage of DeleteTrafficPolicyInstance.

DELETE /2013-04-01/trafficpolicyinstance/12131415-abac-5432-caba-6f5e4d3c2b1a

Example Response

This example illustrates one usage of DeleteTrafficPolicyInstance.

HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <DeleteTrafficPolicyInstanceResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> </DeleteTrafficPolicyInstanceResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: