We are excited to announce our new API Documentation.
Protected
Deletes a traffic policy.
When you delete a traffic policy, Route 53 sets a flag on the policy to indicate that it has been deleted. However, Route 53 never fully deletes the traffic policy. Note the following:
Deleted traffic policies aren't listed if you run ListTrafficPolicies.
There's no way to get a list of deleted policies.
If you retain the ID of the policy, you can get information about the policy, including the traffic policy document, by running GetTrafficPolicy.
Use a bare-bones client and the command you need to make an API call.
import { Route53Client, DeleteTrafficPolicyCommand } from "@aws-sdk/client-route-53"; // ES Modules import// const { Route53Client, DeleteTrafficPolicyCommand } = require("@aws-sdk/client-route-53"); // CommonJS importconst client = new Route53Client(config);const input = { // DeleteTrafficPolicyRequest Id: "STRING_VALUE", // required Version: Number("int"), // required};const command = new DeleteTrafficPolicyCommand(input);const response = await client.send(command);// {};
DeleteTrafficPolicyCommandInput
DeleteTrafficPolicyCommandOutput
input
response
config
ConcurrentModification (client fault)
Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.
InvalidInput (client fault)
The input is not valid.
NoSuchTrafficPolicy (client fault)
No traffic policy exists with the specified ID.
TrafficPolicyInUse (client fault)
One or more traffic policy instances were created by using the specified traffic policy.
Route53ServiceException
Base exception class for all service exceptions from Route53 service.
Readonly
Static
Deletes a traffic policy.
When you delete a traffic policy, Route 53 sets a flag on the policy to indicate that it has been deleted. However, Route 53 never fully deletes the traffic policy. Note the following:
Deleted traffic policies aren't listed if you run ListTrafficPolicies.
There's no way to get a list of deleted policies.
If you retain the ID of the policy, you can get information about the policy, including the traffic policy document, by running GetTrafficPolicy.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteTrafficPolicyCommandInput
Returns
DeleteTrafficPolicyCommandOutput
See
input
shape.response
shape.config
shape.Throws
ConcurrentModification (client fault)
Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.
Throws
InvalidInput (client fault)
The input is not valid.
Throws
NoSuchTrafficPolicy (client fault)
No traffic policy exists with the specified ID.
Throws
TrafficPolicyInUse (client fault)
One or more traffic policy instances were created by using the specified traffic policy.
Throws
Route53ServiceException
Base exception class for all service exceptions from Route53 service.