Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
Application Load Balancers
Network Load Balancers
Gateway Load Balancers
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.
Use a bare-bones client and the command you need to make an API call.
import { ElasticLoadBalancingV2Client, CreateLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import // const { ElasticLoadBalancingV2Client, CreateLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import const client = new ElasticLoadBalancingV2Client(config); const command = new CreateLoadBalancerCommand(input); const response = await client.send(command);
CreateLoadBalancerCommandInput for command's input shape.
input
CreateLoadBalancerCommandOutput for command's response shape.
response
config for ElasticLoadBalancingV2Client's config shape.
config
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
Application Load Balancers
Network Load Balancers
Gateway Load Balancers
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.
Use a bare-bones client and the command you need to make an API call.
import { ElasticLoadBalancingV2Client, CreateLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import // const { ElasticLoadBalancingV2Client, CreateLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import const client = new ElasticLoadBalancingV2Client(config); const command = new CreateLoadBalancerCommand(input); const response = await client.send(command);
CreateLoadBalancerCommandInput for command's
input
shape.CreateLoadBalancerCommandOutput for command's
response
shape.config for ElasticLoadBalancingV2Client's
config
shape.