import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetachLoadBalancerFromSubnetsInput, DetachLoadBalancerFromSubnetsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetachLoadBalancerFromSubnetsCommand}. */ export interface DetachLoadBalancerFromSubnetsCommandInput extends DetachLoadBalancerFromSubnetsInput { } /** * @public * * The output of {@link DetachLoadBalancerFromSubnetsCommand}. */ export interface DetachLoadBalancerFromSubnetsCommandOutput extends DetachLoadBalancerFromSubnetsOutput, __MetadataBearer { } declare const DetachLoadBalancerFromSubnetsCommand_base: { new (input: DetachLoadBalancerFromSubnetsCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetachLoadBalancerFromSubnetsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Removes the specified subnets from the set of configured subnets for the load balancer.

*

After a subnet is removed, all EC2 instances registered with the load balancer * in the removed subnet go into the OutOfService state. Then, * the load balancer balances the traffic among the remaining routable subnets.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticLoadBalancingClient, DetachLoadBalancerFromSubnetsCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import * // const { ElasticLoadBalancingClient, DetachLoadBalancerFromSubnetsCommand } = 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 = { // DetachLoadBalancerFromSubnetsInput * LoadBalancerName: "STRING_VALUE", // required * Subnets: [ // Subnets // required * "STRING_VALUE", * ], * }; * const command = new DetachLoadBalancerFromSubnetsCommand(input); * const response = await client.send(command); * // { // DetachLoadBalancerFromSubnetsOutput * // Subnets: [ // Subnets * // "STRING_VALUE", * // ], * // }; * * ``` * * @param DetachLoadBalancerFromSubnetsCommandInput - {@link DetachLoadBalancerFromSubnetsCommandInput} * @returns {@link DetachLoadBalancerFromSubnetsCommandOutput} * @see {@link DetachLoadBalancerFromSubnetsCommandInput} for command's `input` shape. * @see {@link DetachLoadBalancerFromSubnetsCommandOutput} 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 ElasticLoadBalancingServiceException} *

Base exception class for all service exceptions from ElasticLoadBalancing service.

* * * @example To detach a load balancer from a subnet * ```javascript * // This example detaches the specified load balancer from the specified subnet. * const input = { * LoadBalancerName: "my-load-balancer", * Subnets: [ * "subnet-0ecac448" * ] * }; * const command = new DetachLoadBalancerFromSubnetsCommand(input); * const response = await client.send(command); * /* response is * { * Subnets: [ * "subnet-15aaab61" * ] * } * *\/ * ``` * * @public */ export declare class DetachLoadBalancerFromSubnetsCommand extends DetachLoadBalancerFromSubnetsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetachLoadBalancerFromSubnetsInput; output: DetachLoadBalancerFromSubnetsOutput; }; sdk: { input: DetachLoadBalancerFromSubnetsCommandInput; output: DetachLoadBalancerFromSubnetsCommandOutput; }; }; }