import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCustomRoutingAcceleratorRequest, CreateCustomRoutingAcceleratorResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateCustomRoutingAcceleratorCommand}. */ export interface CreateCustomRoutingAcceleratorCommandInput extends CreateCustomRoutingAcceleratorRequest { } /** * @public * * The output of {@link CreateCustomRoutingAcceleratorCommand}. */ export interface CreateCustomRoutingAcceleratorCommandOutput extends CreateCustomRoutingAcceleratorResponse, __MetadataBearer { } declare const CreateCustomRoutingAcceleratorCommand_base: { new (input: CreateCustomRoutingAcceleratorCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCustomRoutingAcceleratorCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands * of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints.

*

Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive * traffic. To enable all destinations to receive traffic, or to specify individual port * mappings that can receive traffic, see the * AllowCustomRoutingTraffic operation.

* *

Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the * US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2 * on Amazon Web Services CLI commands.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlobalAcceleratorClient, CreateCustomRoutingAcceleratorCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import * // const { GlobalAcceleratorClient, CreateCustomRoutingAcceleratorCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import * // import type { GlobalAcceleratorClientConfig } from "@aws-sdk/client-global-accelerator"; * const config = {}; // type is GlobalAcceleratorClientConfig * const client = new GlobalAcceleratorClient(config); * const input = { // CreateCustomRoutingAcceleratorRequest * Name: "STRING_VALUE", // required * IpAddressType: "IPV4" || "DUAL_STACK", * IpAddresses: [ // IpAddresses * "STRING_VALUE", * ], * Enabled: true || false, * IdempotencyToken: "STRING_VALUE", // required * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateCustomRoutingAcceleratorCommand(input); * const response = await client.send(command); * // { // CreateCustomRoutingAcceleratorResponse * // Accelerator: { // CustomRoutingAccelerator * // AcceleratorArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // IpAddressType: "IPV4" || "DUAL_STACK", * // Enabled: true || false, * // IpSets: [ // IpSets * // { // IpSet * // IpFamily: "STRING_VALUE", * // IpAddresses: [ // IpAddresses * // "STRING_VALUE", * // ], * // IpAddressFamily: "IPv4" || "IPv6", * // }, * // ], * // DnsName: "STRING_VALUE", * // Status: "DEPLOYED" || "IN_PROGRESS", * // CreatedTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param CreateCustomRoutingAcceleratorCommandInput - {@link CreateCustomRoutingAcceleratorCommandInput} * @returns {@link CreateCustomRoutingAcceleratorCommandOutput} * @see {@link CreateCustomRoutingAcceleratorCommandInput} for command's `input` shape. * @see {@link CreateCustomRoutingAcceleratorCommandOutput} for command's `response` shape. * @see {@link GlobalAcceleratorClientResolvedConfig | config} for GlobalAcceleratorClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have access permission.

* * @throws {@link InternalServiceErrorException} (server fault) *

There was an internal error for Global Accelerator.

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

An argument that you specified is invalid.

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

Processing your request would cause you to exceed an Global Accelerator limit.

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

There's already a transaction in progress. Another transaction can't be processed.

* * @throws {@link GlobalAcceleratorServiceException} *

Base exception class for all service exceptions from GlobalAccelerator service.

* * * @public */ export declare class CreateCustomRoutingAcceleratorCommand extends CreateCustomRoutingAcceleratorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCustomRoutingAcceleratorRequest; output: CreateCustomRoutingAcceleratorResponse; }; sdk: { input: CreateCustomRoutingAcceleratorCommandInput; output: CreateCustomRoutingAcceleratorCommandOutput; }; }; }