import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddCustomRoutingEndpointsRequest, AddCustomRoutingEndpointsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddCustomRoutingEndpointsCommand}. */ export interface AddCustomRoutingEndpointsCommandInput extends AddCustomRoutingEndpointsRequest { } /** * @public * * The output of {@link AddCustomRoutingEndpointsCommand}. */ export interface AddCustomRoutingEndpointsCommandOutput extends AddCustomRoutingEndpointsResponse, __MetadataBearer { } declare const AddCustomRoutingEndpointsCommand_base: { new (input: AddCustomRoutingEndpointsCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddCustomRoutingEndpointsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Associate a virtual private cloud (VPC) subnet endpoint with your custom routing accelerator.

*

The listener port range must be large enough to support the number of IP addresses that can be * specified in your subnet. The number of ports required is: subnet size times the number * of ports per destination EC2 instances. For example, a subnet defined as /24 requires a listener * port range of at least 255 ports.

*

Note: You must have enough remaining listener ports available to * map to the subnet ports, or the call will fail with a LimitExceededException.

*

By default, all destinations in a subnet in a custom routing accelerator cannot receive traffic. To enable all * destinations to receive traffic, or to specify individual port mappings that can receive * traffic, see the * AllowCustomRoutingTraffic operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlobalAcceleratorClient, AddCustomRoutingEndpointsCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import * // const { GlobalAcceleratorClient, AddCustomRoutingEndpointsCommand } = 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 = { // AddCustomRoutingEndpointsRequest * EndpointConfigurations: [ // CustomRoutingEndpointConfigurations // required * { // CustomRoutingEndpointConfiguration * EndpointId: "STRING_VALUE", * AttachmentArn: "STRING_VALUE", * }, * ], * EndpointGroupArn: "STRING_VALUE", // required * }; * const command = new AddCustomRoutingEndpointsCommand(input); * const response = await client.send(command); * // { // AddCustomRoutingEndpointsResponse * // EndpointDescriptions: [ // CustomRoutingEndpointDescriptions * // { // CustomRoutingEndpointDescription * // EndpointId: "STRING_VALUE", * // }, * // ], * // EndpointGroupArn: "STRING_VALUE", * // }; * * ``` * * @param AddCustomRoutingEndpointsCommandInput - {@link AddCustomRoutingEndpointsCommandInput} * @returns {@link AddCustomRoutingEndpointsCommandOutput} * @see {@link AddCustomRoutingEndpointsCommandInput} for command's `input` shape. * @see {@link AddCustomRoutingEndpointsCommandOutput} 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 ConflictException} (client fault) *

You can't use both of those options.

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

The endpoint that you specified doesn't exist.

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

The endpoint group that you specified doesn't exist.

* * @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 GlobalAcceleratorServiceException} *

Base exception class for all service exceptions from GlobalAccelerator service.

* * * @public */ export declare class AddCustomRoutingEndpointsCommand extends AddCustomRoutingEndpointsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddCustomRoutingEndpointsRequest; output: AddCustomRoutingEndpointsResponse; }; sdk: { input: AddCustomRoutingEndpointsCommandInput; output: AddCustomRoutingEndpointsCommandOutput; }; }; }