import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteTrafficPolicyRequest, DeleteTrafficPolicyResponse } from "../models/models_0"; import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteTrafficPolicyCommand}. */ export interface DeleteTrafficPolicyCommandInput extends DeleteTrafficPolicyRequest { } /** * @public * * The output of {@link DeleteTrafficPolicyCommand}. */ export interface DeleteTrafficPolicyCommandOutput extends DeleteTrafficPolicyResponse, __MetadataBearer { } declare const DeleteTrafficPolicyCommand_base: { new (input: DeleteTrafficPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteTrafficPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, DeleteTrafficPolicyCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, DeleteTrafficPolicyCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * // import type { Route53ClientConfig } from "@aws-sdk/client-route-53"; * const config = {}; // type is Route53ClientConfig * const 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); * // {}; * * ``` * * @param DeleteTrafficPolicyCommandInput - {@link DeleteTrafficPolicyCommandInput} * @returns {@link DeleteTrafficPolicyCommandOutput} * @see {@link DeleteTrafficPolicyCommandInput} for command's `input` shape. * @see {@link DeleteTrafficPolicyCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link 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 {@link InvalidInput} (client fault) *

The input is not valid.

* * @throws {@link NoSuchTrafficPolicy} (client fault) *

No traffic policy exists with the specified ID.

* * @throws {@link TrafficPolicyInUse} (client fault) *

One or more traffic policy instances were created by using the specified traffic * policy.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class DeleteTrafficPolicyCommand extends DeleteTrafficPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteTrafficPolicyRequest; output: {}; }; sdk: { input: DeleteTrafficPolicyCommandInput; output: DeleteTrafficPolicyCommandOutput; }; }; }