Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteTrafficPolicyInstanceCommandProtected

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

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

Example

Use a bare-bones client and the command you need to make an API call.

import { Route53Client, DeleteTrafficPolicyInstanceCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, DeleteTrafficPolicyInstanceCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // DeleteTrafficPolicyInstanceRequest
Id: "STRING_VALUE", // required
};
const command = new DeleteTrafficPolicyInstanceCommand(input);
const response = await client.send(command);
// {};

Param

DeleteTrafficPolicyInstanceCommandInput

Returns

DeleteTrafficPolicyInstanceCommandOutput

See

Throws

InvalidInput (client fault)

The input is not valid.

Throws

NoSuchTrafficPolicyInstance (client fault)

No traffic policy instance exists with the specified ID.

Throws

PriorRequestNotComplete (client fault)

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.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods