import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElasticLoadBalancingV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElasticLoadBalancingV2Client"; import type { SetSubnetsInput, SetSubnetsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link SetSubnetsCommand}. */ export interface SetSubnetsCommandInput extends SetSubnetsInput { } /** * @public * * The output of {@link SetSubnetsCommand}. */ export interface SetSubnetsCommandOutput extends SetSubnetsOutput, __MetadataBearer { } declare const SetSubnetsCommand_base: { new (input: SetSubnetsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: SetSubnetsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Enables the Availability Zones for the specified public subnets for the specified * Application Load Balancer, Network Load Balancer or Gateway Load Balancer. The specified subnets * replace the previously enabled subnets.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticLoadBalancingV2Client, SetSubnetsCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import * // const { ElasticLoadBalancingV2Client, SetSubnetsCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import * // import type { ElasticLoadBalancingV2ClientConfig } from "@aws-sdk/client-elastic-load-balancing-v2"; * const config = {}; // type is ElasticLoadBalancingV2ClientConfig * const client = new ElasticLoadBalancingV2Client(config); * const input = { // SetSubnetsInput * LoadBalancerArn: "STRING_VALUE", // required * Subnets: [ // Subnets * "STRING_VALUE", * ], * SubnetMappings: [ // SubnetMappings * { // SubnetMapping * SubnetId: "STRING_VALUE", * AllocationId: "STRING_VALUE", * PrivateIPv4Address: "STRING_VALUE", * IPv6Address: "STRING_VALUE", * SourceNatIpv6Prefix: "STRING_VALUE", * }, * ], * IpAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4", * EnablePrefixForIpv6SourceNat: "on" || "off", * }; * const command = new SetSubnetsCommand(input); * const response = await client.send(command); * // { // SetSubnetsOutput * // AvailabilityZones: [ // AvailabilityZones * // { // AvailabilityZone * // ZoneName: "STRING_VALUE", * // SubnetId: "STRING_VALUE", * // OutpostId: "STRING_VALUE", * // LoadBalancerAddresses: [ // LoadBalancerAddresses * // { // LoadBalancerAddress * // IpAddress: "STRING_VALUE", * // AllocationId: "STRING_VALUE", * // PrivateIPv4Address: "STRING_VALUE", * // IPv6Address: "STRING_VALUE", * // }, * // ], * // SourceNatIpv6Prefixes: [ // SourceNatIpv6Prefixes * // "STRING_VALUE", * // ], * // }, * // ], * // IpAddressType: "ipv4" || "dualstack" || "dualstack-without-public-ipv4", * // EnablePrefixForIpv6SourceNat: "on" || "off", * // }; * * ``` * * @param SetSubnetsCommandInput - {@link SetSubnetsCommandInput} * @returns {@link SetSubnetsCommandOutput} * @see {@link SetSubnetsCommandInput} for command's `input` shape. * @see {@link SetSubnetsCommandOutput} for command's `response` shape. * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape. * * @throws {@link AllocationIdNotFoundException} (client fault) *

The specified allocation ID does not exist.

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

The specified Availability Zone is not supported.

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

There is a pending capacity reservation.

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

The requested configuration is not valid.

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

The specified subnet is out of available addresses.

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

The specified load balancer does not exist.

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

The specified subnet does not exist.

* * @throws {@link ElasticLoadBalancingV2ServiceException} *

Base exception class for all service exceptions from ElasticLoadBalancingV2 service.

* * * @example To enable Availability Zones for a load balancer * ```javascript * // This example enables the Availability Zones for the specified subnets for the specified load balancer. * const input = { * LoadBalancerArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188", * Subnets: [ * "subnet-8360a9e7", * "subnet-b7d581c0" * ] * }; * const command = new SetSubnetsCommand(input); * const response = await client.send(command); * /* response is * { * AvailabilityZones: [ * { * SubnetId: "subnet-8360a9e7", * ZoneName: "us-west-2a" * }, * { * SubnetId: "subnet-b7d581c0", * ZoneName: "us-west-2b" * } * ] * } * *\/ * ``` * * @public */ export declare class SetSubnetsCommand extends SetSubnetsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetSubnetsInput; output: SetSubnetsOutput; }; sdk: { input: SetSubnetsCommandInput; output: SetSubnetsCommandOutput; }; }; }