Enables the Availability Zones for the specified public subnets for the specified
Application Load Balancer or Network Load Balancer. The specified subnets replace the
previously enabled subnets.
When you specify subnets for a Network Load Balancer, you must include all subnets that
were enabled previously, with their existing configurations, plus any additional
subnets.
example
Use a bare-bones client and the command you need to make an API call.
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.
Use a bare-bones client and the command you need to make an API call.
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 const client = new ElasticLoadBalancingV2Client(config); const command = new SetSubnetsCommand(input); const response = await client.send(command);
SetSubnetsCommandInput for command's
input
shape.SetSubnetsCommandOutput for command's
response
shape.config for ElasticLoadBalancingV2Client's
config
shape.