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