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

Creates a traffic policy, which you use to create multiple DNS resource record sets * for one domain name (such as example.com) or one subdomain name (such as * www.example.com).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, CreateTrafficPolicyCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, CreateTrafficPolicyCommand } = 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 = { // CreateTrafficPolicyRequest * Name: "STRING_VALUE", // required * Document: "STRING_VALUE", // required * Comment: "STRING_VALUE", * }; * const command = new CreateTrafficPolicyCommand(input); * const response = await client.send(command); * // { // CreateTrafficPolicyResponse * // TrafficPolicy: { // TrafficPolicy * // Id: "STRING_VALUE", // required * // Version: Number("int"), // required * // Name: "STRING_VALUE", // required * // Type: "SOA" || "A" || "TXT" || "NS" || "CNAME" || "MX" || "NAPTR" || "PTR" || "SRV" || "SPF" || "AAAA" || "CAA" || "DS" || "TLSA" || "SSHFP" || "SVCB" || "HTTPS", // required * // Document: "STRING_VALUE", // required * // Comment: "STRING_VALUE", * // }, * // Location: "STRING_VALUE", // required * // }; * * ``` * * @param CreateTrafficPolicyCommandInput - {@link CreateTrafficPolicyCommandInput} * @returns {@link CreateTrafficPolicyCommandOutput} * @see {@link CreateTrafficPolicyCommandInput} for command's `input` shape. * @see {@link CreateTrafficPolicyCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link InvalidInput} (client fault) *

The input is not valid.

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

The format of the traffic policy document that you specified in the * Document element is not valid.

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

This traffic policy can't be created because the current account has reached the limit * on the number of traffic policies.

*

For information about default limits, see Limits in the * Amazon Route 53 Developer Guide.

*

To get the current limit for an account, see GetAccountLimit.

*

To request a higher limit, create a * case with the Amazon Web Services Support Center.

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

A traffic policy that has the same value for Name already exists.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class CreateTrafficPolicyCommand extends CreateTrafficPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateTrafficPolicyRequest; output: CreateTrafficPolicyResponse; }; sdk: { input: CreateTrafficPolicyCommandInput; output: CreateTrafficPolicyCommandOutput; }; }; }