Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateListenerCommand

Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

For more information, see the following:

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.

example

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

CreateListenerCommandInput for command's input shape.

see

CreateListenerCommandOutput for command's response shape.

see

config for ElasticLoadBalancingV2Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateListenerCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateListenerCommandInput, CreateListenerCommandOutput>