Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetSubnetsCommand

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.

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);
see

SetSubnetsCommandInput for command's input shape.

see

SetSubnetsCommandOutput for command's response shape.

see

config for ElasticLoadBalancingV2Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: SetSubnetsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<SetSubnetsCommandInput, SetSubnetsCommandOutput>