import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AttachLoadBalancerToSubnetsInput, AttachLoadBalancerToSubnetsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AttachLoadBalancerToSubnetsCommand}. */ export interface AttachLoadBalancerToSubnetsCommandInput extends AttachLoadBalancerToSubnetsInput { } /** * @public * * The output of {@link AttachLoadBalancerToSubnetsCommand}. */ export interface AttachLoadBalancerToSubnetsCommandOutput extends AttachLoadBalancerToSubnetsOutput, __MetadataBearer { } declare const AttachLoadBalancerToSubnetsCommand_base: { new (input: AttachLoadBalancerToSubnetsCommandInput): import("@smithy/core/client").CommandImpl; new (input: AttachLoadBalancerToSubnetsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds one or more subnets to the set of configured subnets for the specified load balancer.

*

The load balancer evenly distributes requests across all registered subnets. * For more information, see Add or Remove Subnets for Your Load Balancer in a VPC * in the Classic Load Balancers Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticLoadBalancingClient, AttachLoadBalancerToSubnetsCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import * // const { ElasticLoadBalancingClient, AttachLoadBalancerToSubnetsCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import * // import type { ElasticLoadBalancingClientConfig } from "@aws-sdk/client-elastic-load-balancing"; * const config = {}; // type is ElasticLoadBalancingClientConfig * const client = new ElasticLoadBalancingClient(config); * const input = { // AttachLoadBalancerToSubnetsInput * LoadBalancerName: "STRING_VALUE", // required * Subnets: [ // Subnets // required * "STRING_VALUE", * ], * }; * const command = new AttachLoadBalancerToSubnetsCommand(input); * const response = await client.send(command); * // { // AttachLoadBalancerToSubnetsOutput * // Subnets: [ // Subnets * // "STRING_VALUE", * // ], * // }; * * ``` * * @param AttachLoadBalancerToSubnetsCommandInput - {@link AttachLoadBalancerToSubnetsCommandInput} * @returns {@link AttachLoadBalancerToSubnetsCommandOutput} * @see {@link AttachLoadBalancerToSubnetsCommandInput} for command's `input` shape. * @see {@link AttachLoadBalancerToSubnetsCommandOutput} for command's `response` shape. * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for ElasticLoadBalancingClient's `config` shape. * * @throws {@link AccessPointNotFoundException} (client fault) *

The specified load balancer does not exist.

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

The requested configuration change is not valid.

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

The specified VPC has no associated Internet gateway.

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

One or more of the specified subnets do not exist.

* * @throws {@link ElasticLoadBalancingServiceException} *

Base exception class for all service exceptions from ElasticLoadBalancing service.

* * * @example To attach subnets to a load balancer * ```javascript * // This example adds the specified subnet to the set of configured subnets for the specified load balancer. * const input = { * LoadBalancerName: "my-load-balancer", * Subnets: [ * "subnet-0ecac448" * ] * }; * const command = new AttachLoadBalancerToSubnetsCommand(input); * const response = await client.send(command); * /* response is * { * Subnets: [ * "subnet-15aaab61", * "subnet-0ecac448" * ] * } * *\/ * ``` * * @public */ export declare class AttachLoadBalancerToSubnetsCommand extends AttachLoadBalancerToSubnetsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AttachLoadBalancerToSubnetsInput; output: AttachLoadBalancerToSubnetsOutput; }; sdk: { input: AttachLoadBalancerToSubnetsCommandInput; output: AttachLoadBalancerToSubnetsCommandOutput; }; }; }